:root {
    --page: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --text: #17202a;
    --muted: #697586;

    --border: #e1e6ec;

    --accent: #2468d8;
    --accent-dark: #1957bc;
    --accent-soft: #edf4ff;

    --radius: 18px;

    --shadow:
        0 1px 2px rgba(20, 30, 40, .03),
        0 10px 32px rgba(20, 30, 40, .04);
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    min-height: 100vh;
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0,
            var(--page) 320px
        );

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.55;
}


a {
    color: inherit;
}


.shell {
    width: min(
        1040px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}


/* Header */

.site-header {
    padding: 28px 0;
}


.header-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;
}


.brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;
}


.brand-mark {
    display: grid;

    width: 38px;
    height: 38px;

    place-items: center;

    border-radius: 11px;

    background: var(--text);
    color: white;

    font-weight: 760;

    letter-spacing: -.04em;
}


.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}


.brand-text strong {
    font-size: 15px;
    font-weight: 720;
}


.brand-text span {
    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;

    letter-spacing: .04em;

    text-transform: uppercase;
}


.staff-badge {
    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 999px;

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

    color: var(--muted);

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

    backdrop-filter: blur(8px);
}


/* Main */

.main-content {
    padding:
        42px
        0
        72px;
}


.hero {
    max-width: 720px;

    margin-bottom: 36px;
}


.eyebrow {
    margin-bottom: 12px;

    color: var(--accent);

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

    letter-spacing: .08em;

    text-transform: uppercase;
}


h1 {
    margin:
        0
        0
        14px;

    font-size:
        clamp(
            32px,
            6vw,
            52px
        );

    line-height: 1.06;

    letter-spacing: -.045em;
}


.hero-copy,
.lead,
.result-intro {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 17px;
}


/* Tool cards */

.tools-grid {
    display: grid;

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

    gap: 18px;
}


.tool-card,
.content-card,
.result-card {
    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

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


.tool-card {
    padding: 26px;
}


.tool-icon {
    display: grid;

    width: 38px;
    height: 38px;

    margin-bottom: 18px;

    place-items: center;

    border-radius: 11px;

    background: var(--accent-soft);

    color: var(--accent);

    font-size: 16px;
    font-weight: 750;
}


.tool-heading {
    min-height: 94px;
}


.tool-heading h2 {
    margin:
        0
        0
        7px;

    font-size: 19px;

    letter-spacing: -.02em;
}


.tool-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


.tool-form {
    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-top: 16px;
}


/* Upload */

.upload-box {
    display: flex;

    min-height: 116px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 18px;

    border:
        1px
        dashed
        #cbd4df;

    border-radius: 13px;

    background: var(--surface-soft);

    text-align: center;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease;
}


.upload-box:hover {
    border-color: var(--accent);

    background: #f3f7fd;
}


.upload-box input {
    width: 1px;
    height: 1px;

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.upload-title {
    color: var(--text);

    font-size: 14px;
    font-weight: 650;
}


.upload-hint {
    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;
}


/* Form fields */

.field-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}


.field {
    display: flex;

    flex-direction: column;

    gap: 6px;

    color: var(--muted);

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


.input-unit {
    display: flex;

    align-items: center;

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

    background: white;

    overflow: hidden;
}


.input-unit input {
    width: 100%;

    padding: 10px 11px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font: inherit;
}


.input-unit span {
    padding-right: 11px;

    color: #8a94a1;

    font-size: 12px;
}


/* Buttons */

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    border-radius: 10px;

    font: inherit;
    font-size: 14px;
    font-weight: 650;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .1s ease,
        background .15s ease,
        border-color .15s ease;
}


.primary-button {
    border: 0;

    background: var(--accent);

    color: white;
}


.primary-button:hover {
    background: var(--accent-dark);
}


.primary-button:active {
    transform: translateY(1px);
}


.secondary-button {
    margin-top: 24px;

    padding: 0 15px;

    border: 1px solid var(--border);

    background: white;

    color: var(--text);
}


.secondary-button:hover {
    border-color: #c8d1dc;

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


/* Info strip */

.info-strip {
    display: grid;

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

    margin-top: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

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

    overflow: hidden;
}


.info-strip div {
    display: flex;

    flex-direction: column;

    padding: 15px 18px;

    border-right: 1px solid var(--border);
}


.info-strip div:last-child {
    border-right: 0;
}


.info-strip strong {
    font-size: 13px;
}


.info-strip span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}


/* Result */

.result-page,
.text-page {
    max-width: 760px;
}


.result-card {
    margin-top: 28px;

    overflow: hidden;
}


.result-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 16px 20px;

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


.result-row:last-child {
    border-bottom: 0;
}


.result-row span {
    color: var(--muted);

    font-size: 13px;
}


.result-row strong {
    text-align: right;

    font-size: 14px;

    overflow-wrap: anywhere;
}


/* Text content */

.content-card {
    margin-top: 28px;

    padding: 28px;
}


.content-card h2 {
    margin:
        28px
        0
        8px;

    font-size: 17px;
}


.content-card h2:first-child {
    margin-top: 0;
}


.content-card p,
.content-card li {
    color: var(--muted);

    font-size: 14px;
}


.content-card ul {
    padding-left: 20px;
}


/* Error */

.error-symbol {
    display: grid;

    width: 44px;
    height: 44px;

    margin-bottom: 20px;

    place-items: center;

    border-radius: 13px;

    background: #fff1f1;

    color: #c74242;

    font-weight: 760;
}


/* Footer */

.site-footer {
    padding:
        22px
        0
        34px;

    border-top: 1px solid var(--border);
}


.footer-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    color: var(--muted);

    font-size: 11px;
}


