/* =================================================
   GASMASKE LAB — PUBLIC PORTAL
   Sistema unificado: contrato, aprovações, briefing, proposta
   Conceito: "protocolo de laboratório" — precisão, dados reais em mono,
   hierarquia por peso/regra, não por caixas empilhadas.
   ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ---- TOKENS ---- */
:root {
    --red:          #E8331C;
    --red-dim:      rgba(232, 51, 28, 0.08);
    --red-mid:      rgba(232, 51, 28, 0.22);
    --ink:          #0E0E0E;
    --ink-soft:     #1B1B1B;
    --white:        #FFFFFF;
    --paper:        #F7F6F2;
    --surface:      #FFFFFF;
    --line:         rgba(14,14,14,0.11);
    --line-strong:  rgba(14,14,14,0.2);
    --text:         #14130F;
    --text-soft:    #4A4842;
    --text-mute:    #8B887F;
    --green:        #17875A;
    --green-dim:    rgba(23,135,90,0.09);
    --green-mid:    rgba(23,135,90,0.24);
    --blue:         #1A5FD1;
    --blue-dim:     rgba(26,95,209,0.07);
    --blue-mid:     rgba(26,95,209,0.2);
    --amber:        #B5670B;
    --amber-dim:    rgba(181,103,11,0.08);
    --amber-mid:    rgba(181,103,11,0.22);
    --radius-sm:    3px;
    --radius-md:    5px;
    --radius-lg:    8px;
    --ease:         0.22s cubic-bezier(.4,0,.2,1);
    --shadow-card:  0 1px 2px rgba(14,14,14,0.04), 0 8px 24px -12px rgba(14,14,14,0.14);
    --shadow-lift:  0 12px 32px -8px rgba(14,14,14,0.28);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ---- TIPOGRAFIA ---- */
h1, h2, h3, h4, .heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
}

h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
h3 { font-size: clamp(1.02rem, 2.4vw, 1.22rem); }

p { color: var(--text-soft); line-height: 1.7; }
strong { color: var(--text); font-weight: 600; }

.mono {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.01em;
}

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* ---- LAYOUT PÚBLICO ---- */
.public-body {
    background: var(--paper);
    padding: 0 0 40px;
}

/* Header */
.public-header {
    background: var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 760px;
    margin: 0 auto;
    gap: 12px;
}

.public-brand {
    display: flex;
    align-items: center;
}

.public-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left;
}

.brand-logo-text {
    display: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    letter-spacing: 0.01em;
}
.brand-logo-text span { color: var(--red); }

.public-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--red);
    background: rgba(232,51,28,0.12);
    border: 1px solid rgba(232,51,28,0.25);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.public-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3px 9px;
    border-radius: 100px;
}

.public-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(232,51,28,0.18);
}

/* Hero interno por página */
.page-hero {
    background: var(--ink);
    padding: 30px 20px 34px;
    position: relative;
}

.page-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--red);
    margin-bottom: 10px;
}

.page-hero .eyebrow::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--red);
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 5.5vw, 2.15rem);
    margin-bottom: 8px;
    max-width: 30ch;
}

.page-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    max-width: 46ch;
}

.page-hero .contract-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: 'DM Mono', monospace;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.75);
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.14);
}

/* Container */
.public-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

/* ---- CARDS (uso pontual, não empilhado por padrão) ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card + .card { margin-top: 14px; }

.card-body { padding: 22px 20px; }

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header .card-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--red-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.card-header h3 { font-size: 0.98rem; font-weight: 700; margin: 0; }
.card-header p { font-size: 0.8rem; color: var(--text-mute); margin: 2px 0 0; }

/* ---- SEÇÃO EDITORIAL (substitui card empilhado nos formulários) ---- */
.dossier-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.dossier-section:first-child { padding-top: 0; }
.dossier-section:last-of-type { border-bottom: none; }

.dossier-section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.dossier-index {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--red);
    flex-shrink: 0;
}

.dossier-section-head h3 { margin: 0; }
.dossier-section-sub {
    font-size: 0.82rem;
    color: var(--text-mute);
    margin-top: 2px;
}

/* ---- STEP INDICATOR ---- */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0 26px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--line-strong);
    max-width: 60px;
}

.step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-mute);
    flex-shrink: 0;
    transition: var(--ease);
}

.step-dot.active { background: var(--red); border-color: var(--red); color: var(--white); }
.step-dot.done { background: var(--green); border-color: var(--green); color: var(--white); }

