@font-face { font-family: 'Atkinson Next'; src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Next'; src: url('/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light dark;
  --paper: #FAFBFA;
  --page: #EDF0EF;
  --grid: rgba(47, 106, 143, 0.07);
  --line: #D5DCDA;
  --rule: rgba(47, 106, 143, 0.18);
  --text: #25302F;
  --muted: #56625F;
  --ink: #2F6A8F;
  --ink-deep: #234F6B;
  --ink-text: #FFFFFF;
  --margin-red: #C7766B;
  --red-pen: #A4443A;
  --ok: #2C7A55;
  --hl: rgba(236, 206, 74, 0.62);
  --shadow: 0 1px 0 rgba(37, 48, 47, 0.05), 0 18px 40px -24px rgba(37, 48, 47, 0.35);
  --font: 'Atkinson Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #383F45;
    --page: #2C3136;
    --grid: rgba(255, 255, 255, 0.03);
    --line: #4C555D;
    --rule: rgba(147, 191, 219, 0.16);
    --text: #E5E3DD;
    --muted: #BEC3C7;
    --ink: #93BFDB;
    --ink-deep: #B5D4E8;
    --ink-text: #1E2A33;
    --margin-red: #B57A72;
    --red-pen: #EBA197;
    --ok: #8BCBA4;
    --hl: rgba(228, 200, 96, 0.34);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--page);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topo ---------- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.98rem; }
