:root {
    --green: #047857;
    --green-dark: #064e3b;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --paper: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--slate-900);
    background: radial-gradient(circle at top left, #dfeee7, transparent 36%), linear-gradient(180deg, #f8fafc, #eef2f7);
}

a {
    color: inherit;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
}

/* Header */

.site-header,
.site-footer {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 16px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    border: 1px solid rgba(255, 255, 255, .9);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    overflow: visible;
}

    .brand img {
        height: 52px;
        width: auto;
        display: block;
        object-fit: contain;
    }

    .brand strong {
        display: block;
        font-size: 20px;
        line-height: 1.05;
    }

    .brand small {
        display: block;
        margin-top: 3px;
        color: var(--slate-600);
        font-weight: 700;
    }

.site-header nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

    .site-header nav a {
        text-decoration: none;
        font-weight: 800;
        color: var(--slate-700);
        padding: 10px 14px;
        border-radius: 999px;
    }

        .site-header nav a:hover {
            background: var(--slate-100);
            color: var(--slate-950);
        }

/* Shared panels */

.hero-copy,
.hero-side-cards,
.page-panel,
.detail-card,
.slab-images,
.mini-cert-card,
.verification-preview,
.address-card {
    background: var(--paper);
    border: 1px solid var(--slate-200);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .09);
    border-radius: 30px;
}

/* Home hero */

.hero {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    background: var(--slate-950);
    color: white;
    padding: 42px;
}

    .hero-copy h1 {
        font-size: 56px;
        line-height: .98;
        margin: 18px 0;
        letter-spacing: -0.04em;
    }

    .hero-copy p {
        font-size: 19px;
        line-height: 1.7;
        color: #cbd5e1;
        max-width: 760px;
    }

.eyebrow {
    display: inline-block;
    color: var(--green-dark);
    background: #d1fae5;
    padding: 7px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 900;
}

.hero-side-cards {
    padding: 22px;
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, .94);
}

.feature-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.hero-side-cards .feature-card {
    box-shadow: none;
}

.feature-card h2,
.verification-preview h2,
.page-panel h1 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.feature-card p,
.verification-preview p,
.page-panel p {
    line-height: 1.7;
    color: var(--slate-600);
}

/* Buttons and cert search */

.cert-search {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 18px;
    margin-top: 28px;
}

    .cert-search input {
        flex: 1;
        min-width: 0;
        font-size: 19px;
        font-weight: 800;
        padding: 13px 14px;
        border: 1px solid var(--slate-200);
        border-radius: 14px;
    }

    .cert-search button,
    .button {
        border: 0;
        border-radius: 14px;
        padding: 13px 18px;
        font-weight: 900;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

.primary {
    background: var(--green);
    color: white;
}

.secondary {
    background: var(--slate-100);
    color: var(--slate-900);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* Home verification preview */

.verification-preview {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    padding: 30px;
    margin-top: 28px;
    align-items: center;
}

.benefit-list {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

    .benefit-list div {
        display: grid;
        gap: 4px;
        padding: 16px 18px;
        border: 1px solid var(--slate-200);
        border-radius: 18px;
        background: #f8fafc;
    }

    .benefit-list strong {
        color: var(--slate-950);
        font-size: 16px;
    }

    .benefit-list span {
        color: var(--slate-600);
        line-height: 1.55;
    }

.mini-cert-card {
    padding: 24px;
}

.verified,
.verified-badge {
    color: var(--green-dark);
    background: #d1fae5;
    border-radius: 999px;
    padding: 8px 12px;
    display: inline-flex;
    font-weight: 900;
}

.grade-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.big-grade {
    font-size: 76px;
    line-height: .85;
    font-weight: 1000;
    color: #a16207;
}

.mini-subgrades {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

    .mini-subgrades div {
        padding: 10px;
        border: 1px solid var(--slate-200);
        border-radius: 14px;
        background: #f8fafc;
    }

    .mini-subgrades span {
        display: block;
        font-size: 11px;
        font-weight: 800;
        color: var(--slate-500, #64748b);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .mini-subgrades strong {
        display: block;
        margin-top: 3px;
        font-size: 22px;
        color: var(--slate-950);
    }

.info-band {
    margin-top: 28px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--slate-950);
    color: white;
    border-radius: 30px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .12);
}

    .info-band h2 {
        margin: 0 0 10px;
        font-size: 30px;
        line-height: 1.05;
        letter-spacing: -.03em;
    }

    .info-band p {
        margin: 0;
        max-width: 760px;
        color: #cbd5e1;
        line-height: 1.7;
        font-size: 17px;
    }

.info-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* General pages */

.page-panel {
    padding: 34px;
}

.narrow {
    max-width: 780px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        border: 1px solid var(--slate-200);
        border-radius: 14px;
        padding: 12px 14px;
        font: inherit;
    }

    .contact-form label {
        font-weight: 800;
        margin-top: 8px;
    }

    .contact-form span,
    .validation-summary {
        color: #b91c1c;
        font-weight: 700;
    }

.hidden-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.status-message {
    background: #dcfce7;
    color: #065f46;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    margin: 18px 0;
}

.address-card {
    padding: 28px;
}

    .address-card img {
        width: 100%;
        border-radius: 20px;
        margin-bottom: 18px;
    }

.muted {
    color: var(--slate-600);
}

.grade-scale-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.grade-scale-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    background: #f8fafc;
}

    .grade-scale-card.pristine {
        background: linear-gradient(135deg, #fff7ed, #fef3c7);
        border-color: #fcd34d;
    }

.grade-number {
    font-size: 56px;
    line-height: .9;
    font-weight: 1000;
    color: #a16207;
    text-align: center;
}

.grade-scale-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -.02em;
}

.grade-scale-card p {
    margin: 0;
    line-height: 1.65;
    color: var(--slate-600);
}

@media (max-width: 700px) {
    .grade-scale-card {
        grid-template-columns: 1fr;
    }

    .grade-number {
        text-align: left;
    }
}

/* Cert page */

.cert-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    background: var(--slate-950);
    color: white;
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .15);
}

    .cert-header h1 {
        font-size: 48px;
        margin: 10px 0;
    }

    .cert-header p {
        color: #cbd5e1;
        font-size: 19px;
    }

