:root {
  --ink: #102321;
  --muted: #60716d;
  --paper: #f6f8f3;
  --surface: #ffffff;
  --line: #d8e2dc;
  --green: #00833f;
  --green-dark: #005b2d;
  --mint: #dff5e8;
  --yellow: #f4c400;
  --yellow-soft: #fff7cf;
  --blue: #0757b8;
  --blue-soft: #eaf2ff;
  --danger: #a9231a;
  --danger-soft: #fdecea;
  --warning: #7e5b00;
  --warning-soft: #fff3cf;
  --shadow: 0 24px 70px rgba(16, 35, 33, .12);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(0, 131, 63, .12), transparent 30rem),
    radial-gradient(circle at 92% 15%, rgba(244, 196, 0, .12), transparent 26rem),
    var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.065em; }
h2 { margin-bottom: 14px; font-size: clamp(1.55rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid rgba(7, 87, 184, .45); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.small { color: var(--muted); font-size: .84rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 226, 220, .8);
  background: rgba(246, 248, 243, .91);
  backdrop-filter: blur(18px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-width: 0; display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 154px; height: auto; object-fit: contain; }
.brand-logo--footer { width: 190px; }
.nav-links { min-width: 0; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 750; }
.nav-links a:hover { color: var(--green-dark); }
.support-pill {
  max-width: 250px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink) !important;
}
.support-pill::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.support-pill[hidden] { display: none !important; }
.support-pill[aria-disabled="true"] { color: var(--muted) !important; cursor: default; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); }
.lead { max-width: 700px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); }

