/*
 * 00CSS — UpTest Landing Page
 * Ordem: root > base > components > forms > pages > utilities
 */

/* ROOT */
.uptest-landing,
.uptest-modal-backdrop {
    --uptest-bg: #f4f7fb;
    --uptest-paper: #ffffff;
    --uptest-ink: #162033;
    --uptest-muted: #5f6f89;
    --uptest-brand: #174ea6;
    --uptest-brand-dark: #10213f;
    --uptest-success: #0f766e;
    --uptest-success-bg: #e9f8f3;
    --uptest-success-line: #ccefe4;
    --uptest-warning-bg: #fff7ed;
    --uptest-warning-line: #fed7aa;
    --uptest-warning-ink: #9a3412;
    --uptest-error-bg: #fef2f2;
    --uptest-error-line: #fecaca;
    --uptest-error-ink: #991b1b;
    --uptest-line: #dfe7f2;
    --uptest-shadow: 0 16px 40px rgba(22, 32, 51, .08);
    --uptest-radius-lg: 24px;
    --uptest-radius-md: 18px;
}

/* BASE */
.uptest-landing {
    background: var(--uptest-bg);
    color: var(--uptest-ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    font-size: 18px;
    padding: 24px 0 46px;
}

.uptest-landing *,
.uptest-modal-backdrop *,
.uptest-modal-backdrop *::before,
.uptest-modal-backdrop *::after {
    box-sizing: border-box;
}

.uptest-landing h1,
.uptest-landing h2,
.uptest-landing h3,
.uptest-landing p,
.uptest-modal h2,
.uptest-modal p {
    font-family: Arial, Helvetica, sans-serif;
}

.uptest-landing h1 {
    margin: 12px 0;
    font-size: clamp(2.1rem, 8vw, 4.5rem);
    line-height: 1.02;
    color: inherit;
}

.uptest-landing h2,
.uptest-modal h2 {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    line-height: 1.15;
    color: var(--uptest-ink);
}

.uptest-landing h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
    color: var(--uptest-ink);
}

.uptest-landing p,
.uptest-modal p {
    margin: 0 0 14px;
}

/* COMPONENTS */
.uptest-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.uptest-hero {
    margin: 0 auto 24px;
    padding: 34px 22px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--uptest-brand-dark), var(--uptest-brand) 58%, var(--uptest-success));
    color: #fff;
    box-shadow: var(--uptest-shadow);
    overflow: hidden;
    position: relative;
}

.uptest-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    right: -90px;
    top: -90px;
    background: rgba(255, 255, 255, .13);
}

.uptest-eyebrow {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    opacity: .88;
}

.uptest-hero p {
    max-width: 820px;
    font-size: 1.15rem;
    opacity: .94;
    position: relative;
    z-index: 1;
}

.uptest-section {
    margin: 22px 0;
}

.uptest-card {
    background: var(--uptest-paper);
    border: 1px solid var(--uptest-line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--uptest-shadow);
}

.uptest-edict-card {
    display: grid;
    gap: 16px;
}

.uptest-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--uptest-brand);
    font-size: .86rem;
    font-weight: 700;
}

.uptest-tag.draft {
    background: var(--uptest-warning-bg);
    color: var(--uptest-warning-ink);
}

.uptest-price {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--uptest-success);
}

.uptest-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--uptest-brand);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    line-height: 1.2;
}

.uptest-button:hover,
.uptest-button:focus {
    filter: brightness(.96);
    color: #fff;
    text-decoration: none;
}

.uptest-button.secondary {
    background: var(--uptest-success);
}

.uptest-button.light {
    background: #eef2f7;
    color: var(--uptest-ink);
}

.uptest-button.light:hover,
.uptest-button.light:focus {
    color: var(--uptest-ink);
}

.uptest-muted {
    color: var(--uptest-muted);
}

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

.uptest-request-box {
    background: var(--uptest-success-bg);
    border: 1px solid var(--uptest-success-line);
}