.top nav a:hover { color: var(--text); }
.top nav .enter { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .top nav a:not(.enter) { display: none; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--ink-text); border: 0;
  box-shadow: 0 2px 0 var(--ink-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink-deep); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- abertura ---------- */
.hero { padding: 28px 0 64px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } .hero { padding: 48px 0 88px; } }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 17ch;
}
.hero .lead { margin: 0 0 28px; font-size: 1.18rem; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .fine { margin: 18px 0 0; font-size: 0.95rem; color: var(--muted); }
.proof {
  margin: 34px 0 0; padding-left: 14px; border-left: 3px solid var(--margin-red);
  color: var(--text); font-size: 1rem; max-width: 30rem;
}
.proof small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- folha de caderno (o elemento marcante) ---------- */
.sheet {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent 39px, var(--rule) 39px, var(--rule) 40px);
  background-position: 0 66px;
  border-radius: 6px 14px 14px 6px;
  box-shadow: var(--shadow);
  padding: 22px 20px 22px 58px;
  transform: rotate(-0.6deg);
}
.sheet::before { /* margem vermelha */
  content: ''; position: absolute; top: 0; bottom: 0; left: 42px; width: 2px; background: var(--margin-red); opacity: 0.55;
}
.sheet .holes { position: absolute; left: 13px; top: 36px; bottom: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.sheet .holes i { width: 14px; height: 14px; border-radius: 50%; background: var(--page); box-shadow: inset 0 1px 2px rgba(0,0,0,0.18); }
.sheet h2 { margin: 0 0 2px; font-size: 1.05rem; line-height: 44px; display: flex; justify-content: space-between; gap: 8px; }
.sheet h2 span { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { height: 40px; padding: 0 6px; text-align: right; white-space: nowrap; }
.tbl th { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.tbl th:first-child, .tbl td:first-child { text-align: left; white-space: normal; padding-left: 0; }
.tbl td:first-child { font-size: 0.98rem; line-height: 1.15; }
.tbl td:first-child small { color: var(--muted); }
.tbl td.store { font-size: 0.98rem; color: var(--muted); }
.mark { position: relative; display: inline-block; padding: 1px 4px; color: var(--text); font-weight: 700; }
.mark::before {
  content: ''; position: absolute; inset: 2px -2px; z-index: 0;
  background: var(--hl); border-radius: 3px 8px 4px 9px;
  transform: scaleX(0) skewX(-8deg); transform-origin: left center;
  animation: swipe 0.42s cubic-bezier(.3,.7,.2,1) forwards;
  animation-delay: calc(0.5s + var(--i, 0) * 0.28s);
}
.mark > span { position: relative; z-index: 1; }
@keyframes swipe { to { transform: scaleX(1) skewX(-8deg); } }
.total-row td { border-top: 2px solid var(--text); font-weight: 700; }
.verdict {
  margin: 14px 0 0; font-size: 1.12rem; line-height: 1.35; font-weight: 700;
  opacity: 0; animation: appear 0.5s ease forwards; animation-delay: 2.2s;
}
.verdict .save { color: var(--ok); white-space: nowrap; }
.verdict .uline { background: linear-gradient(var(--red-pen), var(--red-pen)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.sheet .note { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mark::before { animation: none; transform: skewX(-8deg); }
  .verdict { animation: none; opacity: 1; }
}
@media (max-width: 420px) {
  .sheet { padding-left: 46px; padding-right: 14px; }
  .sheet::before { left: 34px; }
  .sheet .holes { left: 9px; }
  .tbl td:first-child { font-size: 0.92rem; }
}

/* ---------- seções ---------- */
section { padding: 64px 0; }
.sec-head { max-width: 40rem; margin-bottom: 32px; }
.sec-head h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.12; letter-spacing: -0.01em; }
.sec-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* como funciona: uma sequência real, então numerada */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.3rem; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.steps h3 { margin: 0 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

/* o que entra / de onde vêm os preços */
.honest { display: grid; gap: 40px; }
@media (min-width: 860px) { .honest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.honest h3 { margin: 0 0 14px; font-size: 1.25rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.checks .yes svg { color: var(--ok); }
.checks .not svg { color: var(--red-pen); }
.checks b { font-weight: 700; }
.honest .plain p { margin: 0 0 14px; }
.honest .plain p:last-child { margin: 0; color: var(--muted); }

/* preço: dois tíquetes (Anual e Mensal) e as notas embaixo */
.tickets { display: grid; gap: 24px; align-items: start; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .tickets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ticket .tag { position: absolute; top: 14px; right: 14px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--hl); color: var(--text); font-size: 0.8rem; font-weight: 700; }
.ticket .amount .was { font-size: 1.1rem; }
#preco > .wrap > .seats { text-align: center; margin: 18px 0 0; color: var(--muted); }
.price-notes { display: grid; gap: 4px 40px; max-width: 860px; margin: 36px auto 0; }
@media (min-width: 760px) { .price-notes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ticket {
  position: relative; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow);
  padding: 28px 26px 24px;
  --notch: 14px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 132px, transparent 98%, #000) , radial-gradient(circle var(--notch) at 100% 132px, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ticket .name { margin: 0; font-size: 1.15rem; font-weight: 700; }
.ticket .valid { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.ticket .amount { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 22px; flex-wrap: wrap; }
.ticket .amount strong { font-size: 3.2rem; line-height: 1; letter-spacing: -0.02em; }
.soon { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--hl); color: var(--text); font-size: 0.78rem; font-weight: 700; }
.ticket .amount .per { color: var(--muted); font-size: 1rem; }
.ticket .perf { border-top: 2px dashed var(--line); margin: 0 -26px 20px; }
.ticket ul { margin: 0 0 22px; padding-left: 20px; }
.ticket li { margin: 0 0 6px; }
.ticket .btn { width: 100%; }
.ticket .seats { margin: 12px 0 0; text-align: center; font-size: 0.92rem; color: var(--muted); }
.price-notes h3 { margin: 0 0 8px; font-size: 1.2rem; }
.price-notes p { margin: 0 0 22px; color: var(--muted); }
.price-notes p:last-child { margin-bottom: 0; }
.price-notes strong { color: var(--text); }

/* perguntas */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: -4px 0 18px; color: var(--muted); max-width: 40rem; }

/* fechamento */
.closing { text-align: left; }
.closing .box { background: var(--ink); color: var(--ink-text); border-radius: 18px; padding: 40px 28px; display: grid; gap: 22px; }
@media (min-width: 860px) { .closing .box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px 48px; } }
.closing h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.15; }
.closing p { margin: 0; opacity: 0.88; }
.closing .btn { background: var(--paper); color: var(--ink-deep); box-shadow: 0 2px 0 rgba(0,0,0,0.25); }

/* rodapé com a identificação exigida por lei */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: grid; gap: 18px; }
@media (min-width: 860px) { footer .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
footer p { margin: 0 0 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.todo { background: var(--hl); color: var(--text); padding: 0 4px; border-radius: 3px; }

/* ---------- subpáginas (documentos) ---------- */
.narrow { max-width: 760px; }
.doc { padding: 12px 0 72px; }
.subnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.subnav .back-btn, .subnav .home-link { font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.subnav .back-btn::before { content: '‹'; margin-right: 6px; font-size: 1.35em; line-height: 1; }
.subnav .back-btn:hover, .subnav .home-link:hover { text-decoration: underline; }
.doc h1:focus { outline: none; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 0.95rem; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; line-height: 1.25; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 0 0 8px; }
.doc .summary, .doc .lead-doc { font-size: 1.12rem; background: var(--paper); border-left: 4px solid var(--ink); padding: 16px 18px; border-radius: 0 10px 10px 0; box-shadow: var(--shadow); }
.doc .lead-doc { margin-bottom: 24px; }
.draft { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 6px; background: var(--hl); font-size: 0.9rem; font-weight: 700; }
.dtable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.98rem; }
.dtable th, .dtable td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dtable th { font-size: 0.85rem; color: var(--muted); }
.dtable tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .dtable thead { display: none; } .dtable td { display: block; border-bottom: 0; padding: 4px 14px; } .dtable td:first-child { padding-top: 14px; font-weight: 700; } .dtable td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); } }
.doc .faq h2 { margin-top: 0; }
.panel { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 20px; margin: 0 0 28px; }
.panel.ok { border-left: 4px solid var(--ok); }
.panel.ok h2 { margin-top: 0; color: var(--ok); }
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field label { font-weight: 700; font-size: 0.98rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--page); border: 1.5px solid #8E9A97; border-radius: 10px; padding: 12px 12px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.panel .btn { width: 100%; }
@media (min-width: 560px) { .panel .btn { width: auto; } }
.hint { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }
.err { color: var(--red-pen); font-weight: 700; margin: 0 0 12px; }
.doc + footer, main[data-page]:not([hidden]) ~ footer { border-top: 0; }

/* ---------- cadastro e login ---------- */
.auth-wrap { max-width: 520px; }
.auth h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); margin: 0 0 6px; }
.auth .panel { padding: 26px 22px; }
.auth .sub { color: var(--muted); margin: 0 0 20px; }
.auth .alt { text-align: center; margin: 16px 0 0; color: var(--muted); }
.btn.wide { width: 100%; }
.code { font-size: 1.6rem !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; margin: 4px 0 18px; font-size: 0.98rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.link { background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.test-banner { background: var(--hl); border-radius: 8px; padding: 8px 12px; font-size: 0.92rem; margin: 0 0 16px; }
.progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; counter-reset: p; }
.progress li { counter-increment: p; flex: 1; font-size: 0.85rem; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); font-weight: 700; }
.progress li::before { content: counter(p) '. '; }
.progress li.on { border-color: var(--ink); color: var(--ink); }
.progress li.done { border-color: var(--ok); color: var(--ok); }
.summary-list { margin: 0 0 20px; border-top: 1px solid var(--line); }
.summary-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); font-size: 0.92rem; }
.summary-list dd { margin: 0; }
.pay { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.pay legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pay-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px; border: 1.5px solid #8E9A97; border-radius: 12px; cursor: pointer; background: var(--page); }
.pay-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); }
.next { margin: 0 0 22px; padding-left: 22px; }
.next li { margin: 0 0 6px; }
.small { font-size: 0.9rem; }
.okmsg { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; border-left: 4px solid var(--ok); background: var(--paper); font-weight: 700; color: var(--ok); }

