/* ClipCar — manuais de uso (/ajuda). Usa as cores e fontes de site.css. */

.doc-hero { padding: 56px 0 48px; }
.doc-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.doc-hero .lead { max-width: 60ch; }
.doc-meta { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.doc-meta span::before { content: "•"; color: var(--brand); margin-right: 8px; font-weight: 700; }
.doc-meta span:first-child::before { content: none; }

.doc-grid { display: grid; gap: 32px; padding: 40px 0 80px; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } }

/* índice */
.doc-toc { align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 1000px) { .doc-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
.doc-toc summary { cursor: pointer; font-weight: 700; color: var(--ink); font-family: "Space Grotesk", sans-serif; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; display: grid; gap: 2px; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: flex; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.35; }
.doc-toc a::before { content: counter(toc); flex: 0 0 20px; height: 20px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.doc-toc a:hover, .doc-toc a.on { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.doc-toc a.on::before { background: var(--brand); color: #fff; }

/* conteúdo */
.doc { min-width: 0; counter-reset: sec; }
.doc-sec { counter-increment: sec; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-bottom: 24px; scroll-margin-top: 88px; }
@media (min-width: 700px) { .doc-sec { padding: 36px 40px; } }
.doc-sec > h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); display: flex; align-items: center; gap: 12px; }
.doc-sec > h2::before { content: counter(sec); flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; }
.doc-sec > .intro { margin-top: 12px; font-size: 1.04rem; }
.doc h3 { font-size: 1.12rem; margin-top: 28px; }
.doc p + p { margin-top: 10px; }
.doc ul.doc-list { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.doc ul.doc-list li { position: relative; padding-left: 22px; }
.doc ul.doc-list li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 999px; background: var(--brand); }
.doc b, .doc strong { color: var(--ink); }
.doc .ui { display: inline-block; font-weight: 600; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px; padding: 0 7px; font-size: 0.92em; white-space: nowrap; }

/* passo a passo */
.doc-steps { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.doc-steps > li { counter-increment: st; position: relative; padding: 2px 0 0 46px; min-height: 32px; }
.doc-steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* avisos */
.doc-tip { margin-top: 18px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-2); font-size: 0.95rem; }
.doc-tip::before { content: "i"; flex: 0 0 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-family: Georgia, serif; }
.doc-tip.warn { background: var(--warn-soft); color: #7c4a03; }
.doc-tip.warn::before { content: "!"; background: var(--warn); font-family: inherit; }
.doc-tip.good { background: var(--good-soft); color: #065f46; }
.doc-tip.good::before { content: "✓"; background: var(--good); font-family: inherit; }

/* figuras */
.doc-fig { margin: 22px 0 0; }
.doc-fig figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.doc-fig.desk .frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(10, 18, 48, 0.12); background: #fff; }
.doc-fig.desk .bar { height: 26px; background: var(--paper-2); display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.doc-fig.desk .bar i { width: 9px; height: 9px; border-radius: 999px; background: #c9d4ea; }
.doc-fig.desk img { width: 100%; }
.doc-fig.phone .shot { width: min(230px, 64vw); border-width: 8px; border-radius: 32px; }
.doc-fig.phone .shot img { aspect-ratio: auto; }
.doc-phones { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 6px; }
.doc-phones .doc-fig.phone .shot { width: min(210px, 64vw); }
.doc-row { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .doc-row { grid-template-columns: minmax(0, 1fr) 250px; } .doc-row.flip { grid-template-columns: 250px minmax(0, 1fr); } .doc-row.flip > :first-child { order: 2; } }
.doc-row > .doc-fig { margin-top: 0; }

/* tabela simples */
.doc-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.93rem; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { color: var(--ink); font-weight: 600; background: var(--paper); }
.doc-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc-scroll { overflow-x: auto; }

/* central de ajuda */
.help-cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .help-cards { grid-template-columns: repeat(3, 1fr); } }
.help-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; color: var(--ink-soft); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.help-card h2 { font-size: 1.35rem; margin-top: 16px; }
.help-card p { margin-top: 8px; font-size: 0.95rem; flex: 1; }
.help-card .go { margin-top: 18px; font-weight: 600; color: var(--brand-dark); }
.help-card .ico { width: 52px; height: 52px; }
.help-card ul { margin-top: 12px; list-style: none; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.help-card ul li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

.print-only { display: none; }

/* ---------- impressão / PDF ---------- */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10.5pt; color: #3b4569; }
  .site-header, .site-footer, .doc-toc, .no-print, .mobile-nav, .doc-hero { display: none !important; }
  .print-only { display: block; }
  .doc-grid { display: block; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .doc-sec { border: 0; border-radius: 0; padding: 0; margin: 0 0 10mm; break-before: page; }
  .doc-sec:first-of-type { break-before: auto; }
  .doc-sec > h2 { font-size: 17pt; }
  .doc-fig, .doc-tip, .doc-steps > li, .doc-table tr, .doc-row { break-inside: avoid; }
  .doc-fig.desk .frame { box-shadow: none; }
  .doc-fig.desk img { max-height: 98mm; width: auto; margin: 0 auto; }
  .doc-fig.desk .frame { max-width: 156mm; margin: 0 auto; }
  .doc-fig.phone .shot { box-shadow: none; width: 52mm; }
  .doc-phones .doc-fig.phone .shot { width: 46mm; }
  .doc-row { grid-template-columns: minmax(0, 1fr) 58mm; }
  .doc-row.flip { grid-template-columns: 58mm minmax(0, 1fr); }
  a { color: inherit; }
  .reveal { opacity: 1 !important; transform: none !important; }

  .print-cover { height: 255mm; display: flex; flex-direction: column; justify-content: space-between; break-after: page; padding: 18mm 14mm; color: #c4cfe9;
    background: radial-gradient(120% 150% at 10% -10%, #1c3a75 0%, #0a1230 55%, #0a1230 100%); border-radius: 6mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-cover .logo { display: flex; align-items: center; gap: 10px; }
  .print-cover .logo img.mark { height: 16mm; width: auto; }
  .print-cover .logo img.word { height: 10mm; width: auto; }
  .print-cover .kicker { font-size: 10pt; letter-spacing: 0.14em; text-transform: uppercase; color: #7cc0ff; font-weight: 700; }
  .print-cover h1 { color: #fff; font-size: 34pt; margin-top: 6mm; line-height: 1.05; }
  .print-cover .lead { font-size: 13pt; margin-top: 6mm; max-width: 140mm; }
  .print-cover .foot { font-size: 9pt; color: #9fb0d6; display: flex; justify-content: space-between; }
  .print-toc { break-after: page; }
  .print-toc h2 { font-size: 18pt; margin-bottom: 6mm; }
  .print-toc ol { margin: 0; padding-left: 7mm; display: grid; gap: 3mm; font-size: 12pt; color: #0a1230; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print { .print-cover .logo .reg { align-self: flex-start; margin-left: -6px; font-size: 9pt; color: #c4cfe9; } }
