/* Same typography and design tokens as the Reescrever / Silicon interface. */
@font-face {
    font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
    --brand: #6366f1; --tool-brand: #6366f1; --ink: #131022;
    --text: #585c7b; --muted: #737991; --line: #e2e5f1;
    --surface: #f3f6ff; --paper: #fff;
    --shadow: 0 4.4px 12px -1px rgba(19,16,34,.06), 0 2px 6.4px -1px rgba(19,16,34,.03);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: Manrope, sans-serif; font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
.icon { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.container { width: 100%; margin: 0 auto; padding: 0 12px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-header { background: #fff; box-shadow: var(--shadow); position: relative; z-index: 2; }
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.6px; line-height: 1.2; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--brand); border-radius: 10px; }
.brand-mark .icon { width: 23px; height: 23px; }
.tool-nav { display: flex; align-items: center; gap: 24px; }
.tool-nav a { color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tool-nav [aria-current] { color: var(--brand); }
.network-link { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; }
.network-link .icon { width: 16px; height: 16px; }
/* Editor proportions, borders, form controls and spacing follow the native tools. */
.rw-native-tool-app { background: var(--surface); padding-bottom: 20px; }
.rw-ferramenta-cabecalho { display: flex; justify-content: center; padding: 20px 0 22px; }
.rw-ferramenta-titulo { margin: 0; color: var(--ink); font-size: clamp(1.35rem,1.5vw,1.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.rw-colunas { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; padding: 0 4px; height: clamp(320px,calc(100svh - 308px),760px); }
.rw-column { display: flex; min-width: 0; min-height: 0; }
.card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.editor-card { display: flex; flex-direction: column; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.card-header h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.badge { padding: 4.55px 7.8px; border-radius: 4px; color: #737991; background: #fff; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.card-body { padding: 24px; }
.rw-corpo { position: relative; flex: 1; min-height: 0; padding: 0; }
.rw-corpo textarea { display: block; width: 100%; height: 100%; padding: 16px; resize: none; border: 0; border-radius: 0; background: #fff; color: var(--text); font-family: inherit; font-size: 15.2px; line-height: 1.7; }
.rw-corpo textarea::placeholder { color: #9397ad; opacity: 1; }
.rw-corpo textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px #c7d2fe; }
.rw-corpo textarea[readonly] { cursor: default; }
.card-footer { min-height: 42px; padding: 8px 24px; border-top: 1px solid var(--line); }
.card-footer small { color: var(--muted); font-size: 14px; }
.result-footer { display: flex; justify-content: flex-end; align-items: center; }
.rw-result-body { overflow: auto; }
.result-placeholder { padding: 48px 20px; color: #9397ad; text-align: center; }
.result-placeholder > .icon { display: block; width: 40px; height: 40px; margin: 0 auto 8px; opacity: .65; }
.result-placeholder p { margin: 0; }
#result { padding: 16px; color: #1e293b; font-size: 15.2px; line-height: 1.7; overflow-wrap: anywhere; }
#result-text { white-space: pre-wrap; }
#result-summary:empty { display: none; }
#result-summary { margin: 0 0 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 600; color: #4543a5; }
.paragraph, .source { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.paragraph strong { font-size: 12px; color: var(--tool-brand); }
.paragraph p, .source p { margin: 8px 0 0; }
.processing { height: 100%; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; }
.processing strong { font-size: 17px; color: var(--ink); }
.processing > span:last-child { font-size: 14px; color: var(--muted); }
.processing-orbit { position: relative; display: grid; place-items: center; width: 76px; height: 76px; background: #f2f3ff; border-radius: 50%; color: var(--tool-brand); margin-bottom: 12px; }
.processing-orbit .icon { width: 32px; height: 32px; }
.processing-orbit::after { content: ''; position: absolute; inset: -7px; border: 2px solid #e0e4f7; border-top-color: var(--tool-brand); border-radius: 50%; animation: spin 1.3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rw-acoes-card { margin-top: 24px; }
.process-actions { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 16px; align-items: end; }
.options-wrap { min-width: 0; }
.tool-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.tool-options label { color: var(--ink); font-size: 14px; font-weight: 600; }
.tool-options select { appearance: none; display: block; width: 100%; height: 45px; margin-top: 6px; padding: 10px 38px 10px 16px; border: 1px solid #d4d7e5; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23585c7b' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.6; text-overflow: ellipsis; }
.tool-options select:focus { border-color: #a5b4fc; outline: 3px solid #eef0ff; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 45px; padding: 10px 20px; border: 1px solid transparent; border-radius: 6px; background: #fff; color: #3e4265; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; transition: background-color .15s,border-color .15s,box-shadow .15s; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--tool-brand); border-color: var(--tool-brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #5053db; border-color: #5053db; box-shadow: 0 4px 12px rgba(99,102,241,.22); }
.btn-primary:disabled { cursor: default; }
.rse-tool.is-busy .btn-primary { opacity: .65; }
.btn-outline { border-color: #d4d7e5; }
.btn-outline:hover { background: #f3f6ff; border-color: #b4b7c9; }
.btn-small { min-height: 30px; padding: 3px 12px; font-size: 12px; }
.settings-toggle { display: none; }
.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-hint { margin: 0; align-self: center; color: var(--muted); font-size: 14px; }
.feedback-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-row:has(#status:empty):has(#recover[hidden]):has(#challenge:empty) { display: none; }
#status { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
#status:empty, #challenge:empty { display: none; }
#status.error { color: #b42336; }
#recover { margin-top: 16px; }
#challenge { margin-top: 12px; max-width: 100%; }
#usage-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.preview-label { display: inline-block; padding: 1px 7px; margin-right: 5px; border-radius: 4px; background: #e7e9fc; color: #5456bd; font-weight: 700; }
.editorial { max-width: 880px; padding-top: 64px; padding-bottom: 72px; font-size: 17px; line-height: 1.85; }
.editorial h2 { margin: 48px 0 16px; color: var(--ink); font-size: clamp(23px,2.4vw,30px); letter-spacing: -.025em; line-height: 1.3; }
.editorial h2:first-child { margin-top: 0; }
.editorial h3 { color: var(--ink); line-height: 1.4; }
.editorial p { margin: 0 0 20px; }
.editorial p:last-child { margin-bottom: 0; }
.editorial img { max-width: 100%; height: auto; border-radius: 8px; }
.editorial a { text-decoration: underline; text-underline-offset: 3px; }
.editorial-site-name { color: var(--brand); font-size: 14px; font-weight: 700; }
.editorial ul, .editorial ol { margin: 0 0 24px; padding-left: 24px; }
.editorial li { margin: 8px 0; }
.editorial-faqs { margin-top: 56px; }
.editorial-faqs details { margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 5px 18px rgba(35,39,68,.04); }
.editorial-faqs summary { list-style: none; padding: 19px 22px; color: var(--ink); font-size: 15px; font-weight: 750; cursor: pointer; }
.editorial-faqs summary::-webkit-details-marker { display: none; }
.editorial-faqs summary::after { content: '+'; float: right; color: var(--brand); font-size: 21px; line-height: 1; }
.editorial-faqs details[open] summary::after { content: '−'; }
.editorial-faqs details > div { padding: 0 22px 20px; }
.editorial-faqs details > div > :last-child { margin-bottom: 0; }
.whatsapp-lead { position: fixed; right: 24px; bottom: 24px; z-index: 8; display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 12px 18px; border-radius: 999px; background: #25d366; box-shadow: 0 10px 24px rgba(20, 124, 69, .24); color: #fff; font-size: 14px; font-weight: 800; }
.whatsapp-lead:hover { background: #1fb85a; color: #fff; text-decoration: none; }
.whatsapp-lead .icon { width: 21px; height: 21px; }
.faq-section { padding: 72px 0; background: #f7f8fe; border-top: 1px solid #eef0f8; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: 64px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; }
.faq-layout h2 { margin: 12px 0 16px; color: var(--ink); font-size: clamp(28px,3vw,36px); letter-spacing: -.035em; line-height: 1.2; }
.faq-layout header p { margin: 0; max-width: 330px; color: var(--muted); }
.faq-list details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--brand); }
.faq-answer { padding: 0 24px 20px; font-size: 14px; line-height: 1.8; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin: 0; }
.page-intro { padding: 64px 0; background: var(--surface); text-align: center; }
.page-intro h1 { margin: 0 0 16px; color: var(--ink); font-size: clamp(30px,4vw,42px); letter-spacing: -.03em; line-height: 1.2; }
.page-intro p { max-width: 680px; margin: auto; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: var(--ink); font-size: 17px; font-weight: 800; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.footer-inner nav a { color: var(--text); }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } .editorial { max-width: 880px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } .editorial { max-width: 880px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } .editorial { max-width: 880px; } }
@media (max-width: 1199.98px) { .tool-nav { margin-left: auto; gap: 16px; } .header-inner { gap: 20px; } }
@media (max-width: 991.98px) {
    .header-inner { min-height: 60px; flex-wrap: wrap; gap: 0; padding-top: 12px; padding-bottom: 12px; }
    .brand { font-size: 18px; }
    .tool-nav { width: 100%; overflow-x: auto; margin: 10px 0 0; gap: 22px; padding-bottom: 2px; }
    .tool-nav:has(a:only-child) { width: auto; margin: 0 0 0 auto; }
    .rw-ferramenta-cabecalho { padding: 15px 0 18px; }
    .rw-colunas { display: flex; gap: 0; height: clamp(300px,calc(100svh - 340px),680px); }
    .rw-column { flex: 0 0 100%; }
    .rw-resultado-coluna { display: none; }
    .result-active .rw-entrada-coluna, .is-busy .rw-entrada-coluna { display: none; }
    .result-active .rw-resultado-coluna, .is-busy .rw-resultado-coluna { display: flex; }
    .process-actions { grid-template-columns: 1fr; gap: 16px; }
    .settings-toggle { display: flex; width: 100%; justify-content: space-between; min-height: 50px; }
    .settings-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .tool-options { display: none; margin-top: 16px; }
    .options-wrap.is-open .tool-options { display: grid; }
    .faq-layout { grid-template-columns: 1fr; gap: 32px; }
    .faq-layout header p { max-width: none; }
}
@media (max-width: 575.98px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .brand { font-size: 16px; letter-spacing: -.4px; gap: 8px; }
    .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
    .tool-nav a { font-size: 12px; }
    .tool-nav:has(a:only-child) { padding-left: 8px; }
    .card-header { padding-left: 20px; padding-right: 20px; gap: 8px; }
    .card-header h2 { font-size: 15px; }
    .badge { font-size: 12px; padding: 4px 0; }
    .rw-acoes-card .card-body { padding: 20px 24px; }
    .tool-options { grid-template-columns: 1fr; }
    .rw-corpo textarea { font-size: 16px; }
    .post-actions { flex-wrap: wrap; }
    .post-actions .btn { padding: 10px 12px; }
    #usage-note { font-size: 11px; line-height: 1.7; }
    .editorial { padding-top: 40px; padding-bottom: 44px; font-size: 15px; }
    .editorial h2 { margin-top: 32px; font-size: 24px; }
    .faq-section { padding: 44px 0; }
    .faq-list summary { padding: 18px; font-size: 14px; }
	.faq-answer { padding: 0 18px 18px; }
	.footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.whatsapp-lead { right: 16px; bottom: 16px; min-height: 48px; padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }

:root{--brand:#6366f1;}