:root {
    --azul-baia: #22B7D6;
    --azul-confianca: #0E8EAF;
    --verde-ilha: #98F38B;
    --verde-tropical: #6EDC83;
    --dourado: #F2B347;
    --terracota: #8C5A2B;
    --areia: #F4E4C8;
    --branco: #FFFFFF;
    --preto: #000000;
    --grafite: #2F2F2F;
    --cinza: #E9EEF1;
    --sombra: 0 20px 60px rgba(15, 88, 110, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #f9fcfd 0%, #eff9fb 45%, #fff7ea 100%);
    color: var(--grafite);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 310px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    background: linear-gradient(180deg, var(--azul-confianca), #116276);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

.brand-card strong {
    display: block;
    font-size: 1.05rem;
}

.brand-card span {
    display: block;
    font-size: .78rem;
    opacity: .9;
    margin-top: 3px;
    line-height: 1.35;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav a {
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    transition: .2s ease;
    font-weight: 650;
    font-size: .92rem;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(2px);
}

.notice {
    margin-top: auto;
    border-radius: 18px;
    padding: 18px;
    background: rgba(152, 243, 139, 0.17);
    border: 1px solid rgba(152, 243, 139, 0.35);
    line-height: 1.45;
    font-size: .92rem;
}

.notice span {
    display: block;
    font-weight: 800;
    color: var(--verde-ilha);
    margin-bottom: 8px;
}

.content {
    padding: 28px;
    max-width: 1480px;
    width: 100%;
}

.hero {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
    border-radius: 32px;
    padding: 34px;
    background:
        radial-gradient(circle at 80% 10%, rgba(152, 243, 139, .55), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(242, 179, 71, .35), transparent 25%),
        linear-gradient(135deg, var(--azul-baia), var(--azul-confianca));
    color: white;
    box-shadow: var(--sombra);
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin: 0 0 18px;
    max-width: 900px;
}

.hero p {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: .96;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem !important;
    font-weight: 800;
    margin: 0 0 14px;
    opacity: .86;
}

.hero-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .32);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(14px);
}

.hero-logo {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
    margin-bottom: 18px;
}

.hero-card strong {
    font-size: 1.15rem;
}

.hero-card span {
    opacity: .92;
    margin-top: 6px;
}

.panel,
.dashboard,
.client-report {
    margin-top: 26px;
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--sombra);
    border: 1px solid rgba(14, 142, 175, .10);
}

.section-title {
    margin-bottom: 22px;
}

.section-title p {
    margin: 0 0 8px;
    color: var(--azul-confianca);
    font-weight: 850;
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .12em;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    letter-spacing: -0.04em;
}

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

.span-2 {
    grid-column: 1 / -1;
}

.card {
    border-radius: var(--radius);
    background: white;
    padding: 22px;
    border: 1px solid rgba(14, 142, 175, .12);
    box-shadow: 0 12px 35px rgba(15, 88, 110, .08);
}

.card h3 {
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    font-size: 1.16rem;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 14px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 7px;
    font-weight: 760;
    font-size: .88rem;
    color: #36515a;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d8e8ec;
    border-radius: 14px;
    padding: 12px 13px;
    background: #fbfeff;
    color: var(--grafite);
    font: inherit;
    outline: none;
    transition: border .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--azul-baia);
    box-shadow: 0 0 0 4px rgba(34, 183, 214, .15);
}

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

.checks-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f6fbfc;
    border: 1px solid #e0eff2;
    color: #34505a;
}

.checks-grid input {
    width: auto;
    accent-color: var(--azul-confianca);
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 850;
    letter-spacing: -0.01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--azul-baia);
    color: white;
    box-shadow: 0 12px 26px rgba(34, 183, 214, .28);
}

.btn.primary:hover {
    background: var(--azul-confianca);
}

.btn.secondary {
    background: var(--verde-tropical);
    color: #103a27;
}

.btn.ghost {
    background: #eef7fa;
    color: var(--azul-confianca);
}

.alert {
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    font-weight: 700;
}

.alert.warning {
    background: #fff5db;
    border: 1px solid rgba(242, 179, 71, .6);
    color: #704a00;
}