.coupon { margin: 0 0 18px; }
.coupon-box { margin-top: 8px; }
.coupon-box label { font-weight: 700; display: block; margin-bottom: 6px; }
.coupon-box .opt { font-weight: 400; color: var(--muted); }
.coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.coupon-row input { font: inherit; font-size: 16px; text-transform: uppercase; color: var(--text); background: var(--page); border: 1.5px solid #8E9A97; border-radius: 10px; padding: 10px 12px; min-height: 48px; min-width: 0; }
.coupon-row .btn { min-height: 48px; padding: 0 16px; }
.coupon-ok { margin: 8px 0 0; color: var(--ok); font-weight: 700; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pay-wait { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 10%, transparent); border-left: 4px solid var(--ok); line-height: 1.45; }
.coupon-err, .coupon .err { margin: 8px 0 0; }
.was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 6px; }

/* botão flutuante de ajuda */
.help-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ok); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.45); }
@media (prefers-color-scheme: dark) { .help-fab { color: #1E2A33; } }
.help-fab svg { width: 24px; height: 24px; }
.help-fab:hover { filter: brightness(1.06); }
@media (max-width: 560px) { .help-fab span { display: none; } .help-fab { padding: 0; width: 56px; justify-content: center; } }
footer { padding-bottom: 96px; }