.uptest-benefit strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.uptest-mini-footer {
    padding: 32px 0 0;
    color: var(--uptest-muted);
    text-align: center;
    font-size: .95rem;
}

/* MESSAGES */
.uptest-notice {
    display: block;
    border-radius: var(--uptest-radius-md);
    padding: 16px 18px;
    margin: 0 0 18px;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(22, 32, 51, .06);
}

.uptest-notice.success {
    background: var(--uptest-success-bg);
    border: 1px solid var(--uptest-success-line);
    color: #0f513f;
}

.uptest-notice.warning {
    background: var(--uptest-warning-bg);
    border: 1px solid var(--uptest-warning-line);
    color: var(--uptest-warning-ink);
}

.uptest-notice.error,
.uptest-error {
    background: var(--uptest-error-bg);
    border: 1px solid var(--uptest-error-line);
    color: var(--uptest-error-ink);
}

/* FORMS / MODAL */
.uptest-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .76);
}

.uptest-modal-backdrop.is-open {
    display: flex;
}

.uptest-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #fff;
    color: var(--uptest-ink);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    padding: 22px;
}

.uptest-modal * {
    color: inherit;
}

.uptest-modal-header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.uptest-close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #eef2f7;
    color: var(--uptest-ink);
    border-radius: 999px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    flex: 0 0 auto;
    padding: 0;
}

.uptest-modal label {
    display: block;
    font-weight: 800;
    margin: 14px 0 6px;
    color: var(--uptest-ink);
}

.uptest-modal input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--uptest-line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--uptest-ink);
    font-size: 1rem;
    line-height: 1.3;
}

.uptest-modal input:focus {
    outline: 3px solid rgba(23, 78, 166, .18);
    border-color: var(--uptest-brand);
}

.uptest-form-note {
    font-size: .92rem;
    color: var(--uptest-muted);
    margin-top: 10px;
}

.uptest-modal .uptest-button {
    width: 100%;
}

.uptest-modal .uptest-button,
.uptest-modal .uptest-button:hover,
.uptest-modal .uptest-button:focus {
    color: #fff;
}

.uptest-modal .uptest-button.light,
.uptest-modal .uptest-button.light:hover,
.uptest-modal .uptest-button.light:focus {
    color: var(--uptest-ink);
}

/* UTILITIES */
@media (min-width: 760px) {
    .uptest-hero {
        padding: 58px;
    }

    .uptest-edict-card {
        grid-template-columns: 1.5fr .7fr;
        align-items: center;
    }

    .uptest-landing > .uptest-wrap > .uptest-section .uptest-button {
        width: auto;
    }

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

@media (max-width: 600px) {
    .uptest-modal-backdrop {
        align-items: flex-end;
        padding: 12px;
    }

    .uptest-modal {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 22px 22px 14px 14px;
        padding: 18px;
    }

    .uptest-modal-header {
        gap: 10px;
    }

    .uptest-modal h2 {
        font-size: 1.45rem;
    }
}

/* 00CSS — FORMS STATES */

.uptest-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.uptest-form-alert {
    display: block;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--uptest-error-bg);
    border: 1px solid var(--uptest-error-line);
    color: var(--uptest-error-ink);
    font-weight: 800;
    line-height: 1.4;
}

.uptest-form-alert[hidden] {
    display: none;
}

.uptest-field-error {
    display: block;
    min-height: 20px;
    margin-top: 5px;
    color: var(--uptest-error-ink);
    font-size: .9rem;
    font-weight: 800;
}

.uptest-modal input.is-invalid {
    border-color: var(--uptest-error-ink);
    background: #fff7f7;
}

.uptest-button.is-loading,
.uptest-button:disabled {
    opacity: .72;
    cursor: wait;
    filter: grayscale(.15);
}

html.uptest-modal-open,
html.uptest-modal-open body {
    overflow: hidden;
}