.hero { padding: 88px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-grid > *, .review-layout > *, .footer-grid > * { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 19px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 131, 63, .2);
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--green-dark); }
.button--secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.button--secondary:hover { background: #eef3ef; color: var(--ink); }
.button--ghost { background: transparent; color: var(--green-dark); box-shadow: none; }
.button--ghost:hover { background: var(--mint); }
.button[aria-disabled="true"] { background: #38534c; color: #a9bab5; box-shadow: none; cursor: not-allowed; transform: none; }
.button:disabled { background: #38534c; color: #c3d1cd; box-shadow: none; cursor: not-allowed; transform: none; opacity: 1; }
.button:disabled:hover { background: #38534c; transform: none; }

.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}
.identity-chip::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-weight: 900; }

.visual-card {
  position: relative;
  min-height: 445px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 33, .08);
  border-radius: 36px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.visual-card::before { content: ""; position: absolute; top: -150px; right: -100px; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(223, 245, 232, .8), rgba(223, 245, 232, 0)); opacity: .45; }
.visual-card::after { content: ""; position: absolute; left: -80px; bottom: -130px; width: 330px; height: 330px; border-radius: 50%; background: var(--yellow); opacity: .95; }
.receipt { position: absolute; z-index: 2; inset: 48px 42px auto; padding: 25px; border-radius: 22px; background: rgba(255, 255, 255, .97); color: var(--ink); transform: rotate(-2deg); box-shadow: 0 25px 70px rgba(0, 0, 0, .25); }
.receipt-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px dashed #b8c6c0; }
.receipt-tag { padding: 6px 9px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.receipt-list { display: grid; gap: 14px; padding-top: 20px; }
.receipt-row { min-width: 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .9rem; }
.receipt-row strong { min-width: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.hero-brand { position: absolute; z-index: 3; right: 28px; bottom: 25px; display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--ink); font-size: .78rem; font-weight: 850; box-shadow: 0 14px 36px rgba(0, 0, 0, .18); }
.hero-emblem { display: block; width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { min-width: 0; padding: 28px 26px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: .93rem; }
.section { padding: 78px 0; }
.section--compact { padding: 58px 0 76px; }
.section-heading { max-width: 730px; margin-bottom: 34px; }
.section-heading p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .88); box-shadow: 0 16px 42px rgba(16, 35, 33, .06); }
.card p { color: var(--muted); }
.card-number { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 12px; background: var(--yellow-soft); color: #6b5600; font-weight: 900; }

.page-hero { padding: 64px 0 34px; }
.page-hero .lead { margin-bottom: 0; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; padding-bottom: 78px; }
.ticket-shell { position: relative; margin-bottom: 24px; border: 1px solid #cfdad3; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.ticket-shell::before, .ticket-shell::after { content: ""; position: absolute; z-index: 2; top: 51%; width: 28px; height: 28px; border: 1px solid #cfdad3; border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
.ticket-shell::before { left: -15px; }
.ticket-shell::after { right: -15px; }
.ticket-top { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; border-bottom: 2px dashed #c7d2cc; border-radius: 25px 25px 0 0; background: linear-gradient(110deg, #fbfdfb, #eef7f1); }
.ticket-top img { width: 148px; height: auto; }
.ticket-type { color: var(--green-dark); font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ticket-code { max-width: 300px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; text-align: right; overflow-wrap: anywhere; }
.ticket-body { padding: 10px 28px 28px; }
.discount-badge { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--mint); color: var(--green-dark); font-size: .76rem; font-weight: 900; }
.discount-badge[data-valid="false"] { background: #edf1ee; color: var(--muted); }

.status { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 22px 0 28px; padding: 18px; border-radius: 17px; background: #edf1ee; }
.status-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #fff; font-weight: 900; }
.status strong { display: block; margin-bottom: 3px; }
.status p { margin: 0; color: var(--muted); font-size: .92rem; }
.status[data-tone="info"] { background: var(--blue-soft); }
.status[data-tone="info"] .status-icon { color: var(--blue); }
.status[data-tone="warning"] { background: var(--warning-soft); }
.status[data-tone="warning"] .status-icon { color: var(--warning); }
.status[data-tone="danger"] { background: var(--danger-soft); }
.status[data-tone="danger"] .status-icon { color: var(--danger); }
.status[data-tone="success"] { background: var(--mint); }
.status[data-tone="success"] .status-icon { color: var(--green); }

.details { margin: 0; }
.detail-row { min-width: 0; display: grid; grid-template-columns: minmax(130px, .42fr) 1fr; gap: 26px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); }
.detail-row dd { min-width: 0; margin: 0; font-weight: 780; text-align: right; overflow-wrap: anywhere; }
.detail-row--total dd { color: var(--green-dark); font-size: 1.35rem; }

.checkout-card { position: relative; overflow: hidden; margin-top: 24px; border: 1px solid #1d3b35; border-radius: 28px; background: var(--ink); color: #fff; box-shadow: 0 26px 70px rgba(16, 35, 33, .22); }
.checkout-card::before, .checkout-card::after { content: ""; position: absolute; top: 210px; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); }
.checkout-card::before { left: -17px; }
.checkout-card::after { right: -17px; }
.checkout-head { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 30px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.checkout-head img { width: 150px; height: auto; padding: 0; background: transparent; }
.checkout-head h2 { margin: 0; color: #fff; font-size: 1rem; text-align: right; letter-spacing: -.02em; }
.checkout-head span { color: #b8cbc5; font-size: .82rem; }
.checkout-summary { padding: 25px 30px; border-bottom: 2px dashed rgba(255, 255, 255, .2); }
.checkout-line { min-width: 0; display: flex; justify-content: space-between; gap: 24px; padding: 8px 0; color: #bfd0ca; }
.checkout-line strong { min-width: 0; color: #fff; text-align: right; overflow-wrap: anywhere; }
.checkout-line--total { margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 1.1rem; }
.checkout-line--total strong { color: #9ef2c8; font-size: 1.5rem; }
.checkout-payment { padding: 25px 30px 30px; }
.payment-note { margin: 0; color: #b3c5bf; font-size: .88rem; }
.payer-form { margin-top: 20px; }
.payer-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.payer-form legend { margin-bottom: 14px; color: #fff; font-size: .92rem; font-weight: 900; }
.payer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.payer-grid label { display: grid; gap: 7px; color: #d8e5e1; font-size: .8rem; font-weight: 800; }
.payer-grid input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 12px; background: #f8fbf9; color: #102321; font: inherit; }
.payer-grid input:focus { outline: 3px solid rgba(32, 208, 120, .35); outline-offset: 2px; }
.payer-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 15px; color: #b3c5bf; font-size: .8rem; line-height: 1.5; }
.payer-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.payer-consent a { color: #9ef2c8; }
.payment-action { width: 100%; margin-top: 18px; }
.pix-panel { display: grid; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.pix-panel[hidden], .pix-qr-box[hidden] { display: none; }
.pix-status { padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px; background: rgba(255, 255, 255, .08); color: #e7f1ed; font-size: .9rem; line-height: 1.5; }
.pix-status[data-tone="success"] { border-color: rgba(113, 239, 172, .45); background: rgba(30, 153, 88, .2); color: #baf7d6; }
.pix-status[data-tone="danger"] { border-color: rgba(255, 145, 145, .42); background: rgba(173, 42, 42, .22); color: #ffd1d1; }
.pix-qr-box { width: min(100%, 292px); display: grid; place-items: center; justify-self: center; padding: 16px; border-radius: 20px; background: #fff; }
.pix-qr-box img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pix-label { color: #d8e5e1; font-size: .82rem; font-weight: 800; }
.pix-code { box-sizing: border-box; width: 100%; min-height: 104px; padding: 13px; resize: vertical; border: 1px solid rgba(255, 255, 255, .22); border-radius: 13px; background: #f8fbf9; color: #102321; font: 700 .78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.pix-code:focus { outline: 3px solid rgba(32, 208, 120, .35); outline-offset: 2px; }
.pix-panel .button--secondary { width: 100%; }
.pix-panel time { color: #fff; font-weight: 800; }
.secure-row { display: flex; gap: 10px; align-items: start; margin-top: 16px; color: #a8bbb5; font-size: .82rem; }
.secure-row::before { content: "✓"; color: #9ef2c8; font-weight: 900; }

.panel-actions { display: grid; gap: 10px; padding-top: 24px; }
.panel-actions .button { width: 100%; }
.opt-out-result { padding: 15px; border-radius: 14px; background: var(--mint); color: var(--green-dark); outline: none; }
.aside-card { position: sticky; top: 100px; min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.aside-card h2 { font-size: 1.2rem; }
.aside-card p, .aside-card li { color: var(--muted); font-size: .93rem; }
.aside-card ul { display: grid; gap: 11px; padding-left: 20px; }
.aside-divider { height: 1px; margin: 22px 0; background: var(--line); }
.notice { padding: 18px; border-radius: 16px; background: var(--yellow-soft); color: #6d5700; font-size: .93rem; }
.notice strong { display: block; margin-bottom: 4px; }

.legal { max-width: 820px; padding: 54px 0 90px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal h2 { margin-top: 42px; font-size: 1.65rem; }
.legal p, .legal li { color: var(--muted); }
.legal-card { margin: 30px 0; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }

.site-footer { border-top: 1px solid var(--line); background: #edf1ec; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; padding: 48px 0 28px; }
.footer-company { margin-top: 18px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--green-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid #d2dcd6; color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid, .review-layout, .footer-grid { grid-template-columns: 1fr; }
  .review-layout { padding-bottom: 56px; }
  .aside-card { position: static; }
  .nav-links a:not(.support-pill) { display: none; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 24px), 1160px); }
  .nav { min-height: 68px; }
  .brand-logo { width: 128px; }
  .support-pill { max-width: 150px; font-size: .78rem !important; }
  .hero { padding: 54px 0 44px; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.7rem); }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
  .visual-card { min-height: auto; padding: 18px; }
  .visual-card::before, .visual-card::after { display: none; }
  .receipt { position: relative; inset: auto; transform: none; padding: 21px; }
  .receipt-row { align-items: flex-start; }
  .receipt-row strong { max-width: 58%; }
  .hero-brand { position: relative; right: auto; bottom: auto; margin-top: 14px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .ticket-top, .checkout-head { align-items: flex-start; flex-direction: column; }
  .ticket-shell::before { left: -12px; }
  .ticket-shell::after { right: -12px; }
  .ticket-top img, .checkout-head img { width: 132px; }
  .ticket-code, .checkout-head h2 { text-align: left; }
  .ticket-body, .checkout-summary, .checkout-payment { padding-left: 20px; padding-right: 20px; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .detail-row dd { text-align: left; }
  .checkout-card::before, .checkout-card::after { top: 245px; }
  .checkout-line { align-items: flex-start; }
  .checkout-line strong { max-width: 58%; }
  .payer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
