/* Oakens · páginas públicas: diagnóstico financeiro e relatório por link */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --navy: #0f231b; --navy-2: #0a1812; --gold: #b8895b; --gold-2: #8a6234; --gold-l: #d1a878; --ink: #16271f; --muted: #5b6878; --line: #e3e6eb; --line-2: #d3d8df; --bg: #f4f5f7; --card: #fff; --pos: #2f8a57; --neg: #c0392b; --warn: #c98a0b; --font: 'Archivo', -apple-system, sans-serif; --ok-soft: #e7f5ec; --warn-soft: #fff4dc; --late-soft: #fdecea; }
html { -webkit-font-smoothing: antialiased; }
body.dg { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
.dg-wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

.dg-hero { position: relative; color: #fff; padding: 34px 0 120px; background: linear-gradient(110deg, rgba(15, 31, 46, .96) 0%, rgba(15, 35, 27, .88) 55%, rgba(15, 35, 27, .55) 100%), var(--bg-img) center / cover no-repeat, var(--navy); overflow: hidden; }
.dg-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold) 0 30%, var(--gold-l) 30% 70%, var(--gold) 70%); }
.dg-hero--slim { padding: 22px 0 90px; }
.dg-logo img, .dg-logo-img { height: 54px; width: auto; margin-bottom: 34px; }
.dg-hero--slim .dg-logo-img { margin-bottom: 0; height: 46px; }
.dg-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 10px; }
.dg-eyebrow--dark { color: var(--gold-2); }
.dg-hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; max-width: 820px; }
.dg-hero h1 em { font-style: normal; color: var(--gold-l); }
.dg-hero p { max-width: 640px; margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 16px; }

.dg-main { margin-top: -80px; position: relative; display: flex; flex-direction: column; gap: 18px; padding-bottom: 50px; }
.dg-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 10px 40px rgba(15, 31, 46, .08); min-width: 0; }
.dg-card h3 { font-size: 17px; margin-bottom: 16px; }
.dg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* Formulário */
.sim-group { border: 0; margin: 0 0 22px; }
.sim-group legend { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; }
.field small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(170, 136, 99, .18); }
.in-pre { display: flex; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.in-pre:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(170, 136, 99, .18); }
.in-pre i { display: inline-flex; align-items: center; padding: 0 12px; font-style: normal; font-size: 13px; color: var(--muted); background: var(--bg); }
.field .in-pre input { border: 0; box-shadow: none; min-width: 0; }
.dg-lgpd { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.dg-err { padding: 12px 16px; border-radius: 12px; background: var(--late-soft); color: #8d1f1f; margin-bottom: 16px; }
.dg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--gold-2); background: var(--gold-2); color: #fff; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s; }
.dg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.dg-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.dg-form .dg-btn { width: 100%; }

/* Resultado */
.dg-score { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: center; }
.dg-score h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; margin-bottom: 8px; }
.dg-big { font-size: clamp(34px, 5.4vw, 56px); font-weight: 700; color: var(--gold-2); letter-spacing: -.02em; line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.dg-big small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.dg-muted { color: var(--muted); }
.dg-ring { position: relative; width: 200px; height: 200px; }
.dg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dg-ring circle { fill: none; stroke-width: 10; }
.dg-ring-bg { stroke: var(--line); }
.dg-ring-fg { stroke: var(--pos); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1); }
.dg-ring.is-in .dg-ring-fg { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.dg-ring--warn { stroke: var(--warn); } .dg-ring--late { stroke: var(--neg); }
.dg-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dg-ring b { font-size: 54px; line-height: 1; font-weight: 700; }
.dg-ring small { color: var(--muted); font-size: 13px; }

.dg-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dg-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.dg-kpi small { font-size: 12.5px; color: var(--muted); }
.dg-kpi b { font-size: 22px; font-variant-numeric: tabular-nums; }
.dg-kpi b.is-neg { color: var(--neg); }
.dg-kpi span { font-size: 12px; color: var(--muted); }

.dg-pillars { display: grid; gap: 12px; }
.dg-pillar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.dg-pillar div, .dg-op-bar { height: 12px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.dg-pillar i, .dg-op-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--pos); transition: width 1.2s cubic-bezier(.22, 1, .36, 1); }
.is-in .dg-pillar i, .is-in .dg-op-bar i { width: var(--w); }
.dg-pillar i.is-warn { background: var(--warn); } .dg-pillar i.is-late { background: var(--neg); }
.dg-pillar b { text-align: right; font-size: 13px; }
.dg-ops { display: grid; gap: 14px; }
.dg-op-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.dg-op-h span { color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.dg-op-bar i { background: linear-gradient(90deg, var(--gold-2), var(--gold-l)); }
.dg-op small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.dg-alerts { list-style: none; display: grid; gap: 8px; }
.dg-alerts li { padding: 12px 16px 12px 38px; border-radius: 12px; position: relative; background: var(--bg); font-size: 14.5px; }
.dg-alerts li::before { content: ''; position: absolute; left: 16px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--pos); }
.dg-alerts .is-alto { background: var(--late-soft); } .dg-alerts .is-alto::before { background: var(--neg); }
.dg-alerts .is-medio { background: var(--warn-soft); } .dg-alerts .is-medio::before { background: var(--warn); }

.dg-cta { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: center; background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.dg-cta img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.dg-cta h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; margin-bottom: 10px; }
.dg-cta p { color: rgba(255, 255, 255, .8); }
.dg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dg-cta .dg-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.dg-note { font-size: 12.5px; color: var(--muted); text-align: center; }

.dg-foot { background: var(--navy-2); color: rgba(255, 255, 255, .7); padding: 22px 0; font-size: 13px; }
.dg-foot .dg-wrap { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.eleve-credit { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .55); font-size: 11px; text-decoration: none; }
.eleve-credit img { height: 16px; width: auto; background: #000; padding: 3px 6px; border-radius: 4px; }

/* Relatório por link reaproveita o oak-fin.css; aqui só as variáveis que ele usa */
.dg--report { --muted-2: #98a2b3; --accent-soft: #f5efe6; }
.dg--report .rp-print { display: inline-flex; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.dg--report .donut { position: relative; width: 170px; margin: 0 auto 10px; }
.dg--report .donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dg--report .donut-leg { list-style: none; display: grid; gap: 4px; font-size: 13px; }
.dg--report .donut-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.dg--report .rich p { margin-bottom: 8px; }

@media (max-width: 900px) {
	.dg-grid { grid-template-columns: 1fr; }
	.dg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dg-cta { grid-template-columns: 1fr; }
	.dg-cta img { max-width: 240px; }
}
@media (max-width: 640px) {
	.dg-score { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.dg-ring { width: 170px; height: 170px; }
	.dg-kpi b { font-size: 18px; }
	.dg-pillar { grid-template-columns: 90px minmax(0, 1fr) 40px; }
	.dg-hero { padding-bottom: 100px; }
	.dg-btn { width: 100%; }
}
@media print {
	.dg-hero { padding: 16px 0 24px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.dg-main { margin-top: 10px; }
	.dg-card, .dg-kpi, .dg-cta { box-shadow: none; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.dg-cta-btns, .rp-print { display: none !important; }
	.dg-pillar i, .dg-op-bar i { width: var(--w) !important; transition: none; }
	.dg-ring-fg { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100) !important; }
}
@media (prefers-reduced-motion: reduce) {
	.dg-ring-fg, .dg-pillar i, .dg-op-bar i { transition: none; }
}

/* Oakens: palavra em destaque no Cormorant Garamond itálico, como no site */
.dg-hero h1 em, .dg-cta h2 em, .hl { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; }
