:root { --bg: #fbfbfd; --card-bg: #f6f6f8; --muted: #6b6b6b; --accent: #ef6b63; /* coral */ --primary: #372b84; /* roxo escuro */ --white: #fff; --shadow-1: 0 8px 18px rgba(32,30,55,0.06); --shadow-2: 0 6px 14px rgba(32,30,55,0.05); --pill-bg: #fff; font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; --bg: #fafafb; --card-bg: #f7f7f9; --accent: #ef6b63; /* coral */ --purple: #372b84; --muted: #6b6b6b; --white: #ffffff; --shadow: 0 18px 40px rgba(39,34,88,0.06); font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; --radius-card: 28px; }

* { box-sizing: border-box }
html, body { height: 100% }
body { margin: 0; background: linear-gradient(180deg,var(--bg),#ffffff 60%); color: #222; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.45; }
.site-header { padding: 5px 32px; background: transparent; }
.header-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { align-items: center; gap: 12px }
.logo-mark { width: 64px; height: 64px; border-radius: 8px; background: linear-gradient(135deg,#6c63ff,#ff7a18); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: var(--shadow-1); font-size: 18px; }
.brand-text h1 { margin: 0; font-weight: 800; font-size: 28px; color: var(--primary) }
.brand-text h1 span { color: var(--accent); font-weight: 700; margin-left: 6px }
.back-btn { float: right; background: var(--accent); color: white; padding: 10px 16px; border-radius: 10px; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; box-shadow: var(--shadow-1); }
.texto-logo { display: block; width: 100%; }
.container { max-width: 1160px; margin: 10px auto 60px; padding: 0 20px }
.hero { display: flex; gap: 24px; align-items: center; margin: 12px 0 28px }
.hero-left { flex: 0 0 420px }
.hero-illustration { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow-1) }
.hero-right { flex: 1; padding-right: 10px }
.hero-right h2 { font-size: 18px; color: #222; margin: 8px 0 10px; font-weight: 600 }
.hero-right .lead { color: #333; max-width: 600px; margin: 0; font-size: 15px }
.form-area { display: flex; gap: 18px; align-items: flex-start; position: relative }
.side-pill { width: 76px; background: var(--pill-bg); border-radius: 36px; padding: 18px 8px; display: flex; flex-direction: column; gap: 18px; align-items: center; box-shadow: var(--shadow-2); margin-top: 0; flex-shrink: 0; }
.side-pill button { padding: 40px 0; }
.pill-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; transition: all .18s ease; cursor: pointer; box-shadow: none; }
.pill-btn img { opacity: 0.9; width: 40px; }
.pill-btn.active { background: linear-gradient(180deg, #fff, #fff); box-shadow: 0 6px 20px rgba(17,17,50,0.08), inset 0 2px 0 rgba(255,255,255,0.6); border-radius: 50%; width: 70px; height: 70px; }
.card { flex: 1; background: var(--card-bg); border-radius: 34px; padding: 28px 40px 40px; box-shadow: 0 18px 40px rgba(39,34,88,0.06); margin-top: 0; }
.card-header { display: flex; align-items: center; gap: 18px; margin-bottom: 12px }
.circle-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(180deg,#fff,#fff); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 18px rgba(32,30,55,0.06); }
.card-header h3 { margin: 0; color: var(--accent); font-size: 28px; font-weight: 800 }
.data-form { margin-top: 10px }
.row { display: flex; gap: 24px; margin-bottom: 20px }
.row.single { gap: 0 }
.field { display: flex; flex-direction: column; flex: 1 }
.field.full { flex: 1 }
.label { display: block; color: var(--primary); font-weight: 700; margin-bottom: 10px; font-size: 14px }
input[type="text"] { height: 48px; padding: 12px 16px; border-radius: 10px; border: 1px; border-color: #FFF; background: #fff; box-shadow: 0 6px 14px rgba(33,30,60,0.05); font-size: 14px; color: #444; outline: none; }
.input-with-icon { display: flex; align-items: center; gap: 8px }
.input-with-icon .icon-btn { background: transparent; border: 0; padding: 8px; border-radius: 8px; margin-left: auto; cursor: pointer; }
.field.full input { height: 52px }
.form-actions { margin-top: 18px }
.primary { background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 10px; border: 0; font-weight: 600; cursor: pointer; box-shadow: 0 8px 18px rgba(55,43,132,0.18); }
.section-heading { margin: 0 0 12px; color: var(--purple); font-weight: 700; font-size: 18px; padding: 25px 0; }
.toggle-group { display: flex; gap: 12px; margin-bottom: 12px }
.toggle-btn { background: transparent; border: 1px solid rgba(55,43,132,0.12); padding: 20px 30px; border-radius: 8px; cursor: pointer; color: var(--purple); font-weight: 600; font-size: 14px; }
.toggle-btn.active { background: var(--purple); color: #fff; border-color: transparent; box-shadow: 0 10px 18px rgba(55,43,132,0.12); }
.muted-note { margin: 6px 0 0; color: #222; font-size: 14px; max-width: 780px; line-height: 1.45; font-weight: 700; padding: 15px; }
.section-main { display: flex; gap: 28px; margin-top: 6px; align-items: flex-start; }
.left-col { flex: 1; min-width: 300px }
.period-text { font-size: 18px; color: #333; margin: 6px 0 18px; display: flex; align-items: center; gap: 10px }
.highlight { color: var(--accent); font-weight: 800 }
.info-btn { background: var(--purple); color: #fff; border: 0; width: 24px; height: 24px; border-radius: 50%; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.q-title { color: var(--purple); font-weight: 700; margin: 0 0 12px }
.percent-options { display: flex; gap: 28px; align-items: center; margin-bottom: 22px }
.radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 15px; color: #444 }
.radio input { display: none }
.radio-custom { width: 14px; height: 14px; border-radius: 50%; border: 6px solid #e6e6e6; /* ring look */ box-shadow: 10px 10px 0 rgba(200,200,200,0.08); display: inline-block; position: relative; }
.radio input:checked + .radio-custom { border-color: var(--purple); background: var(--purple); box-shadow: 0 6px 18px rgba(55,43,132,0.12); }
.radio-label { min-width: 40px; display: inline-block }

.actions { display: flex; gap: 14px; margin-top: 8px }
.btn-back { background: #bdbdbd; color: #fff; border: 0; padding: 12px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-next { background: var(--purple); color: #fff; border: 0; padding: 12px 18px; border-radius: 8px; cursor: pointer; font-weight: 600; box-shadow: 0 12px 28px rgba(55,43,132,0.16); }

.right-col { width: 380px; display: flex; flex-direction: column; gap: 14px }
.right-col .line-one { width: 380px; display: flex; gap: 14px; justify-content: space-between; }
.right-col .line-one div { width: 100%; }
.summary { background: var(--purple); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; min-height: 58px; box-shadow: 0 10px 20px rgba(55,43,132,0.06); }
.summary.small { background: #372b84; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px }
.summary.large { background: var(--purple); border-radius: 12px; padding: 5px 20px; text-align: center; min-height: 60px; }
.summary-title { font-size: 13px; color: #fff }
.summary-sub { font-size: 12px; color: #ddd; font-weight: 500 }
.summary-value { font-weight: 700; color: #ff7a18; font-size: 16px }
.summary-label { font-size: 14px; color: #fff; margin-bottom: 6px; font-weight: 600 }
.summary-total { font-size: 22px; color: #ff7a18; font-weight: 800; }
.percent-options { padding: 10px 0; }
.percent-options .radio-label { font-size: 20px; }

.slider-wrap { display: flex; align-items: center; gap: 18px; }

.percent { color: var(--accent); font-weight: 800; font-size: 16px; min-width: 44px; text-align: left; }
.slider-container { flex: 1; display: flex; align-items: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--purple) 5%, var(--track-bg) 5%); outline: none; padding: 0; margin: 0; }
#basica, #percentual, #esporadica { min-height: 245px; }

.grid { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 18px; }
.left { flex: 1; display: flex; gap: 16px; align-items: flex-start }
.right { width: 420px; display: flex; align-items: center; justify-content: flex-end }

.donut-wrap { position: relative; width: 180px; height: 180px }
.donut-canvas { display: block; border-radius: 50% }
.donut-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); pointer-events: none; display: flex; align-items: center; justify-content: center; }
#donutCenterLabel { display: none !important; }

.legend { display: flex; flex-direction: column; gap: 12px; flex: 1 }
.legend-item { display: flex; gap: 12px; align-items: center }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0 }
.dot-participant { background: var(--purple) }
.dot-sponsor { background: var(--accent) }
.legend-text { display: flex; flex-direction: column }
.legend-title { font-size: 13px; color: #333; font-weight: 700; }
.legend .participant .legend-title { color: var(--primary); }
.legend .sponsor .legend-title { color: var(--accent); }
.legend-value { font-size: 18px; color: var(--purple); font-weight: 800; margin-top: 4px }
.legend .participant .legend-value { font-size: 16pt; }
.legend .sponsor .legend-value { color: var(--accent); font-size: 16pt; }

.total-box { background: var(--purple); color: #fff; border-radius: 16px; padding: 26px 28px; min-width: 320px; text-align: left; box-shadow: 0 12px 30px rgba(55,43,132,0.08); }
.total-label { font-size: 16px; opacity: 0.95 }
.total-amount { font-size: 26px; font-weight: 800; margin-top: 6px; color: #fff }

.scenario { margin-top: 8px }
.scenario-title { color: var(--accent); font-weight: 700; margin: 0 0 12px }
.scenario-controls { margin-bottom: 16px }
.scenario-pill { border-radius: 8px; padding: 10px 14px; border: 2px solid var(--purple); background: transparent; color: var(--purple); font-weight: 600; cursor: pointer; }

.metrics { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap }
.metric { background: #e9e9eb; border-radius: 10px; padding: 16px; width: calc(33.333% - 12px); min-width: 200px; }
.metric-label { font-size: 13px; color: var(--purple); font-weight: 700; margin-bottom: 10px }
.metric-value { font-size: 20px; color: var(--accent); font-weight: 800 }

.card-actions { display: flex; gap: 14px; margin-top: 22px }
.btn { border: 0; padding: 12px 18px; border-radius: 8px; cursor: pointer; font-weight: 700 }
.btn-secondary { background: #bdbdbd; color: #fff }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 28px rgba(55,43,132,0.14) }

.explain { color: #333; margin: 8px 0 18px; max-width: 880px; line-height: 1.5 }

.summary-row { margin: 18px 0 }
.summary-box { background: var(--purple); color: #fff; padding: 18px 20px; border-radius: 12px; display: inline-block; min-width: 240px; box-shadow: 0 10px 20px rgba(55,43,132,0.06); }
.summary-small { font-size: 13px; opacity: 0.95 }
.summary-amount { font-size: 20px; color: var(--accent); font-weight: 800; margin-top: 6px }

.actions-row { display: flex; gap: 14px; margin-top: 18px }
.btn { padding: 12px 18px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 700 }
.btn-secondary { background: #bdbdbd; color: #fff }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(239,107,99,0.12) }

/* styles.css */
.card { left: 0; top: 0; width: 100%; opacity: 0; pointer-events: none; transform: translateX(100px); transition: opacity 0.3s, transform 0.3s; z-index: 0; }
.card.card-visible { opacity: 1; pointer-events: auto; transform: translateX(0); z-index: 1; }
.card.card-slide-out-left { opacity: 0; transform: translateX(-600px); transition: opacity 0.3s, transform 0.3s; z-index: 0; }
.form-area { position: relative; min-height: 600px; }

.side-pill .pill-btn.disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

@media (max-width: 700px) {
    .back-btn { float: none; }
    .header-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 8px; }
    .brand { width: 100%; margin: 0 auto 8px auto; display: flex; flex-direction: column; align-items: center; }
    .brand img { max-width: 160px; height: auto; }
    .texto-logo { font-size: 1rem; padding: 0 6px; text-align: center; }
    .toggle-group { display: contents; }
    .grid { display: contents; }
    .left { display: contents; }
    .right { width: 100%; }
}

@media (max-width: 700px) {
    .form-area { flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; }
    .side-pill { flex-direction: row; width: 100%; justify-content: center; margin: 0 0 12px 0; padding: 8px 0; border-radius: 18px; }
    .side-pill .pill-btn { margin: 0 4px; width: 40px; height: 40px; padding: 0; }
    .card { width: 100%; min-width: 0; margin: 0 auto 12px auto; box-sizing: border-box; padding: 16px 6px 24px 6px; }
    .card-header, .card-body, .card-actions { padding: 8px; }
    .row, .row.single { flex-direction: column; gap: 8px; }
    .field.full, .field { width: 100%; }
    .section-main { flex-direction: column; gap: 12px; }
    .left-col, .right-col { width: 100%; margin: 0; }
    .right-col .line-one { flex-direction: column; gap: 8px; width: 100%; }
    .summary.small, .summary.large { width: 100%; min-width: 0; }
    .total-box { min-width: 0; width: 100%; padding: 16px 8px; }
    .metrics { flex-direction: column; gap: 10px; }
    .metric { width: 100%; min-width: 0; }
}
