:root {
    --tri-bg: #f4f6fb;
    --tri-surface: #ffffff;
    --tri-surface-soft: #f8f9fd;
    --tri-line: #e6e9f2;

    --tri-text: #172033;
    --tri-muted: #727b8e;
    --tri-muted-soft: #9aa2b3;

    --tri-navy: #0d1729;
    --tri-navy-2: #121f35;

    --tri-purple: #6557e8;
    --tri-purple-2: #7b6df1;
    --tri-purple-soft: #f0edff;

    --tri-green: #17976f;
    --tri-green-soft: #e9f8f2;

    --tri-orange: #d88a22;
    --tri-orange-soft: #fff5e8;

    --tri-shadow:
        0 14px 40px rgba(26, 35, 58, .07);

    --tri-shadow-strong:
        0 24px 60px rgba(24, 32, 58, .12);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--tri-bg);
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(101, 87, 232, .06),
            transparent 30%
        ),
        var(--tri-bg);

    color: var(--tri-text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* =========================================================
   BARRA DEMO
   ========================================================= */

.demo-banner {
    height: 38px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid rgba(255,255,255,.06);

    background: #0a1424;
    color: #b9c3d5;

    font-size: 11px;
}

.demo-banner strong {
    color: #ffffff;

    font-size: 10px;
    letter-spacing: .08em;
}

.demo-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #42d19c;

    box-shadow:
        0 0 0 4px rgba(66,209,156,.12);
}

/* =========================================================
   ESTRUTURA
   ========================================================= */

.app-shell {
    min-height: calc(100vh - 38px);

    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    min-height: calc(100vh - 38px);
    padding: 26px 18px;

    position: sticky;
    top: 38px;
    align-self: start;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0d1729 0%,
            #0b1525 100%
        );

    color: #fff;

    border-right: 1px solid rgba(255,255,255,.04);
}

.brand {
    min-height: 52px;
    padding: 0 8px 22px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom:
        1px solid rgba(255,255,255,.07);
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            var(--tri-purple),
            #8a78ff
        );

    color: #fff;

    font-size: 18px;
    font-weight: 900;

    box-shadow:
        0 10px 25px rgba(101,87,232,.3);
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: .02em;
}

.brand-copy span {
    margin-top: 2px;

    color: #8f9aad;

    font-size: 11px;
}

.sidebar-context {
    margin: 22px 6px 15px;
    padding: 12px 14px;

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;

    background: rgba(255,255,255,.035);
}

.sidebar-context span,
.sidebar-context strong {
    display: block;
}

.sidebar-context span {
    color: #768398;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.sidebar-context strong {
    margin-top: 5px;

    color: #dfe5ef;

    font-size: 11px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.nav-link {
    min-height: 46px;
    padding: 0 13px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-radius: 11px;

    color: #8f9aae;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,.045);
    color: #fff;

    transform: translateX(2px);
}

.nav-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(101,87,232,.18),
            rgba(101,87,232,.08)
        );

    color: #fff;

    box-shadow:
        inset 3px 0 0 var(--tri-purple);
}

.nav-icon {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 8px;

    background: rgba(255,255,255,.05);

    color: #8390a5;

    font-size: 9px;
    font-weight: 800;
}

.nav-link.active .nav-icon {
    background: rgba(101,87,232,.22);
    color: #c8c1ff;
}

.sidebar-protection {
    margin-top: auto;
    padding: 14px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    border: 1px solid rgba(55,197,147,.12);
    border-radius: 13px;

    background: rgba(21,147,105,.07);
}

.protection-indicator {
    width: 8px;
    height: 8px;
    margin-top: 4px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #39d39c;

    box-shadow:
        0 0 0 4px rgba(57,211,156,.09);
}

.sidebar-protection strong,
.sidebar-protection small {
    display: block;
}

.sidebar-protection strong {
    color: #cceee2;

    font-size: 10px;
}

.sidebar-protection small {
    margin-top: 3px;

    color: #688c80;

    font-size: 9px;
    line-height: 1.4;
}

/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.main {
    width: 100%;
    min-width: 0;
    padding: 34px 38px 26px;
}

