/* Curriculão
   Layout (computador): etapas fixas à esquerda · formulário no meio · prévia A4 fixa à direita.
   Visual: azul da carteira de trabalho + amarelo de marca-texto. */
:root {
  --bg: #EDF0F5; --surface: #FFFFFF; --field: #F5F7FA; --ink: #16213A; --muted: #586378; --line: #D3D9E3;
  --accent: #1D3C7A; --accent-ink: #FFFFFF; --accent-soft: #E2E9F6; --mark: #F2C94C; --mark-ink: #16213A;
  --ok: #1B7F52; --ok-ink: #FFFFFF; --erro: #B3261E; --erro-soft: #FCEDEC;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1422; --surface: #172036; --field: #111A2C; --ink: #E6EBF4; --muted: #9AA6BD; --line: #2B3756;
  --accent: #8FB0F2; --accent-ink: #0E1422; --accent-soft: #22335A; --mark: #F2C94C; --mark-ink: #16213A;
  --ok: #4CC08A; --ok-ink: #0E1422; --erro: #FF8A80; --erro-soft: #3A1E22; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0E1422; --surface: #172036; --field: #111A2C; --ink: #E6EBF4; --muted: #9AA6BD; --line: #2B3756;
  --accent: #8FB0F2; --accent-ink: #0E1422; --accent-soft: #22335A; --mark: #F2C94C; --mark-ink: #16213A;
  --ok: #4CC08A; --ok-ink: #0E1422; --erro: #FF8A80; --erro-soft: #3A1E22; color-scheme: dark }

*, *::before, *::after { box-sizing: border-box }
html { scroll-padding-top: 84px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body) }
[hidden] { display: none !important }
h1, h2, h3, h4 { margin: 0 }
button, input, select { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px }

/* ---------- Topo ---------- */
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line) }
.topo-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding-block: 12px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)) }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none }
.logo-ic { width: 36px; height: 36px; display: block; flex: none }
.logo-nome { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .01em; text-transform: uppercase }
.logo-nome em { font-style: normal; color: var(--accent) }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden }
.topo-priv { margin: 0 0 0 auto; font-size: 13px; color: var(--muted) }

.pagina { max-width: 1440px; margin: 0 auto; padding-block: 28px 40px; display: flex; flex-direction: column; gap: 24px;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)) }

/* Destaque do topo: nome CURRICULÃO grande e, logo abaixo, o que o site faz.
   As cores são fixas (azul da marca) para o bloco ficar igual no modo claro e no escuro. */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 40px 48px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3463C2 0%, rgba(52, 99, 194, 0) 55%), linear-gradient(135deg, #1D3C7A 0%, #132A5A 100%);
  box-shadow: 0 18px 40px rgba(20, 43, 92, .22) }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.5px); background-size: 18px 18px }
.hero > * { position: relative; min-width: 0 }
.hero-marca { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px }
.hero-ic { display: none; width: 64px; height: 64px; flex: none; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)) }
.hero-nome { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(46px, 6.6vw, 96px); line-height: .9; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .25) }
.hero-nome span { color: var(--mark) }
.hero-tag { align-self: center; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--mark); color: #14203B; padding: 5px 12px; border-radius: 99px }
.hero-lema { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.25; max-width: 40ch; text-wrap: balance }
.hero-lema b { white-space: nowrap; font-weight: 800; color: #14203B; background: var(--mark); padding: 0 .22em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone }
.hero-desc { margin: 12px 0 0; color: rgba(255, 255, 255, .84); max-width: 62ch; font-size: 16px }
.hero-pontos { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px }
.hero-pontos li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 7px 14px 7px 8px; border-radius: 99px }
.hero-pontos li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mark); color: #14203B; font-size: 12px; font-weight: 800 }
.btn.hero-cta { margin-top: 24px; background: var(--mark); color: #14203B; min-height: 54px; padding: 0 28px; font-size: 17px; font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .22) }
.hero-arte { width: clamp(180px, 19vw, 270px); margin-right: 8px }
.hero-arte svg { width: 100%; height: auto; display: block; transform: rotate(-7deg); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .38)) }
.hero-emp .hero-nome { font-size: clamp(40px, 5vw, 72px) }
.hero-emp .hero-arte { width: clamp(150px, 15vw, 210px) }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 18px }
  .hero-arte { display: none }
  .hero-ic { display: block }
}

