:root {
    --black: #191919;
    --dark-gray: #5a5a5a;
    --gray: #e1e1e1;
    --light-gray: #f5f5f5;
    --blue: #0f91f0;
    --dark-purple: #8c1ea0;
    --purple: #b928d7;
    --light-purple: #f7e8fb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--black);
    background: var(--white);
    font-family: "Segoe UI", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.container {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 0.125rem 0.5rem rgb(0 0 0 / 6%);
}

.header-content,
.footer-content {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--black);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.product-label,
.step-count {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    color: var(--dark-purple);
    background: var(--light-purple);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

main {
    flex: 1;
}

.hero {
    padding-block: clamp(4rem, 9vw, 7.5rem);
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--dark-purple);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    letter-spacing: -0.04em;
}

h1 {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    line-height: 1.05;
}

.lead {
    max-width: 720px;
    margin: 1.5rem auto 0;
    color: var(--dark-gray);
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    line-height: 1.7;
}

.server-status {
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--gray);
    border-radius: 999px;
    color: var(--dark-gray);
    background: var(--white);
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 5%);
    font-size: 0.88rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #14782d;
    box-shadow: 0 0 0 4px #e4f4e8;
}

.divider {
    width: 1px;
    height: 1rem;
    background: var(--gray);
}

.instructions-section {
    padding-block: clamp(3rem, 7vw, 6rem);
    background: var(--light-gray);
}

.installation-card {
    max-width: 840px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid var(--gray);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 1rem 3rem rgb(25 25 25 / 8%);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.15;
}

.steps {
    margin: 0;
    padding: 2.25rem 0;
    display: grid;
    gap: 2rem;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1.1rem;
    align-items: start;
}

.step-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--dark-purple);
    font-weight: 800;
}

h3 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.steps p,
.help-note p {
    margin-bottom: 0;
    color: var(--dark-gray);
    line-height: 1.65;
}

code {
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    display: block;
    border: 1px solid var(--gray);
    border-radius: 0.4rem;
    color: var(--dark-purple);
    background: var(--light-gray);
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.95rem;
}

.consent-link {
    width: fit-content;
    margin-top: 0.85rem;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    border-radius: 0.4rem;
    color: var(--white);
    background: var(--dark-purple);
    font-weight: 700;
    text-decoration: none;
}

.consent-link:hover,
.consent-link:focus-visible {
    background: #6f167f;
}

.consent-result-main {
    display: grid;
    place-items: center;
    padding-block: clamp(3rem, 9vw, 7rem);
    background: var(--light-gray);
}

.consent-result-card {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(2rem, 7vw, 4.5rem);
    border: 1px solid var(--gray);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 1rem 3rem rgb(25 25 25 / 8%);
    text-align: center;
}

.consent-result-card h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.consent-result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
}

.consent-result-card.success .consent-result-icon {
    color: #14782d;
    background: #e4f4e8;
}

.consent-result-card.success .consent-result-icon::before {
    content: "\2713";
}

.consent-result-card.error .consent-result-icon {
    color: #a51d2d;
    background: #fbe7e9;
}

.consent-result-card.error .consent-result-icon::before {
    content: "!";
}

.consent-result-card.pending .consent-result-icon {
    color: #0a6eb4;
    background: #eef7fe;
}

.consent-result-card.pending .consent-result-icon::before {
    content: "i";
}

.consent-result-card .consent-link {
    margin-top: 1.5rem;
}

.help-note {
    padding: 1rem 1.15rem;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.8rem;
    align-items: start;
    border-left: 4px solid var(--blue);
    border-radius: 0.35rem;
    background: #eef7fe;
}

.help-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #0a6eb4;
    font-weight: 800;
}

footer {
    border-top: 1px solid var(--gray);
    color: var(--dark-gray);
    background: var(--white);
    font-size: 0.85rem;
}

@media (max-width: 560px) {
    .product-label,
    .step-count {
        display: none;
    }

    .server-status {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 0.75rem;
    }

    .card-heading {
        display: block;
    }

    .steps li {
        grid-template-columns: 38px 1fr;
        gap: 0.85rem;
    }

    .step-number {
        width: 38px;
        height: 38px;
    }

    .footer-content {
        min-height: 84px;
        flex-direction: column;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