.topbar {
    min-height: 74px;
    margin-bottom: 24px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1 {
    margin: 5px 0 5px;

    color: var(--tri-text);

    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.035em;
}

.topbar p {
    margin: 0;

    color: var(--tri-muted);

    font-size: 12px;
}

.eyebrow {
    color: var(--tri-purple);

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.essay-top-link {
    min-height: 40px;
    padding: 0 15px;

    display: inline-flex;
    align-items: center;

    border: 1px solid var(--tri-line);
    border-radius: 10px;

    background: #fff;
    color: #596477;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 6px 20px rgba(26,35,58,.04);
}

/* =========================================================
   HERO
   ========================================================= */

.essay-hero {
    min-height: 260px;
    margin-bottom: 18px;
    padding: 42px 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;

    overflow: hidden;
    position: relative;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 87% 20%,
            rgba(146,128,255,.38),
            transparent 24%
        ),
        radial-gradient(
            circle at 75% 85%,
            rgba(64,202,159,.12),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #121d31 0%,
            #1d2741 46%,
            #5147bc 100%
        );

    color: #fff;

    box-shadow: var(--tri-shadow-strong);
}

.essay-hero::after {
    content: "";

    width: 230px;
    height: 230px;

    position: absolute;
    right: -70px;
    bottom: -100px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.essay-tag {
    display: inline-flex;
    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    background: rgba(255,255,255,.07);
    color: #dcd8ff;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.essay-hero h2 {
    max-width: 720px;
    margin: 15px 0 11px;

    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.essay-hero p {
    max-width: 620px;
    margin: 0;

    color: #c4ccda;

    font-size: 13px;
    line-height: 1.65;
}

.coverage-card {
    width: 240px;
    min-width: 240px;
    padding: 24px;

    position: relative;
    z-index: 2;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.11),
            rgba(255,255,255,.055)
        );

    backdrop-filter: blur(12px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08);
}

.coverage-card > span,
.coverage-card > strong,
.coverage-card > small {
    display: block;
}

.coverage-card > span {
    color: #aeb8ca;

    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
}

.coverage-card > strong {
    margin: 8px 0 15px;

    color: #fff;

    font-size: 34px;
    letter-spacing: -.04em;
}

.coverage-bar {
    height: 8px;
    overflow: hidden;

    border-radius: 999px;

    background: rgba(255,255,255,.12);
}

.coverage-bar span {
    height: 100%;

    display: block;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #42d5a2,
            #82e6c4
        );
}