.faixa-exemplo { margin: 0; background: var(--accent-soft); border-radius: var(--r); padding: 10px 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap }

/* ---------- Grade principal ---------- */
.app { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(420px, 520px); gap: 28px; align-items: start }
.etapas, .previa-col { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px }
.previa-col { max-height: calc(100vh - 100px); overflow: auto; padding: 2px; scrollbar-width: thin }

.etapas-caixa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px }
.prog-txt { margin: 0; font-size: 13px; font-weight: 600 }
.prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden }
.prog i { display: block; height: 100%; width: 0; background: var(--ok) }
.etapas ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px }
.etapas li button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; font-weight: 500 }
.etapas li button:hover { background: var(--field) }
.etapas li small { color: var(--muted); font-weight: 400; margin-left: auto; font-size: 11px }
.etapas li.feita .num { background: var(--ok); color: var(--ok-ink) }
.etapas li.feita .num::after { content: "✓" }
.etapas li.feita .num { font-size: 0 }
.etapas li.feita .num::after { font-size: 13px }

.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; flex: none }

/* ---------- Formulário ---------- */
.form { display: flex; flex-direction: column; gap: 18px; min-width: 0 }
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.cartao-h { display: flex; align-items: center; gap: 12px }
.cartao-h h2 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.01em }
.cartao-h .num { width: 30px; height: 30px; font-size: 14px }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start }
.larga { grid-column: 1 / -1 }
.campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0 }
.campo > label, .rot, .campo legend { font-size: 13px; font-weight: 600; padding: 0; line-height: 1.3; min-height: 17px }
.opc { font-weight: 400; color: var(--muted); font-size: .9em }
.linha { display: flex; gap: 8px; align-items: center; min-width: 0 }
.linha > input { flex: 1; min-width: 0 }
input[type=text], input[type=email], input[type=tel], input[type=search], select {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); width: 100%; min-width: 0 }
select { width: auto; padding-right: 8px; cursor: pointer }
.linha select { flex: 1 }
#uf { flex: 0 0 84px }
input:hover, select:hover { border-color: var(--muted) }
[aria-invalid="true"] { border-color: var(--erro) !important; background: var(--erro-soft) !important }
.erro { margin: 0; font-size: 13px; color: var(--erro); font-weight: 500 }
.erro:empty { display: none }
.dica { margin: 0; font-size: 13px; color: var(--muted) }
.dica.destaque { background: var(--accent-soft); color: var(--ink); padding: 12px 14px; border-radius: var(--r); font-size: 14px }
.nota-lei { margin: 0; font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--mark); padding: 2px 0 2px 10px }

/* Lista com busca (combo) */
.combo { position: relative; min-width: 0 }
.combo-campo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 4px 40px 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); cursor: text; position: relative }
.combo-campo:hover { border-color: var(--muted) }
.combo.aberto .combo-campo, .combo-campo:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.combo-campo input { flex: 1 1 160px; min-width: 120px; border: 0 !important; background: transparent !important; height: 34px; padding: 0 4px; outline: none }
.combo-campo input:focus-visible { outline: none }
.combo-tags { display: contents }
.combo-seta { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; font-size: 14px }
.combo.aberto .combo-seta { transform: translateY(-50%) rotate(180deg) }
.combo-lista { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(8, 14, 30, .18); max-height: 320px; overflow: auto }
.combo.pra-cima .combo-lista { top: auto; bottom: calc(100% + 6px) }
.combo-grupo { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 10px 10px 4px }
.combo-op { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px }
.combo-op::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px; border: 2px solid var(--line); background: var(--surface) }
.combo:not(.multi) .combo-op::before { border-radius: 50% }
.combo-op[aria-selected="true"] { font-weight: 700 }
.combo-op[aria-selected="true"]::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--surface) }
.combo-op.ativo { background: var(--accent-soft) }
.combo-livre { color: var(--accent) }
.combo-livre::before { content: "+"; border: 0; background: none; font-weight: 800; text-align: center; line-height: 16px; color: var(--accent) }
.combo-nada { padding: 12px 10px; font-size: 13px; color: var(--muted) }