.step-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mute);
}
.step-label.on { color: var(--text); }

/* ---- FORMULÁRIOS ---- */
label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-control {
    width: 100%;
    padding: 11px 13px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-dim);
}

.form-control::placeholder { color: var(--text-mute); }

textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.5; }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B887F' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint { font-size: 0.78rem; color: var(--text-mute); margin-top: 5px; }
.form-hint.error { color: var(--red); }
.form-hint.success { color: var(--green); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-grid .col-full { grid-column: span 2; }

/* Checkbox customizado */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--line-strong);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
    margin-bottom: 8px;
    background: var(--white);
}
.check-item:hover { border-color: var(--red); background: var(--red-dim); }
.check-item input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--red);
    margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
.check-item input[type="checkbox"]:checked + .check-label strong { color: var(--red); }
.check-label strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.check-label span { font-size: 0.8rem; color: var(--text-mute); display: block; margin-top: 2px; }

/* Pills de opção */
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill-grid input[type="radio"], .pill-grid input[type="checkbox"] { display: none; }
.pill-grid label {
    display: inline-flex; align-items: center; padding: 7px 14px;
    background: var(--white); border: 1.5px solid var(--line-strong);
    border-radius: 100px; font-size: 0.82rem; font-weight: 500;
    color: var(--text-soft); cursor: pointer; transition: all var(--ease);
    margin-bottom: 0;
}
.pill-grid label:hover { border-color: var(--red); color: var(--red); }
.pill-grid input:checked + label { background: var(--red); border-color: var(--red); color: var(--white); }

/* Serviços (briefing) — lista limpa, sem quadradinho de ícone genérico */
.servico-row { margin-bottom: 8px; }
.servico-checkbox { display: none; }

.servico-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    width: 100%;
    text-align: left;
}
.servico-card::after {
    content: '';
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    flex-shrink: 0;
    transition: var(--ease);
}
.servico-checkbox:checked + .servico-card {
    border-color: var(--red);
    background: var(--red-dim);
    color: var(--red);
}
.servico-checkbox:checked + .servico-card::after {
    border-color: var(--red);
    background: var(--red);
    box-shadow: inset 0 0 0 3px var(--white);
}

.perguntas-bloco {
    display: none;
    padding: 16px 16px 4px;
    margin-top: 8px;
    border-left: 2px solid var(--red-mid);
}

/* ---- BOTÕES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ease);
    white-space: nowrap;
    -webkit-appearance: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: #C42A16; border-color: #C42A16; }

.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: #262626; border-color: #262626; }

.btn-secondary { background: var(--white); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text-soft); background: var(--paper); }

.btn-ghost { background: transparent; color: var(--text-soft); border-color: transparent; padding: 10px 14px; }
.btn-ghost:hover { background: var(--paper); color: var(--text); }

.btn-danger-ghost { background: transparent; color: var(--red); border-color: var(--red-mid); }
.btn-danger-ghost:hover { background: var(--red-dim); }

.btn-full { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 0.96rem; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

.btn-text {
    background: none; border: none; padding: 4px 0;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem;
    color: var(--text-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.btn-text:hover { color: var(--text); }

/* ---- ALERTAS ---- */
.alert {
    padding: 13px 15px;
    border-radius: var(--radius-md);
    font-size: 0.87rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert i { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-dim); border-color: var(--green-mid); color: #0D5E3F; }
.alert-warning { background: var(--amber-dim); border-color: var(--amber-mid); color: #8A4F08; }
.alert-danger  { background: var(--red-dim); border-color: var(--red-mid); color: var(--red); }
.alert-info    { background: var(--blue-dim); border-color: var(--blue-mid); color: #12409B; }

/* ---- BADGES (uso mínimo, só quando é status real) ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
}
.badge-red    { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-mid); }
.badge-green  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-mid); }
.badge-blue   { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue-mid); }
.badge-yellow { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-mid); }
.badge-gray   { background: rgba(0,0,0,0.04); color: var(--text-soft); border: 1px solid var(--line); }
.badge-dark   { background: var(--ink); color: var(--white); border: 1px solid transparent; }

/* ================================================
   APROVAÇÕES — cartões com swipe
   ================================================ */
.approval-count {
    font-size: 0.86rem;
    color: var(--text-mute);
    margin-bottom: 18px;
}
.approval-count strong { color: var(--text); }

.swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-mute);
    margin-bottom: 16px;
    text-align: center;
}
@media (pointer: coarse) {
    .swipe-hint { display: flex; }
}
.swipe-hint i { font-size: 0.95rem; }

.swipe-wrap {
    position: relative;
    margin-bottom: 16px;
    touch-action: pan-y;
}

.swipe-bg {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    pointer-events: none;
}
.swipe-bg-action {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.1s linear;
}
.swipe-bg-action i { font-size: 1.3rem; }
.swipe-bg-action.left {
    justify-content: flex-start;
    padding-left: 22px;
    background: var(--red);
    color: var(--white);
}
.swipe-bg-action.right {
    justify-content: flex-end;
    padding-right: 22px;
    background: var(--green);
    color: var(--white);
    margin-left: auto;
}

.approval-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    will-change: transform;
    user-select: none;
}
.approval-card.dragging { transition: none; cursor: grabbing; }
.approval-card.snap { transition: transform 0.28s cubic-bezier(.2,.8,.2,1); }
.approval-card.fly-right { transition: transform 0.32s ease-in, opacity 0.32s ease-in; transform: translateX(140%) rotate(10deg) !important; opacity: 0; }

