/* RifaOnline — estilos da home. Sem dependências externas. */

:root {
  --ink: #0f2a3d;
  --ink-2: #183c55;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --surface: #ffffff;
  --text: #15232e;
  --muted: #4a5b68;
  --line: #ddd5c8;
  --primary: #0a7558;
  --primary-dark: #075a44;
  --primary-soft: #e3f3ec;
  --amber: #f4a259;
  --amber-soft: #fdebd8;
  --coral: #c2410c;
  --focus: #f4a259;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .06), 0 8px 24px rgba(15, 42, 61, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); text-underline-offset: .18em; }
a:hover { color: var(--primary); }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.15em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  color: #fff; background: var(--primary); border: 2px solid var(--primary); border-radius: 999px;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-lg { min-height: 52px; padding: .8em 1.5em; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .95rem; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 238, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247, 244, 238, .8); backdrop-filter: blur(8px); } }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.brand b { font-weight: 800; color: var(--primary); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 25px; color: var(--ink); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.header-row .btn { margin-left: auto; }
@media (min-width: 880px) {
  .nav { display: flex; }
  .header-row .btn { margin-left: 8px; }
}

/* Hero */
.hero { background: var(--ink); color: #e7eef3; padding: 48px 0 0; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(244, 162, 89, .18), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(10, 117, 88, .35), transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #cbd8e1; max-width: 38em; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .75em; }
.hero .eyebrow { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.hero .btn:hover { background: #f7b77c; border-color: #f7b77c; color: var(--ink); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero-note { font-size: .92rem; color: #a9bccb; }
.hero-note strong { color: #fff; }

.hero-art { position: relative; height: 300px; max-width: 420px; width: 100%; margin: 0 auto; }
.ticket {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  width: 250px; padding: 18px 22px 18px 26px; border-radius: 12px;
  background: var(--amber); color: var(--ink);
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket::after { content: ""; position: absolute; top: 14px; bottom: 14px; right: 64px; border-right: 2px dashed rgba(15, 42, 61, .35); }
.t-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.t-num { font-family: var(--mono); font-size: 2.6rem; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.t-meta { font-size: .82rem; font-weight: 600; opacity: .8; }
.ticket-a { top: 20px; left: 0; transform: rotate(-6deg); }
.ticket-b { top: 128px; right: 0; background: #fff; transform: rotate(4deg); }
.ticket-b .t-label { color: var(--primary); }
.mini-grid {
  position: absolute; left: 24px; bottom: -6px; display: grid; grid-template-columns: repeat(10, 18px); gap: 5px;
  opacity: .9;
}
.mini-grid i { width: 18px; height: 18px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.mini-grid i.s { background: var(--primary); }

.quicklinks { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-top: 32px; padding-bottom: 20px; scrollbar-width: none; }
.quicklinks::-webkit-scrollbar { display: none; }
.quicklinks a {
  flex: 0 0 auto; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
}
.quicklinks a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.25fr .9fr; gap: 56px; }
  .hero-art { height: 340px; }
  .quicklinks { padding-top: 48px; }
}

/* Seções */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-2); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin-bottom: 2em; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* Passos */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 20px 72px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--amber); font-weight: 800; font-family: var(--mono);
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 72px 18px 20px; }
}

.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid #bfe3d4;
}
.cta-inline p { margin: 0; font-weight: 700; color: var(--ink); }

/* Ferramentas */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 32px; overflow: hidden; }
.tool:last-child { margin-bottom: 0; }
.tool-head { padding: 26px 20px 4px; }
.tool-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; }
.tool-head p { color: var(--muted); max-width: 46em; }
.tool-body { padding: 8px 20px 24px; }
.tool-tip { margin: 0 20px 20px; padding: 12px 14px; font-size: .95rem; color: var(--muted); background: var(--paper); border-radius: var(--radius-sm); }
.tool-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 18px 20px; background: var(--ink); color: #e7eef3;
}
.tool-cta p { margin: 0; font-weight: 600; }
.tool-cta .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tool-cta .btn:hover { background: #f7b77c; border-color: #f7b77c; }
@media (min-width: 720px) {
  .tool-head { padding: 32px 32px 4px; }
  .tool-body { padding: 8px 32px 32px; }
  .tool-cta { padding: 20px 32px; }
  .tool-tip { margin: 0 32px 24px; }
}

.fields { display: grid; gap: 16px; }
@media (min-width: 600px) { .fields { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fields { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .fields-3 { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .meta legend { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field small { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1.5px solid #b9ae9d; border-radius: var(--radius-sm);
}
.field input:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--coral); }

.check { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

/* Calculadora */
.calc { display: grid; gap: 24px; }
.results { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
.results dl { margin: 0; display: grid; gap: 4px; }
.results dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.results dt { color: var(--muted); }
.results dd { margin: 0; font-weight: 700; font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.results .total { border-bottom: 0; padding-top: 12px; }
.results .total dt { color: var(--ink); font-weight: 800; }
.results .total dd { font-size: 1.35rem; color: var(--primary-dark); }
.results .total dd.neg { color: var(--coral); }
.result-note { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }
.meta { margin: 0; padding: 18px 20px; border: 1.5px dashed #c9bfae; border-radius: var(--radius); display: grid; gap: 12px; }
.meta legend { padding: 0 6px; font-size: 1.05rem; }
.suggest { margin: 0; font-size: 1rem; color: var(--text); }
.suggest strong { font-family: var(--mono); color: var(--primary-dark); font-size: 1.15rem; }
@media (min-width: 960px) {
  .calc { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .calc .fields { grid-template-columns: repeat(2, 1fr); }
  .calc .meta { grid-column: 1 / -1; grid-template-columns: 1fr 1.4fr; align-items: end; }
}

/* Gerador */
.gen-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sheet-wrap { padding: 0 20px 24px; }
@media (min-width: 720px) { .sheet-wrap { padding: 0 32px 32px; } }
.sheet { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #111; }
.sheet-title { font-size: 1.4rem; font-weight: 800; margin: 0; color: #111; }
.sheet-prize { margin: 2px 0 0; font-size: 1rem; }
.sheet-info { margin: 0; font-size: .9rem; text-align: right; }
.sheet-info span { display: block; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0; border-top: 1px solid #999; border-left: 1px solid #999; }
.sheet-cell { border-right: 1px solid #999; border-bottom: 1px solid #999; padding: 6px 6px 4px; min-height: 52px; display: flex; flex-direction: column; justify-content: space-between; break-inside: avoid; }
.sheet-cell b { font-family: var(--mono); font-size: .95rem; }
.sheet-cell i { display: block; border-bottom: 1px solid #bbb; height: 14px; }
.sheet-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #0f2a3d; }
.sheet-logo { width: 34px; height: 24px; flex: none; }
.sheet-brand-name { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.sheet-brand-name b { font-weight: 800; color: #0a7558; }
.sheet-brand-url { margin-left: auto; font-size: .8rem; color: #555; }
.sheet-foot { margin: 12px 0 0; font-size: .78rem; color: #555; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }

/* Limite da versão grátis */
.upgrade {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--amber-soft); border: 1.5px solid var(--amber);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.upgrade[hidden] { display: none; }
.upgrade p { margin: 0; max-width: 40em; color: var(--ink); }
.result-upgrade { margin: 10px 0 0; padding: 10px 12px; font-size: .95rem; background: var(--amber-soft); border-radius: var(--radius-sm); }
.result-upgrade[hidden] { display: none; }
#gen-form .form-error { margin-top: 16px; }

/* Comparativo grátis x Rifa Digital */
.plans { display: grid; gap: 20px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.3rem; font-weight: 800; }
.plan-tag { align-self: flex-start; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary-dark); }
.plan-list { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 10px; flex: 1; }
.plan-list li { position: relative; padding-left: 30px; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) 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='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan-list li.minus { color: var(--muted); }
.plan-list li.minus::before { background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' stroke='%234a5b68' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan .btn { align-self: flex-start; }
.plan-pro { background: var(--ink); border-color: var(--ink); color: #dbe5ec; }
.plan-pro h3 { color: #fff; }
.plan-pro .plan-tag { background: rgba(244, 162, 89, .18); color: var(--amber); }
.plan-pro .plan-list li::before { background-color: var(--amber); }
.plan-pro .plan-list li::before { background-image: 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='%230f2a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-pro .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.plan-pro .btn:hover { background: #f7b77c; border-color: #f7b77c; color: var(--ink); }
.plan-note { margin: 12px 0 0; font-size: .85rem; color: #a9bccb; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sorteador */
.form-error { margin: 12px 0 0; color: var(--coral); font-weight: 700; min-height: 0; }
.form-error:empty { display: none; }
.draw-out:empty { display: none; }
.draw-out { margin-top: 20px; padding: 18px 20px; background: var(--paper); border-radius: var(--radius); }
.draw-nums { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.draw-nums li {
  min-width: 54px; padding: 8px 12px; text-align: center; border-radius: 10px;
  font-family: var(--mono); font-weight: 800; font-size: 1.25rem; color: var(--ink); background: var(--amber);
}
.draw-nums.many li { font-size: 1rem; min-width: 44px; padding: 6px 8px; background: var(--amber-soft); }
.draw-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; color: var(--muted); }
.draw-meta p { margin: 0; }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; color: var(--primary-dark); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Tabela de critérios */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.criteria { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .98rem; }
.criteria caption { text-align: left; padding: 16px 20px 0; font-weight: 700; color: var(--muted); font-size: .9rem; }
.criteria th, .criteria td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.criteria thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.criteria tbody th { color: var(--ink); width: 26%; }
.criteria tbody tr:last-child > * { border-bottom: 0; }
.criteria td:last-child { color: var(--muted); }

.reco {
  margin-top: 28px; display: grid; gap: 20px; align-items: center;
  padding: 26px 22px; border-radius: 20px; background: var(--ink); color: #dbe5ec;
}
.reco h3 { color: #fff; font-size: 1.35rem; }
.reco .eyebrow { color: var(--amber); }
.reco p:last-child { margin-bottom: 0; }
.reco .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); justify-self: start; }
.reco .btn:hover { background: #f7b77c; border-color: #f7b77c; }
@media (min-width: 900px) { .reco { grid-template-columns: 1fr auto; padding: 32px 36px; } }

/* Dicas */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; border-top: 4px solid var(--amber); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.blog-link { margin-top: 28px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-link .eyebrow { margin-bottom: .4em; }
.blog-link a { font-weight: 800; font-size: 1.1rem; color: var(--ink); }

/* Legal */
.legal-list { padding-left: 1.2em; margin: 0 0 1.2em; }
.legal-list li { margin-bottom: .6em; }
#legal .narrow { border-left: 4px solid var(--amber); padding-left: 24px; }
@media (max-width: 719px) { #legal .narrow { margin-left: 16px; width: calc(100% - 16px); padding-left: 16px; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary h3 { margin: 0; font-size: 1.05rem; display: inline; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Rodapé */
.site-footer { background: var(--ink); color: #b8c8d4; padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; }
.brand-footer { color: #fff; }
.brand-footer:hover { color: #fff; }
.brand-footer b { color: var(--amber); }
.brand-footer .brand-mark { color: var(--amber); }
.site-footer p { margin: 12px 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { color: #fff; display: inline-block; padding: 6px 0; }
.site-footer nav a:hover { color: var(--amber); }
.footer-small { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

#print-area { display: none; }

/* Impressão */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .hero-art, .quicklinks, .tool-cta, .btn, .cta-inline, .reco .btn, .skip, .site-footer nav { display: none !important; }
  .hero { background: #fff; color: #000; padding: 0; }
  .hero h1, .hero .lead { color: #000; }
  .section, .section-alt { background: #fff; padding: 16px 0; }
  details { break-inside: avoid; }

  /* Ao imprimir pelo gerador, só a tabela aparece */
  html.print-sheet body > *:not(#print-area) { display: none !important; }
  html.print-sheet #print-area { display: block; }
  /* Folha A4 única: caixa fixa de 190 x 277 mm (A4 menos 10 mm de margem); a grade ocupa o que sobrar. */
  html.print-sheet, html.print-sheet body { margin: 0; padding: 0; background: #fff; }
  #print-area .sheet {
    width: 190mm; height: 277mm; overflow: hidden; display: flex; flex-direction: column;
    border: 0; padding: 0; border-radius: 0; font-size: 10pt; break-inside: avoid; page-break-inside: avoid;
  }
  #print-area .sheet-brand { margin-bottom: 3mm; }
  #print-area .sheet-logo { width: 12mm; height: 8.4mm; }
  #print-area .sheet-brand-name { font-size: 14pt; }
  #print-area .sheet-brand-url { font-size: 9pt; }
  #print-area .sheet-head { flex: none; padding-bottom: 2.5mm; margin-bottom: 3mm; gap: 1mm 8mm; flex-wrap: nowrap; }
  #print-area .sheet-head > div { min-width: 0; }
  #print-area .sheet-title { font-size: 17pt; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  #print-area .sheet-prize { font-size: 11pt; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  #print-area .sheet-info { font-size: 10pt; flex: none; }
  #print-area .sheet-grid {
    flex: 1 1 auto; min-height: 0;
    grid-template-columns: repeat(var(--cols, 5), 1fr);
    grid-template-rows: repeat(var(--rows, 20), minmax(0, 1fr));
  }
  #print-area .sheet-cell { min-height: 0; padding: 1.2mm 2mm 1.4mm; overflow: hidden; }
  #print-area .sheet-cell b { font-size: var(--num-size, 10pt); line-height: 1; }
  #print-area .sheet-cell i { height: auto; flex: none; }
  #print-area .sheet-foot { flex: none; margin-top: 2.5mm; font-size: 8pt; }
  #print-area .sheet, #print-area .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Tabela de critérios empilhada no celular */
@media (max-width: 639px) {
  .table-scroll { overflow: visible; }
  .criteria { min-width: 0; }
  .criteria thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .criteria tbody tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .criteria tbody tr:last-child { border-bottom: 0; }
  .criteria tbody th, .criteria td { display: block; width: auto; padding: 4px 0; border: 0; }
  .criteria tbody th { font-size: 1.05rem; padding-bottom: 6px; }
  .criteria td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