.coverage-card > small {
    margin-top: 10px;

    color: #aeb8ca;

    font-size: 10px;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.essay-metrics {
    margin-bottom: 18px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.essay-metrics article {
    min-height: 120px;
    padding: 20px 21px;

    position: relative;
    overflow: hidden;

    border: 1px solid var(--tri-line);
    border-radius: 16px;

    background: var(--tri-surface);

    box-shadow: var(--tri-shadow);
}

.essay-metrics article::before {
    content: "";

    width: 42px;
    height: 3px;

    position: absolute;
    top: 0;
    left: 21px;

    border-radius: 0 0 8px 8px;

    background: var(--tri-purple);
}

.essay-metrics article > span,
.essay-metrics article > strong,
.essay-metrics article > small {
    display: block;
}

.essay-metrics article > span {
    color: var(--tri-muted);

    font-size: 10px;
    font-weight: 600;
}

.essay-metrics article > strong {
    margin: 10px 0 4px;

    color: var(--tri-text);

    font-size: 28px;
    line-height: 1;
    letter-spacing: -.035em;
}

.essay-metrics article > small {
    color: var(--tri-muted-soft);

    font-size: 9px;
}

/* =========================================================
   PERFIL
   ========================================================= */

.profile-card {
    margin-bottom: 18px;
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: 1px solid var(--tri-line);
    border-radius: 16px;

    background: #fff;

    box-shadow: var(--tri-shadow);
}

.profile-card h3 {
    margin: 5px 0 0;

    font-size: 15px;
}

.profile-switch {
    display: flex;
    gap: 8px;
}

.profile-option {
    min-height: 40px;
    padding: 0 15px;

    border: 1px solid var(--tri-line);
    border-radius: 10px;

    background: #fff;
    color: var(--tri-muted);

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition: all .18s ease;
}

.profile-option:hover {
    border-color: #cfc8ff;

    background: #faf9ff;
}

.profile-option.active {
    border-color: #cfc8ff;

    background: var(--tri-purple-soft);
    color: var(--tri-purple);

    box-shadow:
        0 6px 18px rgba(101,87,232,.08);
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.essay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.essay-flow {
    min-width: 0;

    display: grid;
    gap: 14px;
}

.essay-card,
.side-card {
    border: 1px solid var(--tri-line);

    background: #fff;

    box-shadow: var(--tri-shadow);
}

.essay-card {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr);

    overflow: hidden;

    border-radius: 18px;
}

.step-number {
    padding-top: 24px;

    border-right: 1px solid var(--tri-line);

    background:
        linear-gradient(
            180deg,
            #fafbff,
            #f6f7fc
        );

    color: var(--tri-purple);

    text-align: center;

    font-size: 10px;
    font-weight: 900;
}

.step-number.success {
    color: var(--tri-green);
}

.step-body {
    min-width: 0;
    padding: 26px 28px;
}

.step-body h3 {
    margin: 5px 0 9px;

    color: var(--tri-text);

    font-size: 19px;
    letter-spacing: -.02em;
}

.step-body > p {
    margin: 0 0 18px;

    color: var(--tri-muted);

    font-size: 11px;
    line-height: 1.6;
}

/* =========================================================
   MODELOS
   ========================================================= */

.template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.template-item {
    padding: 16px;

    border: 1px solid var(--tri-line);
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #fafbff,
            #ffffff
        );
}

.template-item > strong,
.template-item > span {
    display: block;
}

.template-item > strong {
    font-size: 11px;
}

.template-item > span {
    margin: 4px 0 13px;

    color: var(--tri-muted);

    font-size: 9px;
}

.template-item > div {
    display: flex;
    gap: 7px;
}

.template-item a {
    min-height: 32px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;

    border: 1px solid #ddd8ff;
    border-radius: 8px;

    background: var(--tri-purple-soft);
    color: var(--tri-purple);

    text-decoration: none;

    font-size: 8px;
    font-weight: 800;
}

.demo-helper {
    margin-top: 12px;
    padding: 15px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border: 1px solid #d6eee5;
    border-radius: 12px;

    background:
        linear-gradient(
            120deg,
            #f1fbf7,
            #f8fdfb
        );
}

.demo-helper strong,
.demo-helper span {
    display: block;
}

.demo-helper strong {
    color: #257a60;

    font-size: 10px;
}

.demo-helper span {
    margin-top: 3px;

    color: #6d9183;

    font-size: 9px;
}

.demo-helper a {
    min-height: 34px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    border-radius: 9px;

    background: var(--tri-green);
    color: #fff;

    text-decoration: none;

    font-size: 8px;
    font-weight: 800;
}

/* =========================================================
   UPLOAD
   ========================================================= */

.upload-area {
    min-height: 220px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1.5px dashed #c8cde0;
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #fafbff,
            #f7f8fc
        );

    text-align: center;

    cursor: pointer;

    transition: all .2s ease;
}

.upload-area:hover,
.upload-area.dragging {
    border-color: var(--tri-purple);

    background: #f7f5ff;

    box-shadow:
        inset 0 0 0 3px rgba(101,87,232,.04);
}

.upload-arrow {
    width: 52px;
    height: 52px;
    margin-bottom: 13px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--tri-purple-soft);
    color: var(--tri-purple);

    font-size: 22px;
    font-weight: 900;
}

.upload-area > strong {
    font-size: 13px;
}

.upload-area > span:not(.upload-arrow) {
    margin-top: 4px;

    color: var(--tri-muted);

    font-size: 10px;
}

.upload-area > small {
    margin-top: 10px;

    color: var(--tri-muted-soft);

    font-size: 9px;
}

.selected-file {
    margin-top: 10px;
    padding: 13px 15px;

    border: 1px solid var(--tri-line);
    border-radius: 10px;

    background: var(--tri-surface-soft);
    color: #596477;

    font-size: 10px;
}