/* Escolhas curtas lado a lado */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--field); align-self: flex-start; max-width: 100% }
.seg button { border: 0; background: none; padding: 0 16px; min-height: 44px; cursor: pointer; font-weight: 500; font-size: 14px; border-right: 1px solid var(--line) }
.seg button:last-child { border-right: 0 }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700 }
.seg button:not([aria-pressed="true"]):hover { background: var(--accent-soft) }
.seg-sm button { min-height: 34px; font-size: 13px; padding: 4px 8px; line-height: 1.2 }
.grade .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; align-self: stretch }
.grade .seg button { padding: 4px 8px; line-height: 1.2 }
.seg-largo { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 560px }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; line-height: 1.2 }
.btn.sec { background: var(--surface); color: var(--accent); border-color: var(--accent) }
.btn.quieto { background: var(--surface); color: var(--muted); border-color: var(--line); font-weight: 600 }
.btn.pagar { background: var(--ok); color: var(--ok-ink) }
.btn.perigo { background: var(--erro); color: #fff }
.btn.grande { min-height: 52px; font-size: 16px }
.btn.pequeno { min-height: 44px; padding: 0 12px; font-size: 13px; white-space: nowrap; flex: none }
.btn:disabled { opacity: .55; cursor: not-allowed }
.btn:not(:disabled):hover { filter: brightness(1.06) }
.link { background: none; border: 0; padding: 4px 2px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left }

/* Empregos */
.jobs { display: flex; flex-direction: column; gap: 14px; margin-top: 4px }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--field); display: flex; flex-direction: column; gap: 14px }
.job input[type=text], .job select { background: var(--surface) }
.job-h { display: flex; justify-content: space-between; align-items: center }
.job-h h3 { font-size: 15px; font-weight: 700 }
.linha.datas select:first-child { flex: 1.4 }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 2px }
.check input { width: 18px; height: 18px; accent-color: var(--accent) }
select:disabled { opacity: .45; cursor: not-allowed }
#expBox { display: flex; flex-direction: column; gap: 14px }
#addJob { align-self: flex-start }

.kw { border-top: 1px dashed var(--line); padding-top: 16px }
.kw-tit { font-size: 14px; font-weight: 700 }
.tag { display: inline-flex; align-items: center; gap: 2px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: 13px; font-weight: 600 }
.tag-x { background: none; border: 0; color: inherit; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; font-size: 17px; line-height: 1 }
.tag-x:hover { background: rgba(255, 255, 255, .2) }
.mini-tit { margin: 4px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700 }
.kw-saida { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px }
.kw-prev { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 2px }

/* Foto */
.foto { display: grid; grid-template-columns: 92px 180px minmax(0, 1fr); gap: 20px; align-items: center }
.thumb { width: 92px; height: 92px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px }
.thumb img { width: 100%; height: 100%; object-fit: cover }
.foto-acoes { display: flex; flex-direction: column; gap: 8px; align-items: flex-start }
.arquivo { position: relative; overflow: hidden }
.arquivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer }
.arquivo:focus-within { outline: 3px solid var(--mark); outline-offset: 2px }
.dicas-foto { margin: 0; padding: 12px 14px 12px 30px; font-size: 13px; color: var(--muted); background: var(--field); border-radius: var(--r); display: grid; gap: 2px }

/* ---------- Prévia ---------- */
.previa-caixa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px }
.previa-h { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.previa-h h2 { font-family: var(--display); font-weight: 600; font-size: 20px }
.selo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--mark); color: var(--mark-ink) }
.selo.ok { background: var(--ok); color: var(--ok-ink) }
.cores { display: flex; gap: 6px }
.cor { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--sw); cursor: pointer; padding: 0 }
.cor[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink) }
.cores-linha { display: flex; align-items: center; gap: 14px }

