/* Jenyfer Dias — link na bio
   Cores e letra tiradas dos posts dela: cinza claro de estúdio, chocolate
   do esmalte, nude da unha natural; Urbanist fina com palavra em negrito. */
:root {
  --fundo: #ECEAE7;
  --papel: #F7F6F4;
  --tinta: #1D1715;
  --suave: #6E625D;
  --linha: #D9D4CF;
  --choco: #5B3424;
  --choco-escuro: #3B2219;
  --nude: #E8CCBE;
  --raio: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 400 16px/1.5 'Urbanist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--choco); outline-offset: 3px; }

.folha { max-width: 480px; margin: 0 auto; padding: 0 20px calc(40px + env(safe-area-inset-bottom)); }

/* Marca (igual à assinatura dos posts) */
.marca { display: flex; align-items: center; gap: 10px; padding: 22px 0 18px; }
.marca-jd { font-weight: 300; font-size: 30px; letter-spacing: -0.12em; line-height: 1; padding-right: 10px; border-right: 1px solid var(--tinta); }
.marca-texto { display: grid; line-height: 1.15; }
.marca-texto strong { font-weight: 700; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; }
.marca-texto small { font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--suave); }

/* Perfil */
.perfil { display: grid; grid-template-columns: 44% 1fr; gap: 18px; align-items: end; }
.retrato { margin: 0; aspect-ratio: 3 / 4.4; overflow: hidden; border-radius: var(--raio); background: #d8d3cf; }
.retrato img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 12%; }
.perfil-texto { padding-bottom: 4px; }
h1 { margin: 0; font-weight: 300; font-size: clamp(30px, 9vw, 40px); line-height: 0.98; letter-spacing: -0.03em; }
.especialidade { margin: 14px 0 0; font-size: 15px; line-height: 1.3; font-weight: 300; }
.cidade { margin: 12px 0 0; font-size: 13px; color: var(--suave); }