.primary-button,
.confirm-button {
    width: 100%;
    min-height: 50px;
    margin-top: 11px;

    border: 0;
    border-radius: 11px;

    color: #fff;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}

.primary-button {
    background:
        linear-gradient(
            135deg,
            var(--tri-purple),
            var(--tri-purple-2)
        );

    box-shadow:
        0 12px 25px rgba(101,87,232,.2);
}

.confirm-button {
    background:
        linear-gradient(
            135deg,
            #168965,
            #31ad82
        );

    box-shadow:
        0 12px 25px rgba(23,151,111,.18);
}

.primary-button:not(:disabled):hover,
.confirm-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.confirm-button:disabled {
    opacity: .38;

    cursor: not-allowed;

    box-shadow: none;
}

/* =========================================================
   VALIDAÇÃO
   ========================================================= */

.validation-summary {
    margin: 18px 0 15px;

    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.validation-summary > div {
    padding: 14px;

    border: 1px solid var(--tri-line);
    border-radius: 11px;

    background: var(--tri-surface-soft);
}

.validation-summary span,
.validation-summary strong {
    display: block;
}

.validation-summary span {
    color: var(--tri-muted);

    font-size: 9px;
}

.validation-summary strong {
    margin-top: 5px;

    font-size: 20px;
}

.table-wrapper {
    overflow-x: auto;

    border: 1px solid var(--tri-line);
    border-radius: 12px;
}

.table-wrapper table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    background: #fff;
}

.table-wrapper th {
    padding: 12px 11px;

    border-bottom: 1px solid var(--tri-line);

    background: #f8f9fc;
    color: #8b94a5;

    text-align: left;
    text-transform: uppercase;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
}

.table-wrapper td {
    padding: 13px 11px;

    border-bottom: 1px solid #eef0f5;

    color: #536074;

    font-size: 9px;
}

.row-status {
    min-height: 26px;
    padding: 0 9px;

    display: inline-flex;
    align-items: center;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;
}

.row-status.valid {
    background: var(--tri-green-soft);
    color: var(--tri-green);
}

.row-status.error {
    background: #fff0f0;
    color: #c74f4f;
}

/* =========================================================
   CONCLUSÃO
   ========================================================= */

#successCard {
    border-color: #dfe2f3;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfbff
        );
}

#successCard .step-body {
    padding-top: 30px;
    padding-bottom: 30px;
}

#successCard h3 {
    margin-bottom: 16px;

    font-size: 22px;
}

.result-transition {
    margin-top: 18px;

    display: grid;
    grid-template-columns: 1fr 54px 1fr;
    align-items: center;
    gap: 10px;
}

.result-transition > div {
    min-height: 105px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid var(--tri-line);
    border-radius: 13px;

    background: #f9fafc;
}

.result-transition > div:last-child {
    border-color: #d5eee4;

    background:
        linear-gradient(
            145deg,
            #eefaf6,
            #f7fdfb
        );
}

.result-transition > span {
    color: var(--tri-purple);

    text-align: center;

    font-size: 22px;
}

.result-transition div span,
.result-transition div strong {
    display: block;
}

.result-transition div span {
    color: var(--tri-muted);

    font-size: 9px;
}

.result-transition div strong {
    margin-top: 7px;

    color: var(--tri-text);

    font-size: 28px;
    letter-spacing: -.04em;
}

.result-transition > div:last-child strong {
    color: var(--tri-green);
}

.average-transition {
    margin-top: 12px;
    padding: 18px;

    display: grid;
    grid-template-columns: 1fr auto 30px auto;
    align-items: center;
    gap: 16px;

    border: 1px solid #ddd8ff;
    border-radius: 13px;

    background:
        linear-gradient(
            120deg,
            #f8f7ff,
            #fbfaff
        );
}

.average-transition span {
    color: var(--tri-muted);

    font-size: 9px;
}

.average-transition strong {
    color: var(--tri-text);

    font-size: 20px;
}

.average-transition strong:last-child {
    color: var(--tri-purple);
}

.results-link {
    min-height: 40px;
    margin-top: 14px;
    padding: 0 15px;

    display: inline-flex;
    align-items: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--tri-purple),
            var(--tri-purple-2)
        );

    color: #fff;

    text-decoration: none;

    font-size: 9px;
    font-weight: 800;
}

/* =========================================================
   COLUNA LATERAL
   ========================================================= */

.essay-side {
    position: sticky;
    top: 56px;

    display: grid;
    gap: 13px;
}

.side-card {
    padding: 21px;

    border-radius: 16px;
}

.side-card h3 {
    margin: 5px 0 14px;

    font-size: 14px;
}

.validation-list {
    display: grid;
}

.validation-list span {
    padding: 11px 0;

    border-bottom: 1px solid var(--tri-line);

    color: #626d80;

    font-size: 9px;
}

.validation-list span:last-child {
    border-bottom: 0;
}

.formula-box {
    padding: 17px;

    border: 1px solid #ddd8ff;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #f1efff,
            #f8f7ff
        );

    color: #5045ad;

    text-align: center;

    font-size: 13px;
    font-weight: 800;
}