/* Etapa 6: modelos */
.modelos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.modelo { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); cursor: pointer; min-width: 0 }
.modelo:hover { border-color: var(--accent) }
.modelo[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft) }
.modelo .mini { width: 30px; flex: none }
.modelo-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.modelo b { font-size: 13px; line-height: 1.2 }
.modelo-extra { align-self: flex-start; font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 0 6px; border-radius: 99px }
.extras { border: 1px dashed var(--line); border-radius: var(--r); padding: 10px 12px; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px }
.extras legend { font-size: 13px; font-weight: 600; padding: 0 4px }
.extras-lista { display: flex; flex-wrap: wrap; gap: 6px 18px }
.promo { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; background: var(--mark); color: var(--mark-ink); border-radius: var(--r); padding: 10px 14px; font-size: 14px }
.promo b { font-family: var(--display); font-size: 16px }
.extras legend { color: var(--ink) }
.pix-resumo { font-weight: 600 }
.modelo-rec { align-self: flex-start; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--mark); color: var(--mark-ink); padding: 1px 6px; border-radius: 99px }
.modelo-ok { align-self: flex-start; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--ok); color: var(--ok-ink); padding: 1px 6px; border-radius: 99px }
.mini { aspect-ratio: 210 / 297; max-width: 100%; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(10, 20, 40, .18); position: relative; overflow: hidden; display: block }
.mini i { position: absolute; display: block; background: #D9DFEA; border-radius: 2px }
.mini-classico i:nth-child(1) { left: 12%; top: 9%; width: 55%; height: 6%; background: #14203B }
.mini-classico i:nth-child(2) { left: 12%; top: 18%; width: 35%; height: 3%; background: var(--c) }
.mini-classico i:nth-child(3) { left: 12%; top: 28%; width: 76%; height: 26% }
.mini-classico i:nth-child(4) { left: 12%; top: 60%; width: 76%; height: 26% }
.mini-moderno i:nth-child(1) { left: 0; top: 0; width: 34%; height: 100%; background: var(--c) }
.mini-moderno i:nth-child(2) { left: 7%; top: 6%; width: 20%; height: 14%; border-radius: 50%; background: rgba(255, 255, 255, .45) }
.mini-moderno i:nth-child(3) { left: 42%; top: 8%; width: 48%; height: 6%; background: #14203B }
.mini-moderno i:nth-child(4) { left: 42%; top: 22%; width: 48%; height: 60% }
.mini-destaque i:nth-child(1) { left: 0; top: 0; width: 100%; height: 20%; background: var(--c) }
.mini-destaque i:nth-child(2) { left: 8%; top: 4%; width: 15%; height: 11%; border-radius: 50%; background: rgba(255, 255, 255, .45) }
.mini-destaque i:nth-child(3) { left: 8%; top: 28%; width: 84%; height: 30% }
.mini-destaque i:nth-child(4) { left: 8%; top: 64%; width: 84%; height: 24% }
.mini-linha i:nth-child(1) { left: 0; top: 0; width: 100%; height: 3%; background: var(--c) }
.mini-linha i:nth-child(2) { left: 10%; top: 9%; width: 50%; height: 6%; background: #14203B }
.mini-linha i:nth-child(3) { left: 14%; top: 26%; width: 2%; height: 50%; background: var(--c) }
.mini-linha i:nth-child(4) { left: 22%; top: 26%; width: 68%; height: 50% }
.cartao.final { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }
.previa { background: var(--field); border-radius: 10px; padding: 14px }
.aviso { margin: 0; font-size: 13px; background: var(--erro-soft); color: var(--ink); border-radius: var(--r); padding: 8px 12px }
.pend { background: var(--erro-soft); border: 1px solid var(--erro); border-radius: 12px; padding: 12px 14px; font-size: 14px }
.pend p { margin: 0 0 6px }
.pend ul { margin: 0; padding-left: 18px; display: grid; gap: 2px }
.pend .link { color: var(--erro); font-size: 13.5px }
.ok-msg { margin: 0; background: var(--accent-soft); border-radius: var(--r); padding: 10px 12px; font-weight: 600; font-size: 14px }
.baixar { display: flex; flex-direction: column; gap: 8px }
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px }
.plano { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px }
.plano.pro { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) }
.plano-tag { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted) }
.plano { padding: 18px }
.plano .btn { margin-top: 6px }
.plano-preco { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1 }
.plano-preco small { font: 600 13px var(--body); color: var(--muted) }
.plano ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); flex: 1; display: grid; gap: 2px; align-content: start }
.plano ul b { color: var(--ink); font-weight: 600 }

