/* ==========================================================================
   Assinei.org — design system das páginas públicas
   1. Tokens  2. Base  3. Layout  4. Botões e selos  5. Cabeçalho e rodapé
   6. Formulários  7. Cards e listas  8. Home  9. Petição e enquete
   10. Criação  11. Páginas de texto  12. Utilitários
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
    --ink: #0d1526;
    --ink-2: #334155;
    --muted: #5b6b82;
    --faint: #94a3b8;
    --line: #e3e8f0;
    --line-strong: #cbd5e1;
    --bg: #f5f7fb;
    --surface: #ffffff;

    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --brand-deep: #172b6b;
    --brand-soft: #eef4ff;
    --brand-line: #cfdcfb;
    --ring: rgba(37, 99, 235, .28);

    --poll: #0891b2;
    --poll-strong: #0e7490;
    --poll-soft: #ecfbfe;
    --poll-line: #bfeaf3;

    --ok: #15803d;
    --ok-soft: #effaf3;
    --ok-line: #bfe6cd;
    --warn: #b45309;
    --warn-soft: #fff8eb;
    --warn-line: #f6dfae;
    --danger: #c81e1e;
    --danger-soft: #fef3f2;
    --danger-line: #f8cdc9;

    --wa: #1faa59;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(13, 21, 38, .05);
    --shadow-sm: 0 1px 3px rgba(13, 21, 38, .06), 0 1px 2px rgba(13, 21, 38, .04);
    --shadow: 0 10px 30px -12px rgba(13, 21, 38, .16), 0 2px 6px rgba(13, 21, 38, .04);
    --shadow-lg: 0 28px 60px -24px rgba(23, 43, 107, .32), 0 6px 16px rgba(13, 21, 38, .06);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-head: 'Plus Jakarta Sans', var(--font);

    --header-h: 68px;
    --container: 1160px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
}

p { margin: 0; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #cfe0ff; color: var(--ink); }
[hidden] { display: none !important; }

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

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* 3. Layout --------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}
.container--narrow { max-width: 780px; }
.container--mid { max-width: 980px; }

main { display: block; min-height: 60vh; }

.section { padding-block: 72px; }
.section--tight { padding-block: 48px; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.section-head p { margin-top: 6px; color: var(--muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center p { max-width: 560px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--brand-strong);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.eyebrow--poll { color: var(--poll-strong); }
.eyebrow .icon { width: 16px; height: 16px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    white-space: nowrap;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.flash-stack { padding-top: 20px; display: grid; gap: 10px; }

/* 4. Botões e selos -------------------------------------------------------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    --btn-bd: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid var(--btn-bd);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: .975rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary {
    --btn-bg: var(--brand-strong);
    --btn-fg: #fff;
    --btn-bd: var(--brand-strong);
    box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .7);
}
.btn--primary:hover { --btn-bg: #1a43c0; --btn-bd: #1a43c0; }

.btn--poll {
    --btn-bg: var(--poll-strong);
    --btn-fg: #fff;
    --btn-bd: var(--poll-strong);
    box-shadow: 0 8px 18px -8px rgba(14, 116, 144, .7);
}
.btn--poll:hover { --btn-bg: #0b6077; --btn-bd: #0b6077; }

.btn--outline { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--brand); --btn-fg: var(--brand-strong); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: transparent; }
.btn--ghost:hover, .btn--ghost.is-active { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-strong); transform: none; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--brand-deep); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--brand-soft); }

.btn--glass { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .2); }

.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: #18964d; --btn-bd: #18964d; }

.btn--sm { min-height: 38px; padding: 7px 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge--petition { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-strong); }
.badge--poll { background: var(--poll-soft); border-color: var(--poll-line); color: var(--poll-strong); }
.badge--ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.badge--danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.badge--muted { background: #f1f4f9; border-color: var(--line); color: var(--muted); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.5;
}
.alert .icon { margin-top: 1px; }
.alert--success { background: var(--ok-soft); border-color: var(--ok-line); color: #14532d; }
.alert--success .icon { color: var(--ok); }
.alert--error { background: var(--danger-soft); border-color: var(--danger-line); color: #7f1d1d; }
.alert--error .icon { color: var(--danger); }
.alert--warning { background: var(--warn-soft); border-color: var(--warn-line); color: #713f12; }
.alert--warning .icon { color: var(--warn); }
.alert--info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }
.alert--info .icon { color: var(--brand); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 120;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    font-size: .93rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* 5. Cabeçalho e rodapé ---------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(13, 21, 38, .3); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.site-nav__link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease;
}
.site-nav__link:hover { background: #eef1f7; color: var(--ink); text-decoration: none; }
.site-nav__link.is-active { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    place-items: center;
}
.nav-toggle:hover { background: #eef1f7; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.mobile-nav__inner { display: grid; gap: 2px; padding-block: 12px 20px; }
.mobile-nav__link { padding: 13px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.mobile-nav__link:hover, .mobile-nav__link.is-active { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.mobile-nav__actions { display: grid; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

.site-footer { margin-top: 24px; padding-block: 56px 28px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { max-width: 320px; margin-top: 14px; color: var(--muted); font-size: .93rem; }
.site-footer__about .brand img { height: 34px; }
.site-footer__col { display: grid; align-content: start; gap: 10px; }
.site-footer__col h2 { margin-bottom: 4px; font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.site-footer__col a { color: var(--ink-2); font-size: .95rem; }
.site-footer__col a:hover { color: var(--brand-strong); }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .88rem;
}

/* 6. Formulários ----------------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row--3-1 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.field-row .field + .field { margin-top: 0; }

.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__label { color: var(--ink); font-size: .93rem; font-weight: 600; }
.field__optional { color: var(--faint); font-weight: 500; }
.field__hint { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.field__counter { color: var(--faint); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field__counter.is-near { color: var(--warn); }
.field__counter.is-over { color: var(--danger); font-weight: 600; }

.input, .textarea, .select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .textarea:hover, .select:hover { border-color: #b3c0d3; }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.textarea--tall { min-height: 260px; }
.select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.input-search { position: relative; }
.input-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-search .input { padding-left: 46px; padding-right: 120px; min-height: 56px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.input-search .btn { position: absolute; right: 6px; top: 6px; min-height: 44px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Cartões de escolha (radio/checkbox) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
    display: grid;
    gap: 3px;
    height: 100%;
    padding: 14px 16px 14px 46px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.choice__box::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 17px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.choice__title { color: var(--ink); font-weight: 600; font-size: .96rem; }
.choice__text { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.choice:hover .choice__box { border-color: #b3c0d3; }
.choice input:checked + .choice__box { border-color: var(--brand); background: var(--brand-soft); }
.choice input:checked + .choice__box::before { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--brand); }
.choice input:focus-visible + .choice__box { box-shadow: 0 0 0 4px var(--ring); }

/* Chips de atalho (prazo da enquete, ordenação) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .9rem;
    font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-strong); text-decoration: none; }
.chip.is-active, .chip[aria-pressed="true"] { border-color: var(--brand-strong); background: var(--brand-strong); color: #fff; }
.chips--poll .chip:hover { border-color: var(--poll); color: var(--poll-strong); }
.chips--poll .chip.is-active { border-color: var(--poll-strong); background: var(--poll-strong); color: #fff; }

/* Envio de imagem */
.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 168px;
    padding: 22px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: #fafbfe;
    color: var(--muted);
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
    overflow: hidden;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.dropzone__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.dropzone__title { color: var(--ink); font-weight: 600; }
