:root {
    --ink: #14221f;
    --muted: #63716d;
    --line: #dce5e1;
    --soft: #f4f7f5;
    --paper: #ffffff;
    --brand: #0a8e78;
    --brand-dark: #087160;
    --brand-soft: #e7f5f1;
    --navy: #102d2a;
    --error: #b42318;
    --shadow: 0 24px 60px rgba(23, 50, 45, .10);
    color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #f8faf9;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.poc-header {
    height: 80px;
    padding: 0 clamp(22px, 5vw, 78px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e7ece9;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 184px; height: auto; display: block; }
.public-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #47605a;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.public-badge span { width: 8px; height: 8px; border-radius: 50%; background: #20b486; box-shadow: 0 0 0 5px #dcf5eb; }

main { overflow: hidden; }
.poc-hero {
    max-width: 1340px;
    margin: 0 auto;
    padding: 88px clamp(24px, 5vw, 70px) 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: clamp(50px, 8vw, 120px);
    align-items: center;
    position: relative;
}
.poc-hero::before, .poc-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.poc-hero::before { width: 480px; height: 480px; left: -320px; top: -180px; border: 90px solid #eaf4f1; }
.poc-hero::after { width: 260px; height: 260px; right: -150px; bottom: 20px; border: 54px solid #eef6f3; }
.eyebrow { margin: 0 0 16px; color: var(--brand-dark); font-size: .75rem; line-height: 1.2; letter-spacing: .14em; font-weight: 850; }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(2.65rem, 5vw, 5rem); line-height: .99; letter-spacing: -.055em; font-weight: 760; }
.hero-copy h1 span { color: var(--brand); }
.hero-lead { max-width: 670px; margin: 28px 0 0; color: #53645f; font-size: clamp(1.06rem, 1.6vw, 1.3rem); line-height: 1.7; }
.hero-points { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-points div { padding: 18px 0; border-top: 2px solid #dce7e3; }
.hero-points strong, .hero-points span { display: block; }
.hero-points strong { margin-bottom: 5px; font-size: .92rem; }
.hero-points span { color: var(--muted); font-size: .8rem; line-height: 1.5; }

.trust-card {
    padding: clamp(28px, 4vw, 44px);
    color: white;
    background: var(--navy);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.trust-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -75px; top: -70px; border: 28px solid rgba(77, 203, 174, .12); border-radius: 50%; }
.trust-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 28px; border-radius: 50%; color: #062d27; background: #63ddbd; font-weight: 900; }
.trust-kicker { margin: 0 0 10px; color: #74ddc4; font-size: .75rem; letter-spacing: .11em; font-weight: 800; text-transform: uppercase; }
.trust-card h2 { margin: 0; font-size: clamp(1.55rem, 2.2vw, 2.05rem); line-height: 1.2; letter-spacing: -.025em; }
.trust-card > p:not(.trust-kicker) { color: #b9cbc6; font-size: .91rem; }
.trust-card ul { padding: 20px 0 0; margin: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.trust-card li { display: flex; gap: 10px; align-items: center; margin: 9px 0; color: #dce8e5; font-size: .87rem; }
.trust-card li::before { content: "✓"; color: #63ddbd; font-weight: 900; }

.application-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 850px);
    gap: clamp(34px, 6vw, 74px);
    justify-content: center;
    align-items: start;
    padding: 88px clamp(20px, 5vw, 72px) 120px;
    background: #eef3f1;
    border-top: 1px solid #e1e9e6;
}
.progress-panel { position: sticky; top: 28px; padding: 16px 0; }
.progress-panel h2 { margin: 0 0 12px; font-size: 2rem; line-height: 1.14; letter-spacing: -.035em; }
.progress-panel > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .92rem; }
.step-list { margin: 34px 0; padding: 0; list-style: none; position: relative; }
.step-list::before { content: ""; position: absolute; top: 23px; bottom: 23px; left: 20px; width: 1px; background: #cad7d2; }
.step-list li { min-height: 62px; display: flex; align-items: center; gap: 15px; color: #73817d; position: relative; }
.step-list li > span { width: 41px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #64736f; background: #eef3f1; border: 1px solid #bdcbc6; font-size: .78rem; font-weight: 800; z-index: 1; transition: .25s ease; }
.step-list strong, .step-list small { display: block; }
.step-list strong { font-size: .9rem; }
.step-list small { font-size: .73rem; color: #899691; }
.step-list li.active { color: var(--ink); }
.step-list li.active > span { color: white; background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px rgba(10, 142, 120, .11); }
.step-list li.done > span { color: white; background: #75a89e; border-color: #75a89e; }
.privacy-note { padding: 16px; display: flex; align-items: flex-start; gap: 12px; color: #4b625c; background: rgba(255,255,255,.65); border: 1px solid #d8e2de; border-radius: 5px; }
.privacy-note > span { color: var(--brand); font-size: 1.2rem; }
.privacy-note p { margin: 0; font-size: .75rem; line-height: 1.5; }
.privacy-note strong { display: block; color: #25463f; }

.form-card { min-width: 0; background: var(--paper); border: 1px solid #dce5e1; border-radius: 8px; box-shadow: 0 20px 50px rgba(29, 56, 51, .08); }
.form-card form { padding: clamp(26px, 5vw, 58px); }
.mobile-progress { display: none; }
.form-step { animation: step-in .26s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.step-heading { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.step-heading > span { color: #a6b4af; font-size: .72rem; font-weight: 850; letter-spacing: .06em; }
.step-heading p { margin: 0; color: var(--muted); font-size: .86rem; }
.step-heading div > p:first-child { margin-bottom: 7px; color: var(--brand-dark); font-size: .69rem; letter-spacing: .13em; font-weight: 850; }
.step-heading h2 { margin: 0 0 8px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.16; letter-spacing: -.035em; }

.field-grid { display: grid; gap: 21px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.field { display: flex; flex-direction: column; gap: 7px; color: #344c46; font-size: .79rem; font-weight: 720; }
.field > span em { color: #89948f; font-style: normal; font-weight: 500; }
input, select, textarea {
    width: 100%;
    color: #172722;
    background: #fff;
    border: 1px solid #cdd8d4;
    border-radius: 4px;
    outline: none;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
input, select { min-height: 48px; padding: 10px 13px; }
textarea { min-height: 110px; padding: 12px 13px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa7a2; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 142, 120, .11); }
[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.field-error, .group-error { min-height: 0; color: var(--error); font-size: .71rem; font-weight: 650; }
.field-error:not(:empty), .group-error:not(:empty) { display: block; margin-top: -2px; }
.honeypot { position: fixed; left: -10000px; opacity: 0; pointer-events: none; }

.subsection { margin: 38px 0 22px; padding-top: 30px; border-top: 1px solid var(--line); }
.subsection-kicker { margin: 0 0 5px; color: var(--brand-dark); font-size: .68rem; letter-spacing: .13em; font-weight: 850; }
.subsection h3 { margin: 0 0 4px; font-size: 1.15rem; }
.subsection p:not(.subsection-kicker) { margin: 0; color: var(--muted); font-size: .8rem; }

.choice-group { padding: 0; margin: 0 0 27px; border: 0; }
.choice-group legend { padding: 0; color: #344c46; font-size: .8rem; font-weight: 750; }
.legend-help { margin: 3px 0 10px; color: var(--muted); font-size: .73rem; }
.choice-grid { display: grid; gap: 10px; margin-top: 10px; }
.choice-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid label { display: block; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-grid label > span { min-height: 52px; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 11px 13px; color: #47605a; background: #fbfcfb; border: 1px solid #d6dfdc; border-radius: 4px; transition: .16s; }
.choice-grid label:hover > span { border-color: #9abbb3; }
.choice-grid input:focus-visible + span { outline: 3px solid rgba(10, 142, 120, .22); outline-offset: 2px; }
.choice-grid input:checked + span { color: #075e50; background: var(--brand-soft); border-color: #54ad9c; box-shadow: inset 3px 0 var(--brand); }
.choice-grid strong { font-size: .8rem; }
.choice-grid small { margin-top: 3px; color: #74827e; font-size: .69rem; font-weight: 500; line-height: 1.35; }
.objectives label > span { min-height: 73px; padding-left: 17px; }
.yes-no-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 20px; margin: 28px 0; background: var(--soft); border-radius: 5px; }
.yes-no-grid label { display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-items: center; color: #3d534e; font-size: .75rem; font-weight: 700; }
.yes-no-grid select { min-height: 41px; font-size: .75rem; }
.qualification-grid { margin-top: 30px; }

.application-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.summary-block { padding: 18px; background: #f8faf9; border: 1px solid #e0e7e4; border-radius: 5px; }
.summary-block h3 { margin: 0 0 10px; color: var(--brand-dark); font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; }
.summary-block dl { margin: 0; display: grid; gap: 7px; }
.summary-block dl div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.summary-block dt { color: #7a8883; font-size: .7rem; }
.summary-block dd { margin: 0; color: #2d423d; font-size: .74rem; font-weight: 650; overflow-wrap: anywhere; }
.consent-box { padding: clamp(20px, 4vw, 30px); background: #f0f7f4; border: 1px solid #cfdfda; border-radius: 6px; }
.consent-heading { display: flex; gap: 14px; padding-bottom: 20px; margin-bottom: 5px; border-bottom: 1px solid #d2e0dc; }
.consent-heading > span { color: var(--brand); font-size: 1.5rem; }
.consent-heading h3 { margin: 0 0 3px; font-size: 1.05rem; }
.consent-heading p { margin: 0; color: var(--muted); font-size: .75rem; }
.consent { display: flex; gap: 13px; align-items: flex-start; padding: 15px 0; cursor: pointer; border-bottom: 1px solid #d8e5e1; }
.consent:last-of-type { border-bottom: 0; }
.consent input { width: 19px; height: 19px; min-height: 0; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.consent strong, .consent small { display: block; }
.consent strong { color: #29443d; font-size: .79rem; }
.consent small { margin-top: 3px; color: #687a75; font-size: .7rem; line-height: 1.45; }
.consent.optional strong::after { content: "Opcional"; margin-left: 8px; padding: 2px 5px; color: #59766f; background: white; border: 1px solid #cbdbd6; border-radius: 3px; font-size: .56rem; text-transform: uppercase; letter-spacing: .05em; }
.terms-version { margin: 12px 0 0; color: #71817c; font-size: .67rem; }

.form-actions { display: flex; align-items: center; gap: 12px; padding-top: 30px; margin-top: 32px; border-top: 1px solid var(--line); }
.form-actions .primary { margin-left: auto; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 20px; border: 1px solid transparent; border-radius: 4px; font-weight: 760; font-size: .8rem; text-decoration: none; cursor: pointer; transition: transform .16s, background .16s, border .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--brand); border-color: var(--brand); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: #36534c; background: white; border-color: #c8d6d1; }
.button:disabled { opacity: .58; cursor: wait; transform: none; }
.form-saved { margin-left: 4px; color: #88948f; font-size: .65rem; }
.form-alert { display: none; margin-top: 20px; padding: 12px 14px; color: #7a271a; background: #fff2f0; border: 1px solid #ffd1cc; border-radius: 4px; font-size: .76rem; }
.form-alert:not(:empty) { display: block; }

.success-panel { padding: clamp(45px, 8vw, 90px) clamp(28px, 8vw, 88px); text-align: center; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 25px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 50%; font-size: 1.8rem; font-weight: 900; box-shadow: 0 0 0 10px var(--brand-soft); }
.success-panel h2 { max-width: 630px; margin: 0 auto 15px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.success-panel > p:not(.eyebrow) { max-width: 620px; margin: 0 auto; color: var(--muted); }
.protocol { max-width: 420px; margin: 32px auto; padding: 15px; background: #f5f8f7; border: 1px solid #dce5e1; border-radius: 5px; }
.protocol span, .protocol strong { display: block; }
.protocol span { color: #77847f; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.protocol strong { margin-top: 4px; color: var(--brand-dark); font-size: .9rem; word-break: break-all; }

footer { min-height: 140px; padding: 32px clamp(24px, 5vw, 78px); display: flex; align-items: center; gap: 28px; background: white; border-top: 1px solid #e3e9e6; color: #697873; font-size: .75rem; }
footer img { width: 145px; height: auto; }
footer p { flex: 1; }
footer a { color: #3b5f57; font-weight: 700; text-decoration: none; }

@media (max-width: 1050px) {
    .poc-hero { grid-template-columns: 1fr; gap: 45px; }
    .trust-card { max-width: 720px; }
    .application-shell { grid-template-columns: 260px minmax(0, 760px); gap: 30px; }
    .field-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-3 { grid-column: span 2; }
    .choice-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 800px) {
    .poc-header { height: 70px; }
    .brand img { width: 155px; }
    .public-badge { font-size: 0; }
    .public-badge::after { content: "Acesso público"; font-size: .72rem; }
    .poc-hero { padding-top: 60px; padding-bottom: 68px; }
    .hero-points { grid-template-columns: 1fr; gap: 0; }
    .hero-points div { padding: 14px 0; }
    .application-shell { display: block; padding: 36px 15px 70px; }
    .progress-panel { display: none; }
    .mobile-progress { display: block; padding: 16px 20px 0; color: #60716c; font-size: .68rem; font-weight: 750; }
    .mobile-progress div { height: 3px; margin-top: 9px; background: #e5ebe8; overflow: hidden; }
    .mobile-progress i { display: block; height: 100%; width: 20%; background: var(--brand); transition: width .25s ease; }
    .form-card form { padding-top: 30px; }
}

@media (max-width: 590px) {
    .poc-header { padding-inline: 18px; }
    .poc-hero { padding-inline: 20px; }
    .hero-copy h1 { font-size: 2.7rem; }
    .trust-card { padding: 27px 23px; }
    .form-card { border-radius: 6px; }
    .form-card form { padding-inline: 20px; }
    .step-heading { gap: 10px; }
    .step-heading > span { display: none; }
    .field-grid.two, .field-grid.three, .choice-grid.two, .choice-grid.four, .application-summary { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .yes-no-grid { grid-template-columns: 1fr; padding: 15px; }
    .yes-no-grid label { grid-template-columns: 1fr; gap: 5px; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .primary { margin-left: auto; }
    .form-saved { order: 3; width: 100%; text-align: center; }
    .summary-block dl div { grid-template-columns: 74px 1fr; }
    footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    footer p { margin: 0; }
}

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

/* POC: scope, evidence and outcomes before the existing qualification form. */
.poc-hero { padding-bottom: 64px; }
.hero-copy h1 { font-size: clamp(2.65rem, 4.4vw, 4.4rem); line-height: 1.05; }
.poc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.poc-text-link { color: var(--brand-dark); font-weight: 700; text-underline-offset: 4px; }
.poc-overview { max-width: 1200px; margin: 0 auto 64px; padding: 48px clamp(24px, 5vw, 60px); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.poc-section-heading { max-width: 770px; }
.poc-overview h2 { margin: 0 0 16px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; }
.poc-section-heading > p:last-child, .poc-process p, .poc-deliverables span, .poc-scope-note { color: var(--muted); }
.poc-process { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.poc-process li { border-top: 2px solid var(--line); padding-top: 22px; }
.poc-process li > span { color: var(--brand-dark); font-weight: 800; }
.poc-process h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.poc-process p { margin: 0; font-size: .95rem; }
.poc-deliverables { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.poc-deliverables ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.poc-deliverables strong, .poc-deliverables span { display: block; }
.poc-deliverables span { margin-top: 6px; font-size: .9rem; }
.poc-scope-note { margin: 28px 0 0; font-size: .85rem; }
#solicitar-poc, #como-funciona-poc { scroll-margin-top: 24px; }
@media (max-width: 760px) {
    .poc-overview { margin: 0 20px 40px; padding: 28px 22px; }
    .poc-process, .poc-deliverables, .poc-deliverables ul { grid-template-columns: 1fr; gap: 24px; }
    .poc-header { height: auto; min-height: 80px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