.approval-card-header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.approval-meta { display: flex; flex-direction: column; gap: 6px; }

.approval-card-body { padding: 18px; }

.approval-card-footer {
    padding: 14px 18px 16px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.deadline-tag {
    text-align: right;
    flex-shrink: 0;
}
.deadline-tag .lbl {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-mute);
    display: block;
    margin-bottom: 2px;
}
.deadline-tag .val {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: var(--text);
}

.content-preview {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 2px solid var(--red-mid);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 16px;
    font-size: 0.87rem;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
    max-height: 240px;
    overflow-y: auto;
}

.content-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-mute);
    margin-bottom: 8px;
}

.art-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--blue-dim);
    border: 1.5px solid var(--blue-mid);
    border-radius: var(--radius-md);
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--ease);
    margin-bottom: 14px;
}
.art-link:hover { background: rgba(26,95,209,0.13); border-color: var(--blue); }

.feedback-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 2px solid var(--red);
    padding: 16px 18px;
}
.feedback-box label { color: var(--red); font-size: 0.78rem; margin-bottom: 8px; }

/* ---- CONTRATO ---- */
.contract-viewer {
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    height: 420px;
    overflow-y: auto;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.85;
    color: #2B2A26;
    white-space: pre-wrap;
    -webkit-overflow-scrolling: touch;
}
.contract-viewer::-webkit-scrollbar { width: 6px; }
.contract-viewer::-webkit-scrollbar-track { background: var(--paper); border-radius: 4px; }
.contract-viewer::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.contract-viewer::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

.sign-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    background: var(--red-dim);
    border: 1px solid var(--red-mid);
    border-radius: var(--radius-md);
}
.sign-consent input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0;
}
.sign-consent p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; margin: 0; }

.doc-status {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 8px;
    display: none;
}
.doc-status.visible { display: block; }
.doc-status.info    { background: var(--blue-dim); color: var(--blue); }
.doc-status.success { background: var(--green-dim); color: var(--green); }
.doc-status.error   { background: var(--red-dim); color: var(--red); }

.address-box {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 16px;
    display: none;
}
.address-box.visible { display: block; }
.address-box.loading { opacity: 0.5; pointer-events: none; }

/* ---- PIX ---- */
.pix-card { text-align: center; padding: 28px 20px; }
.pix-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
    margin: 6px 0 22px;
}
.pix-amount span { font-size: 1rem; color: var(--text-mute); font-weight: 400; }

.pix-qr {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
    display: inline-block;
    margin-bottom: 18px;
}
.pix-qr img { display: block; width: 176px; height: 176px; }

.pix-copy {
    background: var(--paper);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-soft);
    word-break: break-all;
    cursor: pointer;
    transition: all var(--ease);
    text-align: left;
}
.pix-copy:hover { border-color: var(--green); background: var(--green-dim); }
.pix-copy.copied { border-color: var(--green); background: var(--green-dim); }

/* ---- ESTADO VAZIO ---- */
.empty-state { text-align: center; padding: 46px 20px; }
.empty-icon {
    width: 56px; height: 56px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--text-mute);
}
.empty-state h3 { font-size: 1.05rem; margin-bottom: 8px; }
.empty-state p { font-size: 0.88rem; color: var(--text-mute); max-width: 280px; margin: 0 auto; }

