:root {
    --guide-red: #c8102e;
    --guide-red-dark: #9f1239;
    --guide-navy: #102b78;
    --guide-gold: #f7b718;
    --guide-ink: #101942;
    --guide-muted: #667085;
    --guide-line: rgba(16, 25, 66, 0.12);
    --guide-soft: #fff7f8;
    --guide-shell: min(calc(100% - clamp(1rem, 4vw, 5rem)), 94rem);
}

body.app-install-guide-page {
    margin: 0;
    color: var(--guide-ink);
    background: #ffffff;
    font-family: "Google Sans Flex", "Inter", "Segoe UI", Arial, sans-serif;
}

.install-guide-main {
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #fff7f8 100%);
}

.install-guide-container {
    width: var(--guide-shell);
    margin-inline: auto;
}

.install-guide-hero {
    position: relative;
    isolation: isolate;
    background: var(--guide-red);
    color: #ffffff;
}

.install-guide-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.install-guide-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(19rem, 0.72fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: clamp(31rem, 58vw, 42rem);
    padding: clamp(3rem, 6vw, 6.5rem) 0;
}

.install-guide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    color: #ffd4da;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.install-guide-eyebrow svg {
    width: 1.05rem;
    height: 1.05rem;
}

.install-guide-hero h1 {
    max-width: 14ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.55rem, 7vw, 5.65rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
}

.install-guide-hero__lead {
    max-width: 42rem;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    font-weight: 720;
    line-height: 1.65;
}

.install-guide-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.install-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.15rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 950;
    line-height: 1.1;
    text-decoration: none;
}

.install-guide-button svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.install-guide-button--light {
    background: #ffffff;
    color: var(--guide-red);
    box-shadow: 0 18px 36px rgba(76, 4, 20, 0.18);
}

.install-guide-button--outline {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.install-guide-button--primary {
    background: var(--guide-red);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(200, 16, 46, 0.18);
}

.install-guide-hero__media {
    justify-self: center;
    width: min(100%, 30rem);
    margin: 0;
}

.install-guide-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 26px 46px rgba(76, 4, 20, 0.24));
}

.install-guide-quick {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    border-bottom: 1px solid var(--guide-line);
    background: #ffffff;
}

.install-guide-quick__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.install-guide-quick__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--guide-line);
    border-radius: 8px;
    background: #ffffff;
}

.install-guide-quick__item span {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--guide-red);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 950;
}

.install-guide-quick__item strong {
    display: block;
    color: var(--guide-ink);
    font-size: 0.96rem;
    font-weight: 950;
    line-height: 1.3;
}