.sample-banner {
    margin: 18px 0;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 800;
}

.cert-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 22px;
}

.cert-details {
    display: grid;
    gap: 18px;
}

.detail-card,
.slab-images {
    padding: 24px;
}

dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px 18px;
}

dt {
    color: var(--slate-600);
    font-weight: 800;
}

dd {
    margin: 0;
    font-weight: 900;
}

.grade-display {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

    .grade-display span {
        font-size: 86px;
        font-weight: 1000;
        line-height: .85;
        color: #a16207;
    }

    .grade-display strong {
        font-size: 22px;
        padding-bottom: 8px;
    }

.subgrades {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 22px;
}

    .subgrades div {
        background: var(--slate-100);
        border-radius: 16px;
        padding: 14px;
    }

    .subgrades label {
        display: block;
        color: var(--slate-600);
        font-weight: 900;
        font-size: 12px;
        text-transform: uppercase;
    }

    .subgrades b {
        font-size: 28px;
    }

.image-pair {
    display: grid;
    gap: 16px;
}

    .image-pair img {
        width: 100%;
        border-radius: 22px;
        border: 1px solid var(--slate-200);
        background: white;
    }

/* Footer */

.site-footer {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--slate-600);
}

/* Responsive */

@media (max-width: 900px) {
    main {
        padding: 18px;
    }

    .site-header,
    .site-footer {
        margin: 14px;
    }

    .site-header,
    .site-footer,
    .cert-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .verification-preview,
    .contact-layout,
    .cert-layout,
    .info-band {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .cert-search {
        flex-direction: column;
    }

    .info-band-actions {
        justify-content: flex-start;
    }
}

/* Header hard override */

header.site-header {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 14px 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    border: 1px solid rgba(255, 255, 255, .9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    overflow: visible;
}

    header.site-header a.brand {
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: var(--slate-950);
        overflow: visible;
    }

        header.site-header a.brand img {
            height: 52px !important;
            max-height: 52px !important;
            width: auto !important;
            max-width: none !important;
            display: block;
            object-fit: contain;
            border-radius: 10px;
        }

        header.site-header a.brand strong {
            display: block;
            font-size: 20px;
            line-height: 1.05;
            font-weight: 900;
        }

        header.site-header a.brand small {
            display: block;
            margin-top: 3px;
            color: var(--slate-600);
            font-size: 13px;
            font-weight: 700;
        }

    header.site-header nav {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
    }

        header.site-header nav a {
            text-decoration: none;
            font-weight: 800;
            color: var(--slate-700);
            padding: 10px 14px;
            border-radius: 999px;
        }

            header.site-header nav a:hover {
                background: var(--slate-100);
                color: var(--slate-950);
            }

.grade-page {
    margin-bottom: 28px;
}

.grade-explainer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.grade-explainer-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

    .grade-explainer-card h2 {
        margin: 0 0 10px;
        font-size: 23px;
        letter-spacing: -.02em;
    }

    .grade-explainer-card p {
        margin: 0;
        line-height: 1.65;
        color: var(--slate-600);
    }

.grade-scale-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.grade-scale-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--slate-200);
    border-radius: 26px;
    background: #f8fafc;
}

    .grade-scale-card.pristine {
        background: linear-gradient(135deg, #fff7ed, #fef3c7);
        border-color: #fcd34d;
    }

.grade-number {
    font-size: 62px;
    line-height: .9;
    font-weight: 1000;
    color: #a16207;
    text-align: center;
}

.grade-copy h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -.02em;
}

.grade-copy p {
    margin: 0;
    line-height: 1.65;
    color: var(--slate-600);
}

.grade-copy ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--slate-700);
    line-height: 1.6;
}

.grade-copy li {
    margin-bottom: 5px;
}

@media (max-width: 1000px) {
    .grade-explainer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .grade-explainer-grid {
        grid-template-columns: 1fr;
    }

    .grade-scale-card {
        grid-template-columns: 1fr;
    }

    .grade-number {
        text-align: left;
    }
}