/* ---- SUCESSO ---- */
.success-card { text-align: center; padding: 38px 22px; }
.success-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--green-dim);
    border: 2px solid var(--green-mid);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 1.7rem; color: var(--green);
}
.success-card h2 { font-size: 1.35rem; margin-bottom: 10px; }
.success-card p { font-size: 0.9rem; color: var(--text-mute); max-width: 340px; margin: 0 auto 22px; }

/* ---- REDES SOCIAIS BRIEFING ---- */
.rede-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* ================================================
   PROPOSTA — dossiê comercial
   ================================================ */
.doc-hero {
    background: var(--ink);
    color: var(--white);
    padding: 0;
}
.doc-topbar {
    max-width: 780px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.doc-topbar-meta {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    text-align: right;
}
.doc-topbar-meta strong { color: rgba(255,255,255,0.85); font-weight: 500; }

.doc-hero-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 44px 20px 32px;
}
.doc-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 0.76rem;
    color: var(--red);
    margin-bottom: 14px;
}
.doc-hero-label::before { content: ''; width: 14px; height: 1px; background: var(--red); }
.doc-hero-title {
    color: var(--white);
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    max-width: 22ch;
    margin-bottom: 14px;
}
.doc-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.98rem;
    max-width: 56ch;
    line-height: 1.7;
}
.doc-hero-sub strong { color: rgba(255,255,255,0.9); }

.doc-hero-stats {
    max-width: 780px;
    margin: 0 auto;
    padding: 26px 20px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.doc-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.doc-stat-label {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.4;
}

.doc-body { max-width: 780px; margin: 0 auto; padding: 0 20px; }

.doc-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.doc-section:last-of-type { border-bottom: none; }

.doc-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
}
.doc-section-num {
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    color: var(--red);
}
.doc-section-title { margin: 0; }

.dynamic-content { font-size: 0.96rem; line-height: 1.8; color: var(--text-soft); }
.dynamic-content p { margin-bottom: 1em; }
.dynamic-content strong { color: var(--text); }
.dynamic-content ul, .dynamic-content ol { padding-left: 1.3em; margin-bottom: 1em; }

/* Timeline (sequência real de fases — numeração legítima) */
.tl-phase { padding: 18px 0; border-top: 1px solid var(--line); }
.tl-phase:first-child { border-top: none; padding-top: 0; }
.tl-phase-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.tl-phase-num {
    font-family: 'DM Mono', monospace;
    font-size: 0.74rem;
    color: var(--text-mute);
    flex-shrink: 0;
}
.tl-phase-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
}
.tl-items p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; }

.tl-close {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    background: var(--green-dim);
    border: 1px solid var(--green-mid);
    border-left: 3px solid var(--green);
    border-radius: var(--radius-md);
}
.tl-close-mark {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--green);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.tl-close h4 { font-family: 'Space Grotesk', sans-serif; font-size: 0.92rem; }
.tl-close p { font-size: 0.86rem; color: var(--text-soft); }

/* Investimento */
.price-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .price-block { grid-template-columns: 1fr 1.2fr; }
}
.price-label { font-size: 0.82rem; color: var(--text-mute); margin-bottom: 6px; }
.price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.price-value span { font-size: 1.1rem; color: var(--text-mute); font-weight: 500; margin-right: 4px; }
.price-sub { font-size: 0.85rem; margin-top: 10px; }

.payment-split {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-soft);
}
.payment-row.highlight { background: var(--paper); font-weight: 600; color: var(--text); }
.payment-row-val { font-family: 'DM Mono', monospace; font-size: 0.88rem; }

.price-note {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-top: 14px;
}
.price-note strong { display: block; margin-bottom: 4px; font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; }
.price-note-secondary { font-size: 0.78rem; color: var(--text-mute); margin-top: 10px; }

/* Footer proposta */
.doc-footer { max-width: 780px; margin: 0 auto; padding: 40px 20px 100px; }
.doc-footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.doc-footer-left p { font-size: 0.86rem; margin-top: 14px; }
.doc-footer-brand-logo { height: 22px; width: auto; object-fit: contain; object-position: left; }
.doc-footer-contact { text-align: right; font-size: 0.86rem; color: var(--text-soft); line-height: 1.8; }
.doc-footer-contact .accept {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--red); font-weight: 700; text-decoration: none;
    font-family: 'Space Grotesk', sans-serif; margin-top: 4px;
}
.doc-validity-badge {
    display: inline-block;
    margin-top: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-mute);
}