.install-guide-quick__item p {
    margin: 0.28rem 0 0;
    color: var(--guide-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

.install-guide-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.install-guide-section--soft {
    background: var(--guide-soft);
}

.install-guide-section__head {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 3.5rem);
    align-items: end;
    margin-bottom: clamp(1.5rem, 3.2vw, 2.8rem);
}

.install-guide-kicker {
    display: inline-flex;
    margin: 0 0 0.55rem;
    color: var(--guide-red);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.install-guide-section__head h2 {
    margin: 0;
    color: var(--guide-ink);
    font-size: clamp(1.85rem, 4vw, 3.1rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
}

.install-guide-section__head p {
    margin: 0;
    color: var(--guide-muted);
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    font-weight: 700;
    line-height: 1.65;
}

.install-guide-steps {
    display: grid;
    gap: 1rem;
}

.install-guide-step {
    display: grid;
    grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1rem, 2.4vw, 1.4rem);
    border: 1px solid var(--guide-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(16, 25, 66, 0.08);
}

.install-guide-step__image {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.install-guide-step__image img {
    display: block;
    width: 100%;
    height: auto;
}

.install-guide-step__copy {
    min-width: 0;
}

.install-guide-step__copy span {
    display: inline-flex;
    margin-bottom: 0.6rem;
    color: var(--guide-red);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.install-guide-step__copy h3 {
    margin: 0;
    color: var(--guide-ink);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 950;
    line-height: 1.15;
}

.install-guide-step__copy p {
    margin: 0.7rem 0 0;
    color: var(--guide-muted);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.68;
}

.install-guide-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.install-guide-note {
    padding: 1.15rem;
    border: 1px solid var(--guide-line);
    border-radius: 8px;
    background: #ffffff;
}

.install-guide-note svg {
    width: 2rem;
    height: 2rem;
    color: var(--guide-red);
}

.install-guide-note strong {
    display: block;
    margin-top: 0.8rem;
    color: var(--guide-ink);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.3;
}

.install-guide-note p {
    margin: 0.45rem 0 0;
    color: var(--guide-muted);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.6;
}

.install-guide-faq {
    display: grid;
    gap: 0.7rem;
}

.install-guide-faq details {
    border: 1px solid var(--guide-line);
    border-radius: 8px;
    background: #ffffff;
}

.install-guide-faq summary {
    cursor: pointer;
    padding: 1rem 1.1rem;
    color: var(--guide-ink);
    font-weight: 950;
    line-height: 1.4;
}

.install-guide-faq p {
    margin: 0;
    padding: 0 1.1rem 1.1rem;
    color: var(--guide-muted);
    font-weight: 700;
    line-height: 1.65;
}

.install-guide-final {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon copy"
        "icon actions";
    gap: clamp(1rem, 2.5vw, 1.6rem);
    align-items: center;
    overflow: hidden;
    max-width: 64rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2.15rem);
    border: 1px solid rgba(200, 16, 46, 0.2);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(200, 16, 46, 0.12);
}

.install-guide-final::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--guide-red), var(--guide-gold), var(--guide-navy));
}

.install-guide-final__icon {
    grid-area: icon;
    display: inline-grid;
    place-items: center;
    width: clamp(3.25rem, 7vw, 4.25rem);
    height: clamp(3.25rem, 7vw, 4.25rem);
    border-radius: 8px;
    background: #fff1f2;
    color: var(--guide-red);
}

.install-guide-final__icon svg {
    width: 58%;
    height: 58%;
}

.install-guide-final__copy {
    grid-area: copy;
    min-width: 0;
}

.install-guide-final__eyebrow {
    display: inline-flex;
    margin: 0 0 0.45rem;
    color: var(--guide-red);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.install-guide-final h2 {
    margin: 0;
    color: var(--guide-ink);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 950;
    line-height: 1.12;
}

.install-guide-final__copy > p:not(.install-guide-final__eyebrow) {
    margin: 0.5rem 0 0;
    color: var(--guide-muted);
    font-weight: 720;
    line-height: 1.6;
}

.install-guide-final__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.95rem;
}

.install-guide-final__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(16, 43, 120, 0.12);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--guide-ink);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.2;
}

.install-guide-final__actions {
    grid-area: actions;
    display: grid;
    justify-items: start;
    gap: 0.55rem;
    width: min(100%, 16.5rem);
}

.install-guide-install-button {
    width: 100%;
    min-height: 3.55rem;
    padding-inline: 1.3rem;
    border: 0;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(200, 16, 46, 0.22);
}

.install-guide-install-button:hover {
    background: var(--guide-red-dark);
}

.install-guide-install-button.is-loading {
    cursor: progress;
    opacity: 0.82;
}

.install-guide-final__hint {
    color: var(--guide-muted);
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.35;
    text-align: left;
}

@media (max-width: 980px) {
    .install-guide-hero__inner,
    .install-guide-section__head,
    .install-guide-step,
    .install-guide-final {
        grid-template-columns: 1fr;
    }

    .install-guide-final {
        grid-template-areas:
            "icon"
            "copy"
            "actions";
    }

    .install-guide-hero__inner {
        min-height: 0;
    }

    .install-guide-hero__media {
        width: min(100%, 24rem);
    }

    .install-guide-quick__grid,
    .install-guide-note-grid {
        grid-template-columns: 1fr;
    }

    .install-guide-final__actions,
    .install-guide-final .install-guide-button {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .install-guide-hero__inner {
        padding: 2.4rem 0 3rem;
    }

    .install-guide-hero h1 {
        font-size: clamp(2.35rem, 14vw, 3.4rem);
    }

    .install-guide-hero__actions,
    .install-guide-button {
        width: 100%;
    }

    .install-guide-step {
        padding: 0.8rem;
    }

    .install-guide-step__copy {
        padding: 0.2rem 0.1rem 0.35rem;
    }

    .install-guide-final {
        grid-template-columns: 1fr;
    }

    .install-guide-final__actions,
    .install-guide-install-button {
        width: 100%;
    }
}