.alert.danger {
    background: #fff0f0;
    border: 1px solid rgba(194, 45, 45, .3);
    color: #8a2020;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi {
    min-height: 155px;
    padding: 20px;
    border-radius: 24px;
    background: white;
    border: 1px solid rgba(14, 142, 175, .1);
    box-shadow: 0 12px 30px rgba(15, 88, 110, .07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi.highlight {
    grid-column: span 2;
    background:
        radial-gradient(circle at 90% 15%, rgba(152, 243, 139, .42), transparent 38%),
        linear-gradient(135deg, #ffffff, #e9fafd);
}

.kpi span,
.client-card span,
.investment-card span {
    color: #5b767f;
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kpi strong,
.client-card strong,
.investment-card strong {
    display: block;
    font-size: clamp(1.65rem, 2.3vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 10px 0;
    color: #173b46;
}

.kpi em,
.client-card em,
.investment-card em {
    color: #668087;
    font-style: normal;
    line-height: 1.35;
    font-size: .9rem;
}

.split {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 18px;
}

.table-wrap {
    width: 100%;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8f0f2;
    text-align: left;
}

th {
    color: var(--azul-confianca);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.internal-note {
    color: #7a5555;
    font-weight: 700;
    background: #fff4f4;
    border: 1px solid #f3dada;
    padding: 12px;
    border-radius: 14px;
}

.metric-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.metric-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-radius: 14px;
    padding: 12px;
    background: #f7fbfc;
}

.metric-list span {
    color: #60777f;
}

.metric-list strong {
    color: #173b46;
}

.client-report {
    background: white;
    border: 2px solid rgba(34, 183, 214, .18);
    position: relative;
    overflow: hidden;
}

.client-report::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(34, 183, 214, .18), transparent 70%);
    pointer-events: none;
}

.client-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.client-header img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
}

.client-header p {
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    color: var(--azul-confianca);
    font-weight: 850;
}

.client-header h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    letter-spacing: -0.045em;
}

.client-header span {
    color: #667b82;
}

.client-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 20% 20%, rgba(152, 243, 139, .3), transparent 34%),
        linear-gradient(135deg, #f1fbfd, #fff6e5);
    padding: 28px;
}

.client-hero h2 {
    margin: 0 0 10px;
    color: #123d4b;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.06em;
}

.client-hero p:not(.eyebrow) {
    margin: 0;
    max-width: 720px;
    line-height: 1.65;
}

.investment-card {
    border-radius: 22px;
    background: linear-gradient(135deg, var(--azul-confianca), var(--azul-baia));
    color: white;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 18px 34px rgba(14, 142, 175, .22);
}

.investment-card span,
.investment-card strong,
.investment-card em {
    color: white;
}

.investment-card em {
    opacity: .9;
}

.client-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.client-card {
    border-radius: 20px;
    padding: 19px;
    background: #f9fdfe;
    border: 1px solid rgba(14, 142, 175, .12);
}

.client-card strong {
    font-size: 2rem;
}

.client-sections {
    margin-top: 18px;
}

.card.soft {
    background: #fbfeff;
}

.benefits {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.benefits li {
    padding: 12px 12px 12px 40px;
    border-radius: 14px;
    background: white;
    border: 1px solid #e6f0f2;
    position: relative;
}

.benefits li::before {
    content: "✓";
    position: absolute;
    left: 13px;
    top: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--verde-ilha);
    color: #153f22;
    font-weight: 900;
}

.responsibility {
    position: relative;
    margin-top: 18px;
    border-radius: 22px;
    padding: 20px;
    background: #fff8ea;
    border: 1px solid rgba(242, 179, 71, .45);
}

.responsibility h3 {
    margin: 0 0 10px;
    color: #704a00;
}

.responsibility p {
    margin: 0;
    line-height: 1.65;
    color: #5f4d2d;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 4px 8px;
    color: #698088;
    font-size: .92rem;
}

.footer a {
    font-weight: 850;
    color: var(--azul-confianca);
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hero,
    .client-hero,
    .split {
        grid-template-columns: 1fr;
    }

    .kpi-grid,
    .client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .content,
    .sidebar {
        padding: 16px;
    }

    .hero,
    .panel,
    .dashboard,
    .client-report {
        padding: 20px;
        border-radius: 22px;
    }

    .form-grid,
    .grid-2,
    .grid-3,
    .checks-grid,
    .kpi-grid,
    .client-grid,
    .nav {
        grid-template-columns: 1fr;
    }

    .kpi.highlight {
        grid-column: auto;
    }
}

@media print {
    body {
        background: white;
    }

    .no-print,
    .sidebar,
    .panel,
    .dashboard .alert,
    #interno,
    .hero,
    .footer {
        display: none !important;
    }

    .app-shell {
        display: block;
    }

    .content {
        padding: 0;
    }

    .client-report {
        margin: 0;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 16mm;
    }

    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-hero,
    .split {
        grid-template-columns: 1fr;
    }
}
