/* ===================== MontPDF — design quente e humano ===================== */
:root {
  --coral: #e2574c;
  --coral-dark: #c8463c;
  --coral-soft: #fdeceb;
  --ink: #2b2b32;
  --muted: #6b6f76;
  --line: #ece7e1;
  --bg: #fbf8f5;
  --card: #ffffff;
  --green: #2e9e6b;
  --blue: #3b82c4;
  --amber: #d98324;
  --purple: #7c5cbf;
  --slate: #5b6470;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 43, 50, .04), 0 8px 24px rgba(43, 43, 50, .06);
  --shadow-sm: 0 1px 2px rgba(43, 43, 50, .06);
  --maxw: 1120px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 245, .92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--coral);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 16px;
  box-shadow: 0 3px 8px rgba(226, 87, 76, .35);
}
.brand b { color: var(--coral); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a, .nav button.linklike {
  padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 15px;
  background: none; border: none;
}
.nav a:hover, .nav button.linklike:hover { color: var(--ink); background: #f2ece6; }
.nav a.active { color: var(--coral); }
.btn-ghost { border: 1px solid var(--line) !important; color: var(--ink) !important; background: #fff !important; }
.menu-toggle { display: none; margin-left: auto; background: none; border: none; color: var(--ink); padding: 6px; }
.plan-badge {
  font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: #fff5e6; color: var(--amber); border: 1px solid #f3e2c4;
}
.plan-badge.premium { background: #efeaff; color: var(--purple); border-color: #ddd2f7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: #fff; border: none; padding: 12px 20px;
  border-radius: 11px; font-weight: 800; font-size: 15px; transition: transform .05s, background .15s;
  box-shadow: 0 4px 12px rgba(226, 87, 76, .28);
}
.btn:hover { background: var(--coral-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: #faf6f2; }
.btn.big { padding: 15px 28px; font-size: 17px; border-radius: 13px; }
.btn.block { width: 100%; }

/* ---------- Home / hero ---------- */
.hero { padding: 56px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -1px; }
.hero h1 .hl { color: var(--coral); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 620px; margin: 0 auto 8px; }
.hero .reassure { font-size: 14px; color: var(--muted); margin-top: 16px; }
.hero .reassure span { display: inline-flex; align-items: center; gap: 6px; margin: 0 10px; }
.hero .reassure svg { color: var(--green); }

/* ---------- Tool grid ---------- */
.section-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; }
.section-title h2 { font-size: 18px; margin: 0; }
.section-title .dot { width: 9px; height: 9px; border-radius: 3px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s, border-color .12s;
  display: flex; flex-direction: column; gap: 10px; position: relative; min-height: 132px;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e3dccf; }
.tool-card .chip {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
}
.tool-card h3 { margin: 2px 0 0; font-size: 16.5px; }
.tool-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tool-card .soon {
  position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800;
  background: #f1ede8; color: var(--muted); padding: 3px 8px; border-radius: 999px;
}
.tool-card .pro {
  position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800;
  background: #efeaff; color: var(--purple); padding: 3px 8px; border-radius: 999px;
}

/* ---------- Tool page ---------- */
.tool-page { padding: 30px 0 60px; }
.tool-head { text-align: center; margin-bottom: 22px; }
.tool-head .chip { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; }
.tool-head h1 { margin: 0 0 6px; font-size: 28px; }
.tool-head p { margin: 0 auto; color: var(--muted); max-width: 560px; }
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .tool-layout { grid-template-columns: 1fr; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }

/* upload */
.dropzone {
  border: 2px dashed #e0d6c8; border-radius: var(--radius); background: #fffdfb;
  padding: 40px 20px; text-align: center; transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--coral); background: var(--coral-soft); }
.dropzone .up-icon { color: var(--coral); margin: 0 auto 10px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--coral-soft); border-radius: 50%; }
.dropzone h3 { margin: 0 0 4px; font-size: 18px; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }

.filelist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fileitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.fileitem .fi-icon { color: var(--coral); flex: none; }
.fileitem .fi-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fileitem .fi-size { color: var(--muted); font-size: 12.5px; margin-left: auto; flex: none; }
.fileitem .fi-actions { display: flex; gap: 4px; flex: none; }
.iconbtn { background: #f4efe9; border: none; border-radius: 8px; padding: 6px; color: var(--muted); display: grid; place-items: center; }
.iconbtn:hover { background: #ece5dc; color: var(--ink); }

/* options form */
.options { margin-top: 18px; display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.field input[type=text], .field input[type=number], .field select, .field input[type=email], .field input[type=password] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.field.row { display: flex; gap: 12px; }
.field.row > div { flex: 1; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { padding: 9px 14px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); }

.actions-bar { margin-top: 20px; display: flex; gap: 12px; align-items: center; }

/* result */
.result { text-align: center; padding: 26px 18px; }
.result .ok-circle { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ee; color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.result .notice { background: #fff6e0; border: 1px solid #f1d58a; color: #6b4e00; border-radius: 10px; padding: 10px 14px; max-width: 520px; margin: 10px auto 0; font-size: 14px; }
.result h3 { margin: 0 0 6px; font-size: 22px; }
.result p { color: var(--muted); margin: 0 0 18px; }
.result pre.summary { text-align: left; white-space: pre-wrap; background: #faf6f2; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; max-height: 340px; overflow: auto; font-family: inherit; font-size: 14.5px; line-height: 1.6; }

/* sidebar / ads */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.ad-slot { background: #fff; border: 1px dashed #ddd4c7; border-radius: var(--radius); padding: 16px; text-align: center; color: var(--muted); }
.ad-slot .ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #b3aa9c; margin-bottom: 8px; }
.ad-slot .ad-body { min-height: 220px; display: grid; place-items: center; background: #faf6f2; border-radius: var(--radius-sm); font-size: 14px; }
.upsell { background: linear-gradient(180deg, #fff, #fff8f1); border: 1px solid #f1e2cf; border-radius: var(--radius); padding: 18px; }
.upsell h4 { margin: 0 0 6px; }
.upsell p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { padding: 40px 0 60px; }
.pricing h1 { text-align: center; font-size: 32px; margin: 0 0 6px; }
.pricing .sub { text-align: center; color: var(--muted); margin: 0 0 34px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 760px; margin: 0 auto; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); }
.plan-card.featured { border: 2px solid var(--coral); box-shadow: var(--shadow); position: relative; }
.plan-card.featured .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 14px; border-radius: 999px; }
.plan-card h3 { margin: 0 0 4px; font-size: 20px; }
.plan-card .price { font-size: 38px; font-weight: 900; margin: 10px 0; letter-spacing: -1px; }
.plan-card .price small { font-size: 15px; font-weight: 700; color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan-card li svg { color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Account ---------- */
.account { padding: 40px 0 60px; max-width: 720px; }
.account h1 { margin: 0 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 26px; font-weight: 900; }
.stat .l { color: var(--muted); font-size: 13px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(40, 35, 30, .45); display: grid; place-items: center; z-index: 100; padding: 18px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 410px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 4px; font-size: 23px; }
.modal .sub { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }
.modal .field { margin-bottom: 14px; }
.modal .switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.modal .switch a { color: var(--coral); font-weight: 700; }
.modal .modal-close { float: right; background: none; border: none; color: var(--muted); margin: -8px -8px 0 0; }
.form-error { background: var(--coral-soft); color: var(--coral-dark); border-radius: 9px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; font-weight: 600; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; max-width: calc(100vw - 24px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 11px; font-weight: 700; font-size: 14.5px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: pop .2s; }
.toast.err { background: var(--coral-dark); }
.toast.ok { background: var(--green); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; padding: 26px 20px; align-items: center; }
.site-footer .muted { color: var(--muted); font-size: 13.5px; }
.site-footer .foot-links { margin-left: auto; display: flex; gap: 18px; }
.site-footer .foot-links a { color: var(--muted); font-size: 14px; }
.site-footer .foot-links a:hover { color: var(--coral); }

/* progress */
.bar { height: 8px; background: #efe8e0; border-radius: 999px; overflow: hidden; margin-top: 14px; }
.bar > span { display: block; height: 100%; width: 30%; background: var(--coral); border-radius: 999px; animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Home redesenhada (hero acao-first) ========== */
.hero2 { padding: 48px 0 18px; }
.hero2-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero2-left .kicker {
  display: inline-block; font-size: 13px; font-weight: 800; color: var(--coral-dark);
  background: var(--coral-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; letter-spacing: .2px;
}
.hero2-left h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -1.2px; }
.hero2-left .lead { font-size: 17px; color: var(--muted); margin: 0 0 22px; max-width: 520px; }
.hero-upload {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 2px dashed #e0d6c8; border-radius: var(--radius); padding: 18px 20px; background: #fffdfb;
  transition: border-color .15s, background .15s;
}
.hero-upload.drag { border-color: var(--coral); background: var(--coral-soft); }
.hero-upload-or { color: var(--muted); font-size: 14px; }
.hero2-left .trust { margin: 14px 2px 0; font-size: 13.5px; color: #9a9087; }

/* mock do editor (ilustracao em CSS, sem "stock") */
.ed-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; transform: rotate(.6deg); }
.ed-mock-bar { display: flex; gap: 6px; padding: 4px 4px 12px; }
.ed-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #efe3d8; }
.ed-mock-bar span:nth-child(1) { background: #f2b8b2; }
.ed-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ed-pg { aspect-ratio: 3/4; border-radius: 7px; background: linear-gradient(180deg,#fff,#fbf7f3); border: 1px solid #ece4da; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ed-pg::before { content: ""; position: absolute; left: 12%; right: 12%; top: 16%; height: 6px; border-radius: 3px; background: #efe6dc; box-shadow: 0 12px 0 #efe6dc, 0 24px 0 #f3ece4; }
.ed-pg.rot { transform: rotate(-8deg); border-color: #f0c9c4; }
.ed-pg.sel { border: 2px solid var(--coral); }
.ed-pg.sel::after { content: "✓"; position: absolute; right: 6px; top: 5px; width: 18px; height: 18px; background: var(--coral); color: #fff; border-radius: 50%; font-size: 12px; display: grid; place-items: center; font-weight: 900; }

/* ========== Editor / Leitor estilo Acrobat ========== */
.editor-empty { text-align: center; padding: 70px 20px; }
.editor-empty .up-icon.big { width: 76px; height: 76px; margin: 0 auto 18px; background: var(--coral-soft); color: var(--coral); border-radius: 50%; display: grid; place-items: center; }
.editor-empty h1 { margin: 0 0 8px; }
.editor-empty p { color: var(--muted); margin: 0 0 22px; }

.reader { display: flex; flex-direction: column; height: calc(100vh - 64px); }
.reader-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.rt-file { display: flex; align-items: center; gap: 8px; font-weight: 800; min-width: 0; }
.rt-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rt-nav { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.rt-nav .pagei { font-weight: 700; font-size: 14px; color: var(--muted); min-width: 78px; text-align: center; }
.rt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 8px 13px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.iconbtn.lg { padding: 8px; }
.iconbtn.lg:disabled { opacity: .4; cursor: not-allowed; }
.rt-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; display: inline-block; }

.reader-main { flex: 1; display: grid; grid-template-columns: 188px 1fr 312px; min-height: 0; }

/* rail de miniaturas */
.rail { overflow-y: auto; border-right: 1px solid var(--line); background: #faf7f4; padding: 12px 10px; }
.rail-item { position: relative; margin-bottom: 12px; border-radius: 9px; cursor: pointer; padding: 6px; border: 2px solid transparent; transition: border-color .12s, background .12s; }
.rail-item:hover { background: #f1ebe4; }
.rail-item.active { border-color: var(--coral); background: #fff; }
.rail-item.dragging { opacity: .4; }
.rail-item.over { box-shadow: 0 0 0 3px var(--coral-soft); }
.rail-canvas { background: #fff; border: 1px solid var(--line); border-radius: 5px; min-height: 120px; display: grid; place-items: center; overflow: hidden; }
.rail-canvas canvas { width: 100%; height: auto; display: block; }
.rail-foot { display: flex; align-items: center; margin-top: 5px; }
.rail-num { font-size: 12px; font-weight: 800; color: var(--muted); }
.rail-acts { margin-left: auto; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; }
.rail-item:hover .rail-acts { opacity: 1; }
.rail-badge { position: absolute; top: 8px; right: 8px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 6px; }

/* visor central */
.stage { overflow: auto; background: #e9e3db; padding: 26px; display: flex; justify-content: center; align-items: flex-start; }
.stage-page { position: relative; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.16); border-radius: 2px; }
.stage-page canvas { display: block; border-radius: 2px; }
.stage.commenting .stage-page { cursor: crosshair; }
.stage-loading { color: var(--muted); align-self: center; display: flex; gap: 10px; align-items: center; }
.pin { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -100%); background: var(--coral); color: #fff; border-radius: 50% 50% 50% 2px; display: grid; place-items: center; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer; border: 2px solid #fff; }
.pin:hover { background: var(--coral-dark); }

/* painel direito (abas) */
.rightp { border-left: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.rp-tabs { display: flex; border-bottom: 1px solid var(--line); }
.rp-tab { flex: 1; padding: 13px; background: none; border: none; font-weight: 800; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.rp-tab.active { color: var(--coral); border-bottom-color: var(--coral); }
.rp-body { flex: 1; overflow-y: auto; padding: 16px; }
.rp-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

.ws-tools { display: flex; flex-direction: column; gap: 8px; }
.ws-tool { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--ink); transition: background .12s, border-color .12s; }
.ws-tool:hover { background: #faf6f2; border-color: #e3dccf; }
.ws-tool .ws-ico { color: var(--coral); flex: none; display: grid; place-items: center; }
.ws-tool .ws-name { flex: 1; }
.ws-tool .ws-pro { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--purple); background: #efeaff; padding: 2px 7px; border-radius: 999px; }
.ws-tool.locked { color: var(--muted); } .ws-tool.locked .ws-ico { color: var(--muted); }
.ws-tool.soon { opacity: .55; cursor: not-allowed; }
.ws-tool .ws-soon { font-size: 11px; font-weight: 800; color: var(--muted); background: #f1ede8; padding: 2px 7px; border-radius: 999px; }
.ws-group { margin-bottom: 14px; }
.ws-group-title { margin: 0 0 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ws-result { border: 1px solid #cfe9da; background: #f1faf5; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.ws-result-head { display: flex; align-items: center; gap: 6px; color: var(--green); }
.ws-result-head b { color: var(--ink); }
.ws-result-name { margin: 4px 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-result-note { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.ws-result-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ws-chosen { font-size: 12.5px; color: var(--muted); margin-top: 6px; word-break: break-all; }

/* comentarios */
.cmt-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 30px 10px; }
.cmt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; cursor: pointer; }
.cmt:hover { border-color: #e3dccf; background: #faf6f2; }
.cmt-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cmt-meta .who { font-weight: 800; color: var(--ink); }
.cmt-meta .pg { margin-left: auto; background: #f1ede8; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.cmt-text { font-size: 14px; line-height: 1.45; }
.cmt-compose { display: flex; gap: 8px; margin-top: 8px; }
.cmt-compose textarea { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 9px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 60px; }
.presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--green); background: #e7f6ee; padding: 4px 10px; border-radius: 999px; }
.presence .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.spinner.dark { border-color: rgba(43,43,50,.2); border-top-color: var(--coral); }
.up-badge { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #efeaff; color: var(--purple); display: grid; place-items: center; }
.share-link { display: flex; gap: 8px; margin: 14px 0; }
.share-link input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 10px; font-size: 13px; background: #faf6f2; }
.ad-box { background: #f1ede8; border-radius: var(--radius-sm); height: 200px; display: grid; place-items: center; color: var(--muted); margin: 14px 0; text-align: center; }

@media (max-width: 920px) {
  .hero2-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero2-right { order: -1; max-width: 360px; }
  .reader { height: auto; }
  .reader-main { grid-template-columns: 1fr; }
  .rail { display: flex; gap: 10px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .rail-item { flex: 0 0 110px; margin: 0; }
  .stage { padding: 16px; max-height: 62vh; }
  .rt-nav { flex-wrap: wrap; margin: 0; max-width: 100%; }
  .rt-nav .annot-insertbar { margin-left: 0; }
  .rt-file span { max-width: calc(100vw - 80px); }
  .rightp { border-left: none; border-top: 1px solid var(--line); }
  .rp-body { max-height: 420px; }
  .ws-group .ws-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ws-tool { padding: 9px 9px; font-size: 13px; gap: 7px; min-width: 0; }
  .ws-tool .ws-name { min-width: 0; overflow-wrap: anywhere; }
  .ws-tool .ws-pro, .ws-tool .ws-soon { display: none; }
}

/* ========== Painel de QA ========== */
.qa { padding: 30px 0 60px; }
.qa-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.qa-head h1 { margin: 0 0 4px; }
.qa-head .sub { color: var(--muted); margin: 0; }
.qa-head .btn { margin-left: auto; }
.qa-summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.qa-chip { font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.qa-chip.ok { background: #e7f6ee; color: var(--green); }
.qa-chip.fail { background: var(--coral-soft); color: var(--coral-dark); }
.qa-chip.pend { background: #f1ede8; color: var(--muted); }
.qa-prog { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 13px; }
.qa-section { margin-bottom: 22px; }
.qa-section h3 { font-size: 16px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.qa-item { display: grid; grid-template-columns: 1fr auto 240px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.qa-label { font-weight: 600; font-size: 14.5px; }
.qa-status { display: flex; gap: 6px; }
.qa-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 11px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.qa-btn.ok.on { background: var(--green); color: #fff; border-color: var(--green); }
.qa-btn.fail.on { background: var(--coral); color: #fff; border-color: var(--coral); }
.qa-btn.pend.on { background: #e7e0d6; color: var(--ink); border-color: #ddd4c7; }
.qa-note { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 14px; }
@media (max-width: 760px) { .qa-item { grid-template-columns: 1fr; } .qa-status { flex-wrap: wrap; } }

/* banner de anuncio in-page */
.ad-banner { border: 1px dashed #ddd4c7; background: #fff; border-radius: var(--radius); padding: 10px 16px; margin: 22px 0 6px; text-align: center; }
.ad-banner .ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #b3aa9c; }
.ad-banner .ad-banner-body { color: var(--muted); font-size: 14px; min-height: 40px; display: grid; place-items: center; }
.ad-banner .ad-banner-body a { color: var(--coral); font-weight: 700; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .2s; margin: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a, .nav button.linklike { padding: 12px 14px; }
  .hero { padding: 36px 0 16px; }
}

.from-drive { text-align: center; margin: 12px 0 4px; }

/* ---------- Páginas SEO por ferramenta (server/seo/landings.js) + lista "Todas as ferramentas" ---------- */
.seo-page .seo-nav { margin-left: auto; }
.seo-main { padding-top: 22px; padding-bottom: 40px; max-width: 900px; }
.seo-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.seo-crumbs a { color: var(--coral); font-weight: 700; }
.seo-hero { padding: 8px 0 22px; }
.seo-hero .chip { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.seo-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 12px; }
.seo-hero .lead { font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 0 20px; }
.seo-cta { color: #fff; }
.seo-cta-sub { color: var(--muted); font-size: 14px; margin-left: 10px; }
.seo-soon { color: var(--amber); font-weight: 700; }
.seo-body { line-height: 1.7; font-size: 16px; }
.seo-body p { margin: 0 0 12px; }
.seo-body h2, .seo-faq h2, .seo-related h2, .seo-alltools h2 { font-size: 19px; margin: 22px 0 10px; }
.seo-body h2:first-of-type { margin-top: 18px; }
.seo-steps { margin: 0 0 8px; padding-left: 22px; }
.seo-steps li { margin: 4px 0; }
.seo-faq { margin-top: 26px; }
.seo-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 10px; }
.seo-faq summary { font-weight: 800; cursor: pointer; }
.seo-faq details p { margin: 8px 0 0; color: var(--muted); }
.seo-cta-bottom { text-align: center; margin: 26px 0 8px; }
.seo-cta-bottom .btn { color: #fff; }
.seo-related { margin-top: 18px; }
.seo-alltools { padding: 10px 0 26px; }
.seo-alltools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.seo-alltools a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink); }
.seo-alltools a:hover { border-color: var(--coral); color: var(--coral); }
.seo-alltools--page { padding-bottom: 0; }
body.mont-embed .seo-alltools { display: none !important; }
@media (max-width: 760px) {
  .seo-page .seo-nav { position: static; transform: none; flex-direction: row; align-items: center; padding: 0; border: 0; box-shadow: none; background: none; gap: 4px; }
  .seo-page .seo-nav > a:first-child { display: none; }
  .seo-cta-sub { display: block; margin: 8px 0 0; }
}
.seo-page .seo-nav a.btn { color: #fff; background: var(--coral); padding: 8px 13px; }