.dropzone__title span { color: var(--brand-strong); }
.dropzone__text { font-size: .85rem; }
.dropzone.has-image { padding: 0; border-style: solid; border-color: var(--line); }
.dropzone.has-image .dropzone__empty { display: none; }
.dropzone__preview { display: none; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.dropzone.has-image .dropzone__preview { display: block; }
.dropzone__remove {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(13, 21, 38, .78);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
}
.dropzone__remove .icon { width: 14px; height: 14px; }
.dropzone.has-image .dropzone__remove { display: inline-flex; }

/* Captcha */
.captcha__row { display: flex; align-items: stretch; gap: 8px; }
.captcha__img { flex: none; width: 150px; height: 50px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.captcha__refresh {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
    transition: color .15s ease, border-color .15s ease;
}
.captcha__refresh:hover { color: var(--brand-strong); border-color: var(--brand); }
.captcha__refresh.is-spinning .icon { animation: spin .5s ease; }
.captcha__input { min-width: 0; min-height: 50px; font-size: 1.1rem; font-weight: 600; letter-spacing: .18em; text-align: center; }
.captcha__input::placeholder { font-weight: 400; letter-spacing: 0; font-size: .95rem; }

.form-note { margin-top: 14px; color: var(--muted); font-size: .84rem; line-height: 1.5; text-align: center; }
.form-note a { font-weight: 600; }
.form-actions { margin-top: 24px; }

/* 7. Cards e listas -------------------------------------------------------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.card__body { padding: 28px; }
.card__title { font-size: 1.15rem; }

.item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.item-card:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow); }
.item-card--poll:hover { border-color: var(--poll-line); }
.item-card__cover { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #e9eef7; }
.item-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item-card:hover .item-card__cover img { transform: scale(1.04); }
.item-card__cover .badge { position: absolute; left: 12px; top: 12px; box-shadow: var(--shadow-sm); }
.item-card__cover .item-card__state { left: auto; right: 12px; }
.item-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.item-card__title { font-size: 1.08rem; line-height: 1.35; letter-spacing: -.01em; }
.item-card__title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card__title a::after { content: ""; position: absolute; inset: 0; }
.item-card__title a:hover { text-decoration: none; }
.item-card__excerpt {
    margin-top: 8px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.item-card__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.item-card__meta .icon { width: 16px; height: 16px; color: var(--faint); }
.item-card__cta { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-strong); font-size: .9rem; font-weight: 700; }
.item-card--poll .item-card__cta { color: var(--poll-strong); }
.item-card__cta .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.item-card:hover .item-card__cta .icon { transform: translateX(3px); }

.cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .92); background: linear-gradient(135deg, #1f8fc9 0%, #2563eb 48%, #26317f 100%); }
.cover-fallback .icon { width: 44px; height: 44px; opacity: .9; }
.cover-fallback--t2 { background: linear-gradient(135deg, #2563eb 0%, #3730a3 100%); }
.cover-fallback--t3 { background: linear-gradient(135deg, #26317f 0%, #1f8fc9 100%); }
.cover-fallback--poll { background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #155e75 100%); }
.cover-fallback--poll.cover-fallback--t2 { background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%); }
.cover-fallback--poll.cover-fallback--t3 { background: linear-gradient(135deg, #155e75 0%, #22b8cf 100%); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: .93rem;
    font-weight: 600;
}
.pagination__item:hover { border-color: var(--brand); color: var(--brand-strong); text-decoration: none; }
.pagination__item.is-current { border-color: var(--brand-strong); background: var(--brand-strong); color: #fff; }
.pagination__item .icon { width: 16px; height: 16px; }
.pagination__gap { color: var(--faint); padding: 0 4px; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-strong); }
.empty__icon .icon { width: 26px; height: 26px; }
.empty h3 { font-size: 1.2rem; }
.empty p { max-width: 440px; color: var(--muted); }
.empty .btn { margin-top: 12px; }
.empty--page { padding-block: 72px; border: 0; background: transparent; }
.empty--page h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.empty__code { font-family: var(--font-head); font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, #1f8fc9, #26317f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.empty__actions .btn { margin-top: 0; }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.share__btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--ink-2); }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn--wa { flex: 1 1 100%; min-height: 50px; border-color: var(--wa); background: var(--wa); color: #fff; font-size: 1rem; }
.share__btn--wa:hover { border-color: #18964d; background: #18964d; }
.share__btn--tg .icon { color: #229ed9; }
.share__btn--fb .icon { color: #1877f2; }
.share__btn--tg, .share__btn--fb, .share__btn--x, .share__btn--copy, .share__btn--native { flex: 1 1 auto; }

/* Cabeçalho de páginas internas */
.page-head { padding-block: 48px 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f1f5fd 100%); }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); }
.page-head__lead { max-width: 640px; margin-top: 10px; color: var(--muted); font-size: 1.06rem; }
.page-head--center { text-align: center; }
.page-head--center .page-head__lead { margin-inline: auto; }
.page-head__search { max-width: 640px; margin-top: 26px; }
.page-head--center .page-head__search { margin-inline: auto; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.toolbar__count { color: var(--muted); font-size: .93rem; }
.toolbar__count strong { color: var(--ink); }

/* 8. Home ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: 64px 80px;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(31, 143, 201, .20), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(38, 49, 127, .14), transparent 60%),
        linear-gradient(180deg, #fff 0%, #f1f5fd 100%);
    border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; }
.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .8);
    color: var(--brand-deep);
    font-size: .86rem;
    font-weight: 600;
}
.hero__pill b { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--brand-strong); color: #fff; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.9vw, 3.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #1f8fc9 0%, #2563eb 45%, #26317f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 540px; margin-top: 20px; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--ok); }

.hero__visual { position: relative; }
.hero-card { position: relative; z-index: 2; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); transition: transform .3s ease; }
.hero-card:hover { transform: rotate(0); text-decoration: none; }
.hero-card__cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #e9eef7; }
.hero-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-card__body { display: block; padding: 20px 22px 22px; }
.hero-card__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hero-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-family: var(--font-head); font-size: 1.18rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.hero-card__numbers { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .88rem; }
.hero-card__numbers strong { color: var(--ink); font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -.02em; }
.hero-card .progress { margin-top: 8px; }
.hero-card__cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; min-height: 46px; border-radius: var(--radius-pill); background: var(--brand-strong); color: #fff; font-weight: 600; }
.hero__float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.3;
}
.hero__float small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.hero__float--a { left: -26px; bottom: 96px; }
.hero__float--b { right: -14px; top: 26px; }
.hero__float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.hero__float-icon--wa { background: #e7f8ee; color: var(--wa); }
.hero__float-icon .icon { width: 18px; height: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: -36px; position: relative; z-index: 5; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); box-shadow: var(--shadow); }
.stat { padding: 22px 24px; background: var(--surface); text-align: center; }
.stat__value { color: var(--ink); font-family: var(--font-head); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat__label { margin-top: 4px; color: var(--muted); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
}
.step h3 { font-size: 1.12rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

.dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dual__card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.dual__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); }
.dual__card--poll .dual__icon { background: var(--poll-soft); color: var(--poll-strong); }
.dual__icon .icon { width: 24px; height: 24px; }
.dual__card h3 { font-size: 1.3rem; }
.dual__card > p { margin-top: 8px; color: var(--muted); }
.dual__list { display: grid; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; font-size: .96rem; }
.dual__list li { display: flex; gap: 10px; }
.dual__list .icon { margin-top: 3px; width: 18px; height: 18px; color: var(--ok); }
.dual__card .btn { margin-top: auto; align-self: flex-start; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease; }
.faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow-xs); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__answer { padding: 0 20px 20px; color: var(--ink-2); }
.faq__answer p + p { margin-top: 10px; }

.cta-band { position: relative; overflow: hidden; padding: 56px 40px; border-radius: 28px; background: linear-gradient(120deg, #1f8fc9 0%, #2563eb 42%, #26317f 100%); color: #fff; text-align: center; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.cta-band::before { left: -140px; top: -180px; }
.cta-band::after { right: -120px; bottom: -220px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
.cta-band p { max-width: 520px; margin: 12px auto 0; color: rgba(255, 255, 255, .88); font-size: 1.06rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* 9. Petição e enquete ------------------------------------------------------ */
.detail { padding-block: 32px 72px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; align-items: start; gap: 36px; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb .icon { width: 14px; height: 14px; color: var(--faint); }

.article { overflow: hidden; }
.article__cover { aspect-ratio: 1200 / 630; overflow: hidden; background: #e9eef7; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding: 32px 36px 36px; }
.article__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article h1 { font-size: clamp(1.65rem, 1.2rem + 2vw, 2.4rem); line-height: 1.16; letter-spacing: -.028em; overflow-wrap: anywhere; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: .92rem; }
.article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article__meta .icon { width: 17px; height: 17px; color: var(--faint); }
.article__meta strong { color: var(--ink-2); font-weight: 600; }

.recipient { display: flex; gap: 14px; margin-top: 26px; padding: 16px 18px; border: 1px solid var(--brand-line); border-radius: var(--radius); background: var(--brand-soft); }
.recipient__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand-strong); }
.recipient__label { color: var(--brand-strong); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.recipient__name { color: var(--brand-deep); font-weight: 600; overflow-wrap: anywhere; }

.prose { color: var(--ink-2); font-size: 1.07rem; line-height: 1.78; overflow-wrap: anywhere; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.3rem; }
.prose h3 { margin: 1.5em 0 .4em; font-size: 1.08rem; }
.prose ul { margin: .8em 0; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article .prose { margin-top: 28px; }

.article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.article__foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.article__foot a:hover { color: var(--danger); text-decoration: none; }
.article__foot .icon { width: 16px; height: 16px; }

.panel { padding: 26px; }
.panel__title { font-size: 1.12rem; }
.panel__sub { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.panel--share .share { margin-top: 16px; }

.sign-card { overflow: hidden; border-color: var(--brand-line); box-shadow: var(--shadow); }
.sign-card__top { padding: 24px 26px 20px; background: linear-gradient(180deg, var(--brand-soft), #fff); border-bottom: 1px solid var(--line); }
.sign-card__count { display: flex; align-items: baseline; gap: 10px; }
.sign-card__count strong { color: var(--ink); font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.sign-card__count span { color: var(--muted); font-weight: 500; }
.sign-card__goal { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: .86rem; }
.sign-card__goal strong { color: var(--ink-2); }
.sign-card__form { padding: 22px 26px 26px; }
.sign-card__form h2 { font-size: 1.16rem; }
.sign-card__form .field:first-of-type, .sign-card__form .field-row:first-of-type { margin-top: 16px; }
.sign-card__form .field + .field, .sign-card__form .field-row + .field, .sign-card__form .field + .field-row { margin-top: 14px; }

.progress { height: 10px; overflow: hidden; border-radius: var(--radius-pill); background: #e6ebf4; }
.progress__bar { height: 100%; min-width: 10px; border-radius: inherit; background: linear-gradient(90deg, #1f8fc9, #2563eb 60%, #26317f); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

.thanks { padding: 26px; border: 1px solid var(--ok-line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--ok-soft), #fff 70%); box-shadow: var(--shadow); margin-bottom: 24px; }
.thanks__head { display: flex; align-items: flex-start; gap: 14px; }
.thanks__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ok); color: #fff; }
.thanks h2 { font-size: 1.3rem; }
.thanks p { margin-top: 4px; color: var(--ink-2); }
.thanks .share { margin-top: 18px; }
.thanks--created { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.thanks--created .thanks__icon { background: var(--brand-strong); }

.signers { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.signer { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.signer:first-child { border-top: 0; padding-top: 4px; }
.signer__avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.signer__name { color: var(--ink); font-size: .93rem; font-weight: 600; }
.signer__meta { color: var(--muted); font-size: .82rem; }
.signer__comment { margin-top: 6px; padding: 8px 12px; border-radius: 4px 12px 12px 12px; background: #f1f4f9; color: var(--ink-2); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }

.more-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--brand-strong); font-size: .9rem; font-weight: 600; }
.more-toggle:hover { text-decoration: underline; }
.more-toggle .icon { width: 16px; height: 16px; }

.sticky-cta { display: none; }

/* Enquete */
.poll-card { border-color: var(--poll-line); box-shadow: var(--shadow); overflow: hidden; }
.poll-card__top { padding: 22px 26px 18px; background: linear-gradient(180deg, var(--poll-soft), #fff); border-bottom: 1px solid var(--line); }
.poll-card__top h2 { font-size: 1.2rem; }
.poll-card__top p { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.poll-card__top strong { color: var(--poll-strong); }
.poll-card__body { padding: 20px 26px 26px; }
.poll-rule { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: .86rem; }
.poll-rule .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--poll); }

.poll-options { display: grid; gap: 10px; }
.poll-option { position: relative; display: block; cursor: pointer; }
.poll-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.poll-option__box { position: relative; display: block; overflow: hidden; padding: 13px 14px 13px 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.poll-option__box::before { content: ""; position: absolute; left: 14px; top: 15px; z-index: 2; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.poll-option--multi .poll-option__box::before { border-radius: 6px; }
.poll-option__fill { position: absolute; inset: 0 auto 0 0; z-index: 0; background: #edf6fb; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.poll-option__row { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.poll-option__text { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.poll-option__pct { flex: none; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.poll-option__votes { position: relative; z-index: 1; display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.poll-option:hover .poll-option__box { border-color: var(--poll); }
.poll-option input:checked + .poll-option__box { border-color: var(--poll-strong); box-shadow: 0 0 0 1px var(--poll-strong); }
.poll-option input:checked + .poll-option__box::before { border-color: var(--poll-strong); background: var(--poll-strong); box-shadow: inset 0 0 0 3px #fff; }
.poll-option input:focus-visible + .poll-option__box { box-shadow: 0 0 0 4px rgba(8, 145, 178, .28); }
.poll-option.is-static { cursor: default; }
.poll-option.is-static .poll-option__box { padding-left: 14px; }
.poll-option.is-static .poll-option__box::before { display: none; }
.poll-option.is-static:hover .poll-option__box { border-color: var(--line-strong); }
.poll-option.is-winner .poll-option__fill { background: #cdeef6; }
.poll-option.is-winner .poll-option__box { border-color: var(--poll); }
.poll-card .captcha { margin-top: 18px; }
.poll-card .form-actions { margin-top: 18px; }

/* 10. Criação --------------------------------------------------------------- */
.create { padding-block: 40px 80px; }
.create__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 36px; }
.create__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }

.form-section { padding: 30px 32px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.form-section__num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); font-family: var(--font-head); font-weight: 800; }
.create--poll .form-section__num { background: var(--poll-soft); color: var(--poll-strong); }
.form-section__head h2 { font-size: 1.18rem; }
.form-section__head p { margin-top: 3px; color: var(--muted); font-size: .92rem; }
.form-section--submit { background: #fafbfe; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.option-list { display: grid; gap: 10px; }
.option-row { display: flex; align-items: center; gap: 8px; }
.option-row__num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--poll-soft); color: var(--poll-strong); font-size: .82rem; font-weight: 700; }
.option-row .input { min-width: 0; }
.option-row__remove { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--faint); transition: background-color .15s ease, color .15s ease; }
.option-row__remove:hover { background: var(--danger-soft); color: var(--danger); }
.option-row__remove[disabled] { visibility: hidden; }
.option-add { margin-top: 12px; }

.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__track { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; border-radius: var(--radius-pill); background: #c9d3e2; transition: background-color .18s ease; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(13, 21, 38, .3); transition: transform .18s ease; }
.switch input:checked + .switch__track { background: var(--poll-strong); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--ring); }
.switch__title { display: block; color: var(--ink); font-weight: 600; }
.switch__text { display: block; color: var(--muted); font-size: .88rem; }

.preview { overflow: hidden; }
.preview__label { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fafbfe; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.preview__label .icon { width: 16px; height: 16px; }
.preview__cover { aspect-ratio: 1200 / 630; overflow: hidden; background: #e9eef7; }
.preview__cover img { width: 100%; height: 100%; object-fit: cover; }
.preview__body { padding: 18px 20px 20px; }
.preview__title { color: var(--ink); font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; }
.preview__title.is-placeholder, .preview__text.is-placeholder { color: var(--faint); }
.preview__to { margin-top: 8px; color: var(--brand-strong); font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.preview__text { margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.preview__options { display: grid; gap: 8px; margin-top: 14px; }
.preview__option { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-2); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.preview__option.is-placeholder { border-style: dashed; color: var(--faint); font-weight: 500; }

.tips { padding: 22px 24px; }
.tips h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.tips h2 .icon { color: var(--warn); }
.tips ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.tips li { display: flex; gap: 10px; }
.tips li .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--ok); }

/* 11. Páginas de texto e contato -------------------------------------------- */
.doc { padding-block: 40px 80px; }
.doc .card__body { padding: 40px 44px; }
.doc__updated { margin-bottom: 8px; color: var(--muted); font-size: .9rem; }

.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #eef1f7; }
.tab { min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: .93rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.tab .icon { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* 12. Utilitários e responsivo ---------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1040px) {
    .site-nav, .site-header__actions { display: none; }
    .nav-toggle { display: grid; }
    .hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
    .hero__float--a { left: -8px; }
    .hero__float--b { right: -8px; }
    .detail__grid, .create__grid { grid-template-columns: 1fr; }
    .detail__aside, .create__aside { position: static; }
    .detail__aside { order: -1; }
    .create__aside .preview { display: none; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    :root { --header-h: 60px; }
    .brand img { height: 32px; }
    .section { padding-block: 52px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .section-head--center { align-items: center; }
    .grid--3, .grid--2, .steps, .dual { grid-template-columns: 1fr; }
    .grid { gap: 18px; }
    .hero { padding-block: 40px 68px; }
    .hero__cta .btn { flex: 1 1 100%; }
    .hero__float { display: none; }
    .hero-card { transform: none; }
    .stats { grid-template-columns: 1fr; margin-top: -32px; }
    .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px; text-align: left; }
    .stat__label { margin-top: 0; }
    .dual__card { padding: 24px; }
    .cta-band { padding: 44px 22px; border-radius: 22px; }
    .cta-band__actions .btn { flex: 1 1 100%; }
    .page-head { padding-block: 32px 28px; }
    .input-search .input { padding-right: 16px; }
    .input-search .btn { position: static; width: 100%; margin-top: 10px; }
    .detail { padding-block: 20px 110px; }
    .article__body { padding: 22px 20px 26px; }
    .panel { padding: 20px; }
    .sign-card__top { padding: 20px 20px 16px; }
    .sign-card__form { padding: 18px 20px 22px; }
    .poll-card__top { padding: 18px 20px 14px; }
    .poll-card__body { padding: 16px 20px 22px; }
    .thanks { padding: 20px; }
    .create { padding-block: 24px 64px; }
    .form-section { padding: 24px 20px; }
    .choice-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .field-row .field + .field { margin-top: 20px; }
    .field-row--keep { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
    .field-row--keep .field + .field { margin-top: 0; }
    .sign-card__form .field-row .field + .field { margin-top: 14px; }
    .sign-card__form .field-row--keep .field + .field { margin-top: 0; }
    .doc .card__body { padding: 26px 22px; }
    .site-footer { padding-block: 40px 96px; }
    .site-footer__grid { gap: 28px; }
    .site-footer__bottom { flex-direction: column; }
    .pagination__item--nav span { display: none; }
    .captcha__img { width: 132px; }
    .toast { bottom: 88px; }

    .sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 24px -16px rgba(13, 21, 38, .35);
        transition: transform .25s ease;
    }
    .sticky-cta.is-hidden { transform: translateY(110%); }
    .sticky-cta__info { flex: 1; min-width: 0; color: var(--muted); font-size: .8rem; line-height: 1.25; }
    .sticky-cta__info strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
    .sticky-cta .btn { flex: none; }
}

@media (max-width: 400px) {
    .container { padding-inline: 16px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .captcha__row { flex-wrap: wrap; }
    .captcha__input { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .sticky-cta, .detail__aside, .share, .toast { display: none !important; }
    body { background: #fff; }
}

/* Grade da página de petição/enquete: no celular a ordem é texto, ação, extras. */
.detail__grid--areas { grid-template-areas: "article sign" "extra sign"; }
.detail__article { grid-area: article; min-width: 0; }
.detail__sign { grid-area: sign; min-width: 0; align-self: start; }
.detail__extra { grid-area: extra; display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1041px) and (min-height: 880px) {
    .detail__sign { position: sticky; top: calc(var(--header-h) + 20px); }
}
@media (max-width: 1040px) {
    .detail__grid--areas { grid-template-areas: "article" "sign" "extra"; gap: 20px; }
}
.hero__float--a { left: -34px; top: 34%; bottom: auto; }
@media (max-width: 1040px) { .hero__float--a { left: -8px; } }
.sign-card__form h2 { margin-bottom: 16px; }
.badge--warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.hero-card { display: block; }
.input { min-width: 0; }
.option-row__remove[disabled] { display: none; }
@media (max-width: 720px) {
    .field-row--keep.field-row--time { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