.footer-inner > div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.footer-inner strong {
    color: var(--text);

    font-size: 12px;
}


.footer-inner nav {
    display: flex;

    gap: 18px;
}


.footer-inner a {
    text-decoration: none;
}


.footer-inner a:hover {
    color: var(--text);
}


/* Responsive */

@media (max-width: 720px) {

    .shell {
        width:
            min(
                100% - 28px,
                1040px
            );
    }


    .site-header {
        padding-top: 20px;
    }


    .header-inner {
        align-items: flex-start;
    }


    .staff-badge {
        display: none;
    }


    .main-content {
        padding-top: 26px;
    }


    .tools-grid {
        grid-template-columns: 1fr;
    }


    .tool-heading {
        min-height: auto;
    }


    .field-grid {
        grid-template-columns: 1fr;
    }


    .info-strip {
        grid-template-columns: 1fr;
    }


    .info-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }


    .info-strip div:last-child {
        border-bottom: 0;
    }


    .result-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }


    .result-row strong {
        text-align: left;
    }


    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   Newtec header layout v2
   ========================================================= */

.site-header {
    padding:
        34px
        0
        0;
}


.brand-logo-link {
    display: block;

    width: fit-content;

    max-width: 100%;

    margin: 0;

    text-decoration: none;
}


.brand-logo {
    display: block;

    width: min(560px, 72vw);
    height: auto;
}


.product-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-top: 22px;

    padding:
        15px
        0
        17px;

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


.product-name {
    color: var(--text);

    font-size: 20px;
    font-weight: 720;

    letter-spacing: -.02em;
}


.staff-badge {
    display: inline-flex;

    align-items: center;

    padding:
        7px
        11px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    color: var(--muted);

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

    line-height: 1;

    white-space: nowrap;
}


.main-content {
    padding-top: 46px;
}


@media (max-width: 760px) {

    .site-header {
        padding-top: 24px;
    }


    .brand-logo {
        width: min(500px, 88vw);
    }


    .product-row {
        margin-top: 18px;

        padding:
            13px
            0
            15px;
    }


    .product-name {
        font-size: 18px;
    }


    .staff-badge {
        font-size: 10px;
    }

}


@media (max-width: 480px) {

    .product-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 9px;
    }


    .staff-badge {
        align-self: flex-start;
    }

}