/* ---------- Anúncios ---------- */
.anuncio { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--surface) }
.anuncio-rot { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700 }
.anuncio-espaco { display: grid; place-items: center; background: var(--field); border-radius: 8px; color: var(--muted); font-size: 13px; text-align: center; padding: 8px }
.anuncio-728 { align-self: center; width: min(100%, 750px) }
.anuncio-728 .anuncio-espaco { height: 90px }
.anuncio-160 .anuncio-espaco { width: 160px; height: 600px; max-height: calc(100vh - 420px); min-height: 250px; margin: 0 auto }
.anuncio-300 .anuncio-espaco { height: 250px }
.anuncio-nativo .anuncio-espaco { height: 120px }

.rodape { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.rodape p { margin: 0 }

/* ---------- Janelas ---------- */
.dlg { border: 0; border-radius: 16px; padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(8, 14, 30, .35) }
.dlg[open] { display: flex; flex-direction: column; gap: 12px }
.dlg::backdrop { background: rgba(8, 14, 30, .55) }
.dlg h3 { font-family: var(--display); font-size: 22px; font-weight: 600 }
.dlg p { margin: 0 }
.dlg-largo { width: min(760px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)) }
.dlg-h { display: flex; justify-content: space-between; align-items: center }
.fechar { background: none; border: 0; font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--muted) }
.fechar:hover { background: var(--field) }
.pk-lista { overflow: auto; flex: 1; min-height: 200px; display: flex; flex-direction: column; gap: 16px; padding: 2px }
.pk-grupo h3 { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px }
.dlg-pe { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap }
.dlg-pe:has(#pkLivre:empty):has(#pkPronto[hidden]) { display: none }
.ad-video { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; background: #16213A; color: #E6EBF4; display: grid; place-content: center; text-align: center; font-weight: 700; gap: 4px }
.ad-video small { font-weight: 400; opacity: .7 }
.ad-info { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted) }
.ad-pontos { display: flex; gap: 6px }
.ad-pontos span { width: 10px; height: 10px; border-radius: 50%; background: var(--line) }
.ad-pontos span.on { background: var(--ok) }
.pix-codigo { font: 12px/1.5 ui-monospace, Menlo, monospace; background: var(--field); border: 1px dashed var(--line); border-radius: var(--r); padding: 12px; overflow-wrap: anywhere }
.nota { font-size: 12px; color: var(--muted) }

@media (prefers-reduced-motion: no-preference) {
  .prog i { transition: width .6s ease }
  .chip, .btn { transition: background-color .15s, border-color .15s }
}

/* ---------- Telas menores (o foco é computador, mas não pode quebrar) ---------- */
@media (max-width: 1200px) {
  .app { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px) }
  .etapas { display: none }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr) }
  .previa-col { position: static; max-height: none; overflow: visible }
  .modelos { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .topo-priv { display: none }
  .topo-in > .btn { margin-left: auto }
}
@media (max-width: 560px) {
  .grade, .planos { grid-template-columns: 1fr }
  .seg-largo { grid-template-columns: 1fr }
  .foto { grid-template-columns: 92px 1fr }
  .dicas-foto { grid-column: 1 / -1 }
  .topo-in, .pagina { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
  .topo-in { flex-wrap: wrap; gap: 10px 12px }
  .topo-in > .btn { min-height: 38px; padding: 0 12px; font-size: 13px }
  .logo-nome { font-size: 19px }
  .cartao { padding: 18px 16px }
  .linha { flex-wrap: wrap }
}

/* =====================================================================
   Folha do currículo: papel sempre branco, tamanho em proporção A4.
   As medidas usam cqw (1cqw = 1% da largura da folha), então a mesma
   folha serve para a prévia e para o PDF em 210 mm.
   ===================================================================== */
.folha { container-type: inline-size; width: 100% }
.cv { --c: #1D3C7A; --cvf: "Arimo", Arial, Helvetica, sans-serif; position: relative; min-height: calc(100cqw * 297 / 210); background: #fff; color: #1B2333; font: 1.8cqw/1.42 var(--cvf);
  box-shadow: 0 1px 2px rgba(10, 20, 40, .08), 0 10px 28px rgba(10, 20, 40, .14); overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact }
.cv.bloq { user-select: none; -webkit-user-select: none }
.cv p { margin: 0 }
.cv ul { margin: 0 }
.cv-sec h3 { font: 700 1.85cqw var(--cvf); letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin: 0 0 1.4cqw }
.cv-nome { font-family: var(--cvf); font-weight: 700; font-size: 4.2cqw; line-height: 1.1; letter-spacing: -.01em; color: #14203B; overflow-wrap: anywhere }
.cv-cargo { font-size: 2cqw; font-weight: 700; color: var(--c); margin-top: .9cqw !important }
.cv-txt { font-size: 1.8cqw; color: #2B3448 }
.cv-obj { font-weight: 400; color: #4A5466 }
.cv-exp { display: grid; gap: 2.2cqw }
.cv-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw }
.cv-hd strong { font-size: 1.9cqw; color: #14203B }
.cv-when { font-size: 1.6cqw; color: #586378; white-space: nowrap; font-variant-numeric: tabular-nums }
.cv-co { font-size: 1.7cqw; color: #586378; margin-bottom: .5cqw }
.cv-job ul { padding-left: 2.4cqw; display: grid; gap: .3cqw; font-size: 1.75cqw }
.cv-form { display: grid; gap: .9cqw }
.cv-form p { display: flex; flex-direction: column }
.cv-form b { font-size: 1.8cqw; color: #14203B }
.cv-form span { font-size: 1.6cqw; color: #586378 }
.cv-plain { list-style: none; padding: 0; display: grid; gap: .6cqw; font-size: 1.72cqw }
.cv-pic { border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: var(--cvf); font-weight: 800; flex: none }
.cv-pic img { width: 100%; height: 100%; object-fit: cover; display: block }
.cv-wm { position: absolute; inset: -30%; display: grid; place-items: center; transform: rotate(-28deg); pointer-events: none;
  font: 800 3.6cqw/2.6 var(--display); letter-spacing: .06em; color: rgba(29, 60, 122, .14); white-space: pre; text-align: center }

.cv-cod { position: absolute; right: 2.4cqw; bottom: .8cqw; font-size: .9cqw; color: #FBFBFB; letter-spacing: .04em; pointer-events: none }
.cv-cod { z-index: 1 }

/* Modelo Clássico */
.t-classico { padding: 8cqw; display: flex; flex-direction: column; gap: 3.2cqw }
.t-classico { text-align: left }
.t-classico .cv-contato { font-size: 1.7cqw; color: #4A5466; margin-top: 1.2cqw }
.t-classico .cv-sec h3 { border-bottom: .18cqw solid #D9DFEA; padding-bottom: .8cqw }

/* Modelo Moderno */
.t-moderno { display: grid; grid-template-columns: 34% 1fr; min-height: calc(100cqw * 297 / 210) }
.t-moderno .cv-side { background: var(--c); color: #fff; padding: 6cqw 4.4cqw; display: flex; flex-direction: column; gap: 3.4cqw }
.t-moderno .cv-side h3 { color: #fff; opacity: .75 }
.t-moderno .cv-pic { width: 19cqw; height: 19cqw; align-self: center; font-size: 7cqw; background: rgba(255, 255, 255, .14); border: .8cqw solid rgba(255, 255, 255, .25) }
.t-moderno .cv-kv { list-style: none; padding: 0; display: grid; gap: 1.2cqw; font-size: 1.65cqw; overflow-wrap: anywhere }
.t-moderno .cv-kv small { display: block; opacity: .7; font-size: 1.3cqw }
.t-moderno .cv-side .cv-form b, .t-moderno .cv-side .cv-form span { color: #fff }
.t-moderno .cv-side .cv-form span { opacity: .75 }
.t-moderno .cv-main { padding: 7cqw 5.4cqw; display: flex; flex-direction: column; gap: 3.4cqw; min-width: 0 }
.t-moderno .cv-main h3 { display: flex; align-items: center; gap: 1.4cqw }
.t-moderno .cv-main h3::after { content: ""; flex: 1; height: .15cqw; background: #D9DFEA }

/* Modelo Destaque */
.t-destaque { display: flex; flex-direction: column }
.t-destaque .cv-band { background: var(--c); color: #fff; padding: 6.4cqw 7cqw; display: flex; gap: 4cqw; align-items: center }
.t-destaque .cv-band .cv-nome { color: #fff }
.t-destaque .cv-band .cv-cargo, .t-destaque .cv-band .cv-obj { color: #fff; opacity: .9 }
.t-destaque .cv-pic { width: 17cqw; height: 17cqw; font-size: 5.5cqw; background: rgba(255, 255, 255, .15); border: .6cqw solid rgba(255, 255, 255, .3) }
.t-destaque .cv-strip { display: flex; flex-wrap: wrap; gap: .6cqw 3cqw; padding: 2.2cqw 7cqw; background: #F1F4F9; font-size: 1.65cqw; color: #2B3448 }
.t-destaque .cv-body { padding: 5cqw 7cqw; display: flex; flex-direction: column; gap: 3.4cqw }
.t-destaque .cv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw }
.t-destaque .cv-2col > div { display: flex; flex-direction: column; gap: 3cqw }
.cv-tags { display: flex; flex-wrap: wrap; gap: 1cqw; list-style: none; padding: 0 }
.cv-tags li { background: #EEF2F8; border-radius: 1cqw; padding: .5cqw 1.6cqw; font-size: 1.65cqw }

/* Modelo Linha do tempo */
.t-linha { padding: 7cqw; display: flex; flex-direction: column; gap: 3.4cqw; border-top: 1.6cqw solid var(--c) }
.t-linha header { display: flex; justify-content: space-between; gap: 4cqw; align-items: center; padding-bottom: 3cqw; border-bottom: .2cqw solid #D9DFEA }
.t-linha .cv-id { display: flex; gap: 3cqw; align-items: center; min-width: 0 }
.t-linha .cv-pic { width: 14cqw; height: 14cqw; font-size: 4.6cqw; background: #EEF2F8; color: var(--c) }
.t-linha .cv-kv { list-style: none; padding: 0; display: grid; gap: .6cqw; font-size: 1.62cqw; text-align: right; color: #4A5466; flex: none; max-width: 40%; overflow-wrap: anywhere }
.cv-linha { border-left: .3cqw solid var(--c); padding-left: 3.6cqw; margin-left: 1cqw }
.cv-linha .cv-job { position: relative }
.cv-linha .cv-job::before { content: ""; position: absolute; left: calc(-3.6cqw - 1.15cqw); top: .5cqw; width: 2cqw; height: 2cqw; border-radius: 50%; background: #fff; border: .45cqw solid var(--c) }
.t-linha .cv-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.6cqw }

/* ---------- Impressão (PDF) ---------- */
.impressao { display: none }
@media print {
  @page { size: A4; margin: 0 }
  html, body { background: #fff !important }
  body > *:not(.impressao) { display: none !important }
  .impressao { display: block !important }
  .impressao .folha { width: 210mm; break-after: page }
  .impressao .folha:last-child { break-after: auto }
  .impressao .cv { box-shadow: none; min-height: 297mm }
  .impressao .t-moderno { min-height: 297mm }
  .impressao:empty::before { content: "Para baixar, libere seu currículo no site por R$ 4,90."; display: block; padding: 40mm 20mm; font: 16pt/1.4 sans-serif; color: #000 }
}
.banco-ok { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer }
.banco-ok input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent) }
.banco-ok b { color: var(--ink) }
.banco-ok[hidden] { display: none }
.t-linha .cv-3col > div { display: flex; flex-direction: column; gap: 3cqw }

/* Links para as páginas por profissão (fim da página inicial) */
.modelos-prof h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600 }
.modelos-prof .nota { margin: -10px 0 0; font-size: 13px }
.modelos-prof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px }
.modelos-prof a, .rodape a { color: var(--accent); font-weight: 600 }

/* Pix real */
.pix-pronto { display: flex; flex-direction: column; gap: 12px }
.pix-pronto p { margin: 0 }
.pix-qr { width: 200px; height: 200px; align-self: center; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line) }
.pix-espera { margin: 0; font-weight: 600; color: var(--muted) }
.pix-espera.ok { color: var(--ok) }
