/* Hallmark · theme: custom · redesign: full · genre: editorial · job: try · brand: Selo Dourado · idea: "A cobrança vira a abertura, e o atendimento se lê como um roteiro." · vibe: "branco, ouro, precisa e direta" · signature: preço composto como na cobrança · axes: light/high-contrast-serif/warm · surface: absolute · v2.0.0 */
/* Hallmark · pre-emit critique: a repetição de caixas escondia o que distingue as opções. As duas ofertas agora compartilham uma única pauta. */
/* Hallmark · waive 7b · paleta da cobrança fornecida pelo usuário · branco e preto foram pedidos para a identidade. */
/* Hallmark · hero-review: in-thread · primeira palavra isolada resolvida na abertura. */
/* Hallmark · finish-review: in-thread · navegação compactada e valor protegido contra quebra. */
/* Hallmark · reworded "Seu certificado digital A1" to "Certificado digital A1" · F26, abertura sem palavra isolada. */
@import url("./tokens.css");
@import url("./base.css");

.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: .5rem auto auto .5rem; padding: .75rem; background: var(--color-paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 2px solid var(--color-accent);
}
.brand { display: grid; color: var(--color-ink); text-decoration: none; }
.brand span { font: 400 clamp(1.45rem, 3.5vw, 2.35rem)/1.15 var(--font-display); }
.brand b { color: var(--color-gold-dark); font-weight: 400; }
.brand small, .note { color: var(--color-secondary); font-size: .875rem; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
nav a { display: grid; align-items: center; min-height: 44px; font-size: .9375rem; text-decoration: none; }
nav a:hover, nav a:active { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: .75rem var(--gap-columns);
  align-items: center;
  padding-block: clamp(3.5rem, 10vw, 9.5rem) 3.5rem;
  border-bottom: 1px solid var(--color-accent);
}
.hero h1 { grid-column: 1; font-size: clamp(2.85rem, 7.7vw, 6.75rem); line-height: 1.01; text-wrap: initial; max-width: 10ch; }
.hero-lead { grid-column: 1; max-width: 38ch; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-price {
  grid-area: 1 / 2 / 5;
  justify-self: end;
  max-width: 24rem;
  border-block: 1px solid var(--color-rule);
  padding-block: 1.15rem;
  text-align: right;
}
.hero-price .promo-kicker { margin: 0; margin-inline-start: auto; color: var(--color-ink-2); font: 700 var(--text-md)/1.6 var(--font-body); text-wrap: balance; }
.hero-price .promo-cpf,
.hero-price .promo-cnpj { margin: .5rem 0 0; }
.hero-price .promo-cpf span,
.hero-price .promo-cnpj span { display: block; color: var(--color-secondary); font-size: .95rem; }
.hero-price .promo-cpf strong { display: block; color: var(--color-ink); font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-price .promo-cnpj strong { display: block; color: var(--color-ink); font-size: clamp(1.35rem, 2.8vw, 2.15rem); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-price .note { margin-top: .65rem; font-size: .75rem; }
.hero .actions { margin-top: .65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  padding: .65rem 1rem;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.button:hover { background: var(--color-ink-2); border-color: var(--color-accent); }
.button:active { box-shadow: inset 0 0 0 2px var(--color-accent); }
.button.outline { color: var(--color-ink); background: var(--color-paper); border-color: var(--color-gold-dark); }
.button.outline:hover { background: var(--color-paper-2); }
@media (max-width: 43rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-price { grid-area: auto; justify-self: start; text-align: left; margin-block: .65rem; max-width: none; }
  .hero-price .promo-kicker { margin-inline-start: 0; }
  .masthead { padding-block: 1rem .5rem; }
  nav { column-gap: .45rem; }
  nav a { font-size: .9rem; }
}

.section { padding-block: var(--section-gap); }
.section h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 4.3vw, 3.65rem); }
.section h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.definition > p { max-width: 45ch; font-size: clamp(1.25rem, 3vw, 2.55rem); line-height: 1.3; }
.pay-intro { max-width: 59ch; margin-bottom: 1.5rem; }
.pay-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem var(--gap-columns);
}
.pay-options article {
  display: grid;
  align-content: start;
  gap: .65rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-rule);
}
.pay-options .price { margin: 0; color: var(--color-ink); font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-options .price span { display: block; font-size: 1rem; font-weight: 400; color: var(--color-secondary); }
.pay-options .price-cnpj { margin-top: .35rem; font-size: clamp(1.35rem, 2.8vw, 2.15rem); }
.pay-options .button { justify-self: start; }
.pay-options article > p + p { margin-top: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; margin-top: 1rem; }
.foot-links a { display: grid; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: none; }
.foot-links a:hover, .foot-links a:active { text-decoration: underline; }
@media (max-width: 43rem) {
  .pay-options { grid-template-columns: minmax(0, 1fr); }
}
.section p + p, .section p + .button { margin-top: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem var(--gap-columns); }
.split h2 { max-width: 14ch; }
.split > p, .split > div > p { max-width: 59ch; }
.band { border-block: 1px solid var(--color-rule); }

.offers article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: .2rem var(--gap-columns);
  align-items: baseline;
  padding-block: 1.35rem;
  border-top: 1px solid var(--color-rule);
}
.offers article:last-child { border-bottom: 1px solid var(--color-rule); }
.offers h3 { grid-area: 1 / 1; }
.offers .offer-type { grid-area: 2 / 1; color: var(--color-secondary); }
.offers article > p:nth-of-type(2) { grid-area: 1 / 2; }
.offers .promo-offer { grid-area: 1 / 3; margin: 0; text-align: right; color: var(--color-secondary); font-size: .875rem; }
.offers .promo-offer strong { display: block; color: var(--color-ink); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.offers .full-price { grid-area: 2 / 3; text-align: right; }
.offers .note:not(.full-price):not(.promo-offer) { grid-area: 2 / 2; }
.offers article p { margin: 0; }
.offer-footer { margin-top: 1.5rem; }

.steps { margin: 0; padding-inline-start: 2rem; }
.steps li { padding: 1rem 0 1rem .65rem; border-bottom: 1px solid var(--color-rule); }
.steps li:first-child { border-top: 2px solid var(--color-accent); }
.steps li::marker { color: var(--color-gold-dark); font-weight: 700; }
.steps strong { display: block; margin-bottom: .25rem; font-size: 1.125rem; }
.audience { display: flex; flex-wrap: wrap; gap: 1.5rem var(--gap-columns); }
.audience > div { flex: 1 1 12rem; padding-top: 1rem; border-top: 1px solid var(--color-rule); }
.audience h3 { margin-bottom: .5rem; }

.faq details { border-bottom: 1px solid var(--color-rule); }
.faq details:first-child { border-top: 2px solid var(--color-accent); }
.faq summary { min-height: 46px; padding: .75rem .2rem; font-weight: 700; cursor: pointer; }
.faq summary:hover, .faq summary:active { text-decoration: underline; }
.faq details p { padding: 0 .2rem 1rem; }
.order-actions { margin-top: 1rem; }
#pedido { background: var(--color-paper-2); }
fieldset {
  display: grid;
  gap: .3rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend { padding: 0 0 .6rem; font-weight: 700; }
fieldset input, fieldset select {
  width: 100%;
  min-height: 44px;
  padding-inline: .65rem;
  margin-bottom: .55rem;
  border: 1px solid var(--color-muted);
  border-radius: 0;
}
fieldset .button { justify-self: start; }
fieldset :disabled, .button:disabled {
  opacity: 1;
  background: var(--color-disabled);
  color: var(--color-secondary);
  border-color: var(--color-muted);
  cursor: not-allowed;
}
footer { border-top: 2px solid var(--color-accent); padding-block: 1.5rem 2.5rem; color: var(--color-secondary); }
footer strong { color: var(--color-ink); }

#jarvis {
  width: min(39rem, 100% - 2rem);
  max-height: 90vh;
  max-height: 90dvh;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid var(--color-gold-dark);
  background: var(--color-paper);
  color: var(--color-ink-2);
  overflow: auto;
}
#jarvis[open] { display: flex; flex-direction: column; gap: .75rem; }
#jarvis::backdrop { background: var(--color-backdrop); }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.chat-header h2 { font-size: 2.25rem; }
#mensagens { min-height: 5rem; overflow: auto; overscroll-behavior: contain; padding: .75rem .25rem; border-block: 1px solid var(--color-rule); }
.message { width: fit-content; max-width: 94%; margin-bottom: .65rem; padding: .65rem .85rem; background: var(--color-paper-2); overflow-wrap: anywhere; }
.message.visitor { margin-inline-start: auto; background: var(--color-ink-2); color: var(--color-paper); }
.message strong { display: block; font-size: .875rem; }
.chat-actions { flex: 0 0 auto; }

@media (max-width: 49rem) {
  .offers article { grid-template-columns: minmax(0, 1fr) auto; }
  .offers .promo-offer { grid-area: 1 / 2; }
  .offers .full-price { grid-area: 2 / 2; }
  .offers article > p:nth-of-type(2), .offers .note:not(.full-price):not(.promo-offer) { grid-area: auto / 1 / auto / -1; }
}
@media (max-width: 43rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split h2 { max-width: none; }
}

/* v4 oficial 28/11/2026 — título da promoção, carrinho e botão super master */
.hero h1.promo-title { max-width: 16ch; font-size: clamp(2.3rem, 6vw, 5.2rem); }
.nav-carrinho b { display: inline-grid; place-items: center; min-width: 1.4em; margin-left: .25em; padding: 0 .3em; border-radius: 1em; background: var(--color-accent); color: var(--color-ink); font-size: .8rem; }
.carrinho-linhas { display: grid; gap: .5rem; margin-block: 1rem; }
.carrinho-linha { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--color-rule); }
.carrinho-linha .qtd button { min-width: 36px; min-height: 36px; border: 1px solid var(--color-gold-dark); background: var(--color-paper); cursor: pointer; font-size: 1rem; }
.carrinho-total { font-size: 1.25rem; }
#form-pedido fieldset input { width: 100%; }
#btn-pagar { margin-top: .75rem; }
.botao-super-master { padding: 0 1rem; border: 2px solid var(--color-accent); border-radius: 999px; background: var(--color-ink); color: #f5d77a !important; font-weight: 700; }
.botao-super-master:hover { background: var(--color-ink-2); }