.pending-list {
    max-height: 280px;

    overflow-y: auto;
}

.pending-list > div:not(.no-pending) {
    padding: 11px 0;

    border-bottom: 1px solid var(--tri-line);
}

.pending-list strong,
.pending-list span {
    display: block;
}

.pending-list strong {
    color: var(--tri-text);

    font-size: 10px;
}

.pending-list span {
    margin-top: 3px;

    color: var(--tri-muted);

    font-size: 9px;
}

.no-pending {
    padding: 14px;

    border: 1px solid #d4eee4;
    border-radius: 10px;

    background: var(--tri-green-soft);
    color: var(--tri-green);

    font-size: 9px;
    font-weight: 800;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 24px;
    padding: 18px 3px 6px;

    display: flex;
    justify-content: space-between;

    color: #99a2b3;

    font-size: 9px;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

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

    .essay-side {
        position: static;

        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 205px minmax(0,1fr);
    }

    .main {
        padding: 28px 24px;
    }

    .essay-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        min-height: auto;

        position: static;
    }

    .sidebar-protection {
        margin-top: 18px;
    }

    .main {
        padding: 22px 16px;
    }

    .essay-hero {
        padding: 28px 24px;

        flex-direction: column;
        align-items: stretch;
    }

    .coverage-card {
        width: 100%;
        min-width: 0;
    }

    .profile-card {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-switch {
        display: grid;
    }

    .essay-metrics,
    .template-grid,
    .essay-side {
        grid-template-columns: 1fr;
    }

    .essay-card {
        grid-template-columns: 44px minmax(0,1fr);
    }

    .step-body {
        padding: 21px 17px;
    }

    .demo-helper {
        flex-direction: column;
        align-items: stretch;
    }

    .demo-helper a {
        justify-content: center;
    }

    .result-transition {
        grid-template-columns: 1fr;
    }

    .result-transition > span {
        transform: rotate(90deg);
    }

    .average-transition {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* =========================================================
   TRI - AJUSTE FINO DE TIPOGRAFIA
   ========================================================= */

.topbar h1 {
    font-size: 24px;
    line-height: 1.15;
}

.topbar p {
    font-size: 11px;
}

.eyebrow {
    font-size: 8px;
}

.essay-hero {
    min-height: 230px;
    padding: 34px 38px;
}

.essay-hero h2 {
    max-width: 670px;

    font-size: clamp(25px, 2.5vw, 34px);
    line-height: 1.08;
}

.essay-hero p {
    max-width: 590px;

    font-size: 11px;
    line-height: 1.55;
}

.essay-tag {
    font-size: 8px;
}

.coverage-card {
    width: 220px;
    min-width: 220px;
    padding: 21px;
}

.coverage-card > span {
    font-size: 8px;
}

.coverage-card > strong {
    font-size: 27px;
}

.coverage-card > small {
    font-size: 9px;
}

.essay-metrics article {
    min-height: 106px;
    padding: 18px 20px;
}

.essay-metrics article > span {
    font-size: 9px;
}

.essay-metrics article > strong {
    margin-top: 8px;

    font-size: 23px;
}

.essay-metrics article > small {
    font-size: 8px;
}

.profile-card h3 {
    font-size: 13px;
}

.profile-option {
    font-size: 9px;
}

.step-body h3 {
    font-size: 16px;
}

.step-body > p {
    font-size: 10px;
}

.template-item > strong {
    font-size: 10px;
}

.template-item > span {
    font-size: 8px;
}

.upload-area > strong {
    font-size: 11px;
}

.upload-area > span:not(.upload-arrow) {
    font-size: 9px;
}

.upload-area > small {
    font-size: 8px;
}

.validation-summary strong {
    font-size: 17px;
}

#successCard h3 {
    font-size: 18px;
}

.result-transition div strong {
    font-size: 23px;
}

.average-transition strong {
    font-size: 17px;
}

.side-card h3 {
    font-size: 13px;
}

.validation-list span {
    font-size: 8px;
}

.formula-box {
    font-size: 11px;
}

.pending-list strong {
    font-size: 9px;
}

.pending-list span {
    font-size: 8px;
}

.nav-link {
    font-size: 11px;
}

.brand-copy strong {
    font-size: 15px;
}

.brand-copy span {
    font-size: 10px;
}

