/* Páginas de compra e área do cliente: mesmas cores e fontes da página principal */
:root {
  --p-bg: #f4efe6; --p-surface: #ebe3d5; --p-ink: #262421; --p-muted: #68645d;
  --p-accent: #c96442; --p-accent-ink: #111111; --p-action: #c96442; --p-action-ink: #111111;
  --p-inv-bg: #262421; --p-inv-surface: #32302d; --p-inv-ink: #f4efe6; --p-inv-muted: #9f9b94;
  --p-inv-accent: #c96442; --p-inv-accent-ink: #111111; --p-inv-action: #c96442; --p-inv-action-ink: #111111;
  --font-display: "Newsreader", Georgia, serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.018em;
  --display-tracking-xl: -0.025em;
}
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--p-bg); }
.ap-top { border-bottom: 1px solid var(--line); background: var(--p-bg); }
.ap-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.ap-top .nav__logo { text-decoration: none; }
.ap-top__link { font-size: var(--t-small); font-weight: 500; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ap-top__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ap-main { flex: 1; padding-block: clamp(32px, 7vw, 88px); }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ap-narrow { max-width: 520px; margin-inline: auto; }
.ap-main h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; }
.ap-main h1 em { font-style: italic; }
.ap-lead { font-size: var(--t-lead); color: var(--muted); margin-top: 16px; max-width: 46ch; }
.ap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.ap-card .form { grid-template-columns: 1fr; }
.ap-card .btn { width: 100%; }
.ap-sum { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ap-sum__cover { width: 64px; aspect-ratio: 7 / 10; border-radius: 2px 6px 6px 2px; background: var(--p-inv-bg); display: grid; place-items: end start; padding: 6px; font: 400 15px/.86 var(--font-display); color: var(--p-accent); box-shadow: inset 4px 0 0 rgb(0 0 0 / .25); }
.ap-sum__name { font-weight: 500; }
.ap-sum__price { font: 400 28px/1 var(--font-display); }
.ap-note { font-size: var(--t-small); color: var(--muted); }
.ap-status { font-size: var(--t-small); font-weight: 500; min-height: 1.4em; }
.ap-status.is-error { color: #b42318; }
.ap-status.is-ok { color: #0d6b3a; }
.ap-checks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.ap-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ap-checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--p-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23262421' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ap-spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--p-surface); border-top-color: var(--p-ink); animation: ap-spin 1s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
.ap-badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 500; background: var(--p-accent); padding: 4px 12px; border-radius: 999px; justify-self: start; }

/* área do cliente */
.ar-book { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 40px); }
.ar-cover { width: 200px; aspect-ratio: 7 / 10; background: var(--p-inv-bg); color: var(--p-inv-ink); border-radius: 3px 10px 10px 3px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 8px 0 0 rgb(0 0 0 / .22), 0 24px 40px -22px rgb(13 42 28 / .6); }
.ar-cover b { font: 400 54px/.86 var(--font-display); color: var(--p-accent); }
.ar-cover span { font-size: 12px; color: var(--p-inv-muted); }
.ar-book h2 { font-size: clamp(28px, 3vw, 40px); }
.ar-book .btn-row { margin-top: 20px; }
.ar-list { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ar-list > div { background: var(--p-surface); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; }
.ar-list dt { font-size: var(--t-small); color: var(--muted); }
.ar-list dd { margin: 0; font-weight: 500; word-break: break-word; }
.ap-legal { max-width: 68ch; }
.ap-legal h2 { font-size: 28px; margin: 36px 0 10px; }
.ap-legal p, .ap-legal li { color: var(--ink); }
.ap-foot { border-top: 1px solid var(--line); padding-block: 24px; font-size: var(--t-small); color: var(--muted); }
.ap-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.ap-foot a { min-height: 44px; display: inline-flex; align-items: center; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .ap-grid { grid-template-columns: 1fr; }
  .ar-book { grid-template-columns: 1fr; }
  .ar-cover { width: 150px; }
  .ar-list { grid-template-columns: 1fr; }
  .ar-book .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ap-spinner { animation-duration: 3s; } }

/* Pix */
.px-steps { margin: 28px 0 0; padding-left: 1.3em; display: grid; gap: 10px; max-width: 46ch; }
.px-steps li::marker { font-weight: 600; }
.px-qr { width: min(240px, 100%); aspect-ratio: 1; margin-inline: auto; }
.px-qr svg { width: 100%; height: 100%; display: block; }
.px-code { font: 400 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; resize: none; min-height: 0 !important; }

/* painel */
.ad-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ad-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 var(--t-small)/1 var(--font-text); color: var(--ink); cursor: pointer; }
.ad-tabs button[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.ad-stats { display: flex; gap: 24px; font-size: var(--t-small); color: var(--muted); }
.ad-stats b { color: var(--ink); font-size: 20px; font-weight: 500; }
.ad-list { display: grid; gap: 12px; }
.ad-row { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: grid; grid-template-columns: 120px 1fr auto auto; gap: 8px 20px; align-items: center; }
.ad-row__code { font: 600 15px/1 ui-monospace, Menlo, Consolas, monospace; background: var(--p-accent); padding: 6px 8px; border-radius: 6px; justify-self: start; }
.ad-row__who b { display: block; font-weight: 500; }
.ad-row__who span { font-size: var(--t-small); color: var(--muted); word-break: break-all; }
.ad-row__when { font-size: var(--t-small); color: var(--muted); text-align: right; }
.ad-row__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ad-row__acts .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.ad-empty { padding: 48px 0; color: var(--muted); }
@media (max-width: 760px) {
  .ad-row { grid-template-columns: 1fr; }
  .ad-row__when { text-align: left; }
  .ad-row__acts { justify-content: stretch; }
  .ad-row__acts .btn { flex: 1; min-height: 44px; }
}
.px-steps { list-style: decimal; }
.px-steps li { padding-left: 4px; }

/* tema Claude: capas viram blocos com o ícone */
.ap-main h1 em { color: var(--p-accent); }
.ap-card, .ar-book, .ad-row, .ad-tabs button { background: #fffdf9; }
.ap-sum__cover { aspect-ratio: 1; height: auto; border-radius: 14px; background: var(--p-surface); box-shadow: none; display: grid; place-items: center; padding: 0; }
.ar-cover { aspect-ratio: 1; background: var(--p-inv-bg); border-radius: 22px; box-shadow: 0 24px 40px -22px rgb(38 36 33 / .6); justify-content: space-between; }
.ar-cover b { color: var(--p-accent); font-size: 48px; }
.ap-badge { background: rgb(201 100 66 / .16); color: #8f3f24; }
.ap-status.is-ok { color: #3d6b35; }
.ad-row__code { background: rgb(201 100 66 / .16); }
.ap-checks li::before { background-color: rgb(201 100 66 / .18); }
