/* Ápice — paleta e tipografia do manual da marca v1.0 */
:root {
  --grafite: #292b2a;
  --taupe: #b4a394;
  --creme: #f2ebdd;
  --salvia: #98a58e;
  --coral: #dc7659;
  --coral-escuro: #91412c;
  --tinta: #292b2a;
  --tinta-2: #5b554f;
  --sans: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--tinta); font: 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-escuro); }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; max-width: 22ch; }
h3 { font-size: 1.12rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--creme); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; text-align: center;
}
.btn-coral { background: var(--coral); color: var(--grafite); }
.btn-coral:hover { background: #e58a70; }
.btn-ghost { color: var(--creme); border: 1.5px solid rgba(242, 235, 221, 0.55); }
.btn-ghost:hover { border-color: var(--creme); }

/* ---------- Hero: grafite + faixa de sulcos (as camadas da impressão) ---------- */
.hero {
  position: relative; background: var(--grafite); color: var(--creme);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 22vw, 300px);
  min-height: min(92vh, 860px);
}
.hero-text { padding: clamp(40px, 9vh, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; }
.logo { width: min(420px, 78%); }
.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--creme); }
.lead { max-width: 46ch; color: rgba(242, 235, 221, 0.86); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.ribbon { overflow: hidden; }
.ribbon img { width: 100%; height: 100% !important; object-fit: cover; object-position: right center; }

/* Um único momento de movimento: a faixa "imprime" de baixo para cima. */
@media (prefers-reduced-motion: no-preference) {
  .ribbon img { animation: print 1.6s steps(24) 0.2s both; }
  @keyframes print { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------- Seções ---------- */
main > section { padding: clamp(56px, 10vw, 112px) var(--gutter); }

.offer-grid { display: grid; gap: 2rem; margin-top: 2.5rem; grid-template-columns: minmax(0, 1fr); max-width: 1120px; }
@media (min-width: 760px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.offer-grid article { border-top: 3px solid var(--salvia); padding-top: 1.1rem; }
.offer-grid article:nth-child(2) { border-color: var(--taupe); }
.offer-grid article:nth-child(3) { border-color: var(--coral); }
.offer-grid p { margin-top: 0.5rem; color: var(--tinta-2); max-width: 36ch; }

.steps { background: #e9e0cf; }
.steps ol { list-style: none; counter-reset: passo; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem; max-width: 1120px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: passo; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; }
.steps li::before {
  content: counter(passo); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1;
  color: var(--coral-escuro);
}
.steps li p { color: var(--tinta-2); margin-top: 0.35rem; }

.b2b {
  background: var(--grafite); color: var(--creme); display: grid; gap: 1.75rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .b2b { grid-template-columns: minmax(0, 1fr) auto; } }
.b2b p { margin-top: 1rem; max-width: 52ch; color: rgba(242, 235, 221, 0.86); }

.faq details { border-bottom: 1px solid var(--taupe); max-width: 760px; }
.faq h2 + details { margin-top: 2rem; border-top: 1px solid var(--taupe); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--coral-escuro); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 1.2rem; color: var(--tinta-2); max-width: 62ch; }

.channels ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; max-width: 1120px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .channels ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.channels a {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1.25rem 1.4rem; border-radius: 14px;
  background: #fbf7ef; border: 1px solid rgba(41, 43, 42, 0.14); color: var(--tinta); text-decoration: none;
}
.channels a:hover { border-color: var(--coral); }
.channels span { color: var(--tinta-2); font-size: 0.95rem; }

.footer { background: var(--grafite); color: var(--taupe); padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; font-size: 0.95rem; }
.footer a { color: var(--creme); }
.footer p:last-child { margin-left: auto; }

@media (max-width: 600px) {
  .hero { grid-template-columns: minmax(0, 1fr) 64px; min-height: auto; }
  .actions .btn { width: 100%; }
}

.legal section { max-width: 720px; }
.legal h2 { margin: 1rem 0 1.25rem; }
.legal h3 { margin: 2rem 0 0.5rem; }
.legal p + p { margin-top: 0.75rem; }

/* ---------- Catálogo de testes ---------- */
.catalog-head { background: var(--grafite); color: var(--creme); padding: 32px var(--gutter); display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; }
.catalog-head img { width: 180px; }
.catalog-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.catalog-head p { margin-top: 0.5rem; max-width: 56ch; color: rgba(242, 235, 221, 0.86); }
.items { padding: clamp(32px, 6vw, 72px) var(--gutter); display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); max-width: 1240px; }
@media (min-width: 760px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1150px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { background: #fbf7ef; border: 1px solid rgba(41, 43, 42, 0.14); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.art { width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--grafite); padding: 12% 20%; }
.item-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.item-body > p { color: var(--tinta-2); }
.price { font-size: 1.5rem; font-weight: 700; color: var(--tinta) !important; }
.price span { font-size: 0.85rem; font-weight: 400; color: var(--tinta-2); margin-left: 0.4rem; }
.pay { margin-top: auto; }
.pay summary { list-style: none; cursor: pointer; width: 100%; }
.pay summary::-webkit-details-marker { display: none; }
.pay[open] summary { background: var(--grafite); color: var(--creme); }
.pay-box { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.qr { width: min(240px, 100%); align-self: center; background: #fff; border-radius: 12px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.pay-steps { margin: 0; padding-left: 1.2rem; color: var(--tinta-2); font-size: 0.95rem; }
.pay-steps li + li { margin-top: 0.3rem; }
.code-label { font-weight: 700; font-size: 0.9rem; }
.code { width: 100%; font: 0.8rem/1.4 ui-monospace, Consolas, monospace; padding: 0.6rem; border-radius: 10px; border: 1px solid var(--taupe); background: #fff; color: var(--tinta); resize: none; word-break: break-all; }
.pay-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-dark { background: var(--grafite); color: var(--creme); border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn-outline { border: 1.5px solid var(--grafite); color: var(--grafite); }
.back { margin-top: 1rem; }