/* Entrada (única animação de abertura) */
@media (prefers-reduced-motion: no-preference) {
  .retrato img { animation: revela 1s cubic-bezier(.2,.7,.2,1) both; }
  .perfil-texto > * { animation: sobe .7s cubic-bezier(.2,.7,.2,1) both; }
  .perfil-texto > :nth-child(2) { animation-delay: .12s; }
  .perfil-texto > :nth-child(3) { animation-delay: .22s; }
  @keyframes revela { from { clip-path: inset(100% 0 0 0); transform: scale(1.08); } to { clip-path: inset(0); transform: none; } }
  @keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Troca clientes / alunas */
.troca { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 0; border: 1px solid var(--tinta); border-radius: var(--raio); padding: 3px; gap: 3px; }
.troca button { border: 0; background: none; padding: 12px 6px; border-radius: 4px; font-weight: 500; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.troca button[aria-selected="true"] { background: var(--tinta); color: var(--papel); }
.painel { padding-top: 22px; }
@media (prefers-reduced-motion: no-preference) { .painel:not([hidden]) { animation: aparece .35s ease both; } @keyframes aparece { from { opacity: 0; } to { opacity: 1; } } }

/* Atalhos */
.atalhos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.atalho { display: grid; place-items: center; min-height: 48px; padding: 8px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); text-decoration: none; font-size: 14px; font-weight: 500; text-align: center; transition: border-color .2s; }
.atalho:hover { border-color: var(--tinta); }
.atalho-forte { background: var(--choco); border-color: var(--choco); color: #fff; }
.atalho-forte:hover { background: var(--choco-escuro); border-color: var(--choco-escuro); }

/* Ficha de pedido */
h2 { margin: 0; font-weight: 300; font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; }
.ficha { margin-top: 34px; background: var(--papel); border-radius: var(--raio); padding: 24px 18px 18px; scroll-margin-top: 12px; }
.ficha-intro { margin: 8px 0 0; color: var(--suave); font-size: 14px; }
.etapa { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
legend, .rotulo { display: block; padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.opc { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--suave); margin-left: 4px; }
.etapa-nota { margin: -4px 0 10px; font-size: 13px; color: var(--suave); }
.erro { margin: 8px 0 0; font-size: 13px; color: #A3352A; font-weight: 500; }

.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 44px; border: 1px solid var(--linha); background: #fff; border-radius: var(--raio); cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.seg button:hover { border-color: var(--tinta); }
.seg button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }

/* Estruturas: cartões com a foto do post */
.estruturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.estrutura { display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.estrutura img { width: 100%; aspect-ratio: 25 / 15.5; object-fit: cover; background: #EDEDED; }
.estrutura span { padding: 8px 8px 10px; display: grid; gap: 3px; }
.estrutura strong { font-size: 14px; line-height: 1.15; }
.estrutura small { font-size: 11.5px; line-height: 1.25; color: var(--suave); }
.estrutura:hover { border-color: var(--tinta); }
.estrutura[aria-pressed="true"] { border-color: var(--choco); box-shadow: inset 0 0 0 1px var(--choco); }
.estrutura[aria-pressed="true"] strong { color: var(--choco); }
.detalhe { margin: 10px 0 0; padding: 10px 12px; border-left: 2px solid var(--choco); background: #fff; font-size: 13.5px; line-height: 1.4; }
.detalhe b { color: var(--choco); }

/* Formatos: a fileira de dedos do post */
.formatos { display: grid; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: #EDECEA; }
.formato { display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 12px; padding: 0 12px 0 0; border: 0; border-top: 1px solid var(--linha); background: none; text-align: left; cursor: pointer; transition: background .15s; }
.formato:first-child { border-top: 0; }
.formato img { width: 100%; height: 62px; object-fit: cover; object-position: right center; }
.formato span { display: grid; gap: 1px; padding: 6px 0; }
.formato strong { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.formato small { font-size: 12.5px; line-height: 1.25; color: var(--suave); }
.formato:hover { background: #E4E1DE; }
.formato[aria-pressed="true"] { background: var(--choco); }
.formato[aria-pressed="true"] strong, .formato[aria-pressed="true"] small { color: #fff; }

/* Dias em fita */
.dias { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia { flex: 0 0 58px; scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 9px 0 8px; border: 1px solid var(--linha); background: #fff; border-radius: var(--raio); cursor: pointer; transition: border-color .15s; }
.dia small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--suave); }
.dia strong { font-size: 21px; font-weight: 500; line-height: 1.1; }
.dia em { font-style: normal; font-size: 10.5px; color: var(--suave); }
.dia:hover { border-color: var(--tinta); }
.dia[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); }
.dia[aria-pressed="true"] * { color: var(--papel); }
.dia:disabled { opacity: .35; cursor: default; border-style: dashed; background: none; }

.campo { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; font-size: 16px; }
.campo:focus { outline: none; border-color: var(--tinta); }
.campo[aria-invalid="true"] { border-color: #A3352A; }

.envio { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--linha); }
.resumo { margin: 0 0 12px; font-size: 14px; color: var(--suave); }
.resumo b { color: var(--tinta); font-weight: 600; }
.botao { display: grid; place-items: center; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: var(--raio); background: var(--choco); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s; }
.botao:hover { background: var(--choco-escuro); }

/* Resultados */
.resultados { margin-top: 40px; }
.grade { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.grade button { padding: 0; border: 0; background: #d8d3cf; cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.grade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.grade button:hover img { transform: scale(1.04); }
.grade button:first-child { grid-column: span 2; grid-row: span 2; }
.mais { margin-top: 10px; width: 100%; min-height: 46px; border: 1px solid var(--tinta); border-radius: var(--raio); background: none; font-weight: 500; cursor: pointer; }
.mais:hover { background: var(--tinta); color: var(--papel); }

/* Academy */
.academy-foto { margin: 0; border-radius: var(--raio); overflow: hidden; aspect-ratio: 5 / 4; background: #E3E2E0; }
.academy-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.academy-texto { padding-top: 22px; }
.academy-texto > p { margin: 12px 0 0; font-size: 17px; font-weight: 300; line-height: 1.4; }
blockquote { margin: 26px 0; padding: 16px 0; border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linha); }
blockquote p { margin: 0; font-style: italic; font-weight: 300; font-size: 16px; line-height: 1.4; }
cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--suave); letter-spacing: 0.08em; text-transform: uppercase; }

/* Rodapé */
.rodape { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--tinta); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.rodape-links { display: flex; gap: 14px; flex-wrap: wrap; }
.rodape-links a { text-decoration: none; font-weight: 500; }
.rodape-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rodape p { margin: 0; color: var(--suave); }

/* Foto ampliada */
.lupa { position: fixed; inset: 0; z-index: 20; background: rgba(20, 15, 13, .96); display: grid; grid-template-rows: auto 1fr auto; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); color: #fff; }
.lupa[hidden] { display: none; }
.lupa img { justify-self: center; align-self: center; max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; min-height: 0; }
.lupa button { border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; border-radius: var(--raio); padding: 10px 14px; cursor: pointer; font-weight: 500; }
.lupa-fechar { justify-self: end; margin-bottom: 10px; }
.lupa-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; }

.aviso { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(440px, calc(100% - 32px)); margin: 0; padding: 14px 16px; border-radius: var(--raio); background: var(--tinta); color: var(--papel); font-size: 14px; line-height: 1.35; }

@media (min-width: 700px) {
  body { padding: 28px 0; }
  .folha { background: var(--fundo); }
}