.doc-footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.doc-footer-social-label { color: var(--text-mute); font-family: 'DM Mono', monospace; font-size: 0.72rem; }
.doc-footer-social a { color: var(--text-soft); text-decoration: none; }
.doc-footer-social a:hover { color: var(--red); }

@media (max-width: 640px) {
    .doc-footer-top { flex-direction: column; }
    .doc-footer-contact { text-align: left; }
}

/* Sticky CTA (proposta) */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--ink);
    color: var(--white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.sticky-info { min-width: 0; }
.sticky-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.sticky-val span { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 4px; }
.sticky-sub { font-size: 0.74rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.btn-sticky {
    flex-shrink: 0;
    background: var(--red);
    color: var(--white);
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--ease);
    white-space: nowrap;
}
.btn-sticky:hover { background: #C42A16; }

/* Modal aceite */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(14,14,14,0.6);
    display: flex; align-items: flex-end;
    justify-content: center;
    z-index: 100;
    opacity: 0; pointer-events: none;
    transition: opacity var(--ease);
}
@media (min-width: 640px) {
    .modal-overlay { align-items: center; }
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--white);
    width: 100%;
    max-width: 440px;
    padding: 26px 24px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    transform: translateY(16px);
    transition: transform var(--ease);
}
@media (min-width: 640px) {
    .modal-box { border-radius: var(--radius-lg); transform: translateY(0) scale(0.97); }
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 1.4rem;
    color: var(--text-mute); cursor: pointer; line-height: 1;
}
.modal-box h3 { margin-bottom: 10px; }
.modal-box p { font-size: 0.88rem; margin-bottom: 18px; }
.check-container {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.82rem; color: var(--text-soft);
    margin-bottom: 18px; cursor: pointer; line-height: 1.5;
}
.check-container input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 1px; flex-shrink: 0; }
.btn-confirm {
    width: 100%;
    background: var(--red); color: var(--white); border: none;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem;
    padding: 14px; border-radius: var(--radius-md); cursor: pointer;
    transition: background var(--ease);
}
.btn-confirm:hover { background: #C42A16; }
.btn-confirm:disabled { opacity: 0.6; pointer-events: none; }

/* ---- FOOTER DO SITE (public_footer.php) ---- */
.site-footer {
    background: var(--ink);
    border-top: 2px solid var(--red);
    margin-top: 48px;
    padding: 44px 20px 26px;
    color: #9C9992;
}
.site-footer-inner { max-width: 780px; margin: 0 auto; }
.site-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer-brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer-logo { height: 24px; width: auto; object-fit: contain; object-position: left; filter: brightness(1.1); }
.site-footer-fallback { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--white); }
.site-footer-fallback span { color: var(--red); }
.site-footer-tagline { font-size: 0.82rem; line-height: 1.55; color: #85817A; margin: 0; }
.site-footer-corp {
    display: flex; flex-direction: column; gap: 3px;
    font-size: 0.74rem; color: #6B6862;
    font-family: 'DM Mono', monospace; margin-top: 4px;
}
.site-footer-corp strong { color: #B5B2AB; }
.site-footer-col { display: flex; flex-direction: column; gap: 13px; }
.site-footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem; font-weight: 700; color: var(--white); margin: 0;
}
.site-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer-links li a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: #B5B2AB; text-decoration: none;
    transition: color var(--ease);
}
.site-footer-links li a i { font-size: 1rem; color: var(--red); }
.site-footer-links li a:hover { color: #FFFFFF; }
.site-footer-badges { display: flex; flex-direction: column; gap: 8px; }
.footer-badge-pill {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: border-color var(--ease), background var(--ease);
}
.footer-badge-pill:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(232,51,28,0.3);
}
.badge-icon-coral {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(232,51,28,0.12);
    border: 1px solid rgba(232,51,28,0.25);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.badge-pill-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.badge-pill-text strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1.2;
}
.badge-pill-text small {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    color: #85817A;
    line-height: 1.2;
}
.site-footer-bottom {
    padding-top: 22px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; font-size: 0.76rem; color: #6B6862;
}
.site-footer-bottom p { color: #6B6862; margin: 0; }
.site-footer-meta {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.72rem; color: #85817A; font-family: 'DM Mono', monospace;
}
.meta-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); display: inline-block;
    box-shadow: 0 0 8px rgba(23,135,90,0.6);
}
@media (max-width: 768px) {
    .site-footer-top { grid-template-columns: 1fr; gap: 26px; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---- UTILIDADES ---- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-mute); }
.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

[class*="ph-"] { display: inline-flex; align-items: center; }