/* Guide pages extend, rather than replace, the original Capybara visual system. */

.guide-page {
    background: var(--bg);
}

.seo-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(95deg, var(--neon-orange), var(--neon-pink), var(--neon-purple));
    font-weight: 800;
    transform: translateY(-180%);
    transition: transform .2s ease;
}

.seo-skip-link:focus {
    transform: translateY(0);
}

.guide-page :focus-visible {
    outline: 3px solid var(--neon-purple);
    outline-offset: 4px;
}

.guide-page header {
    background: rgba(248, 246, 255, .94);
}

.guide-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 84px;
    color: #fff;
    background:
        radial-gradient(ellipse 55% 80% at 8% 50%, rgba(74, 184, 255, .5), transparent 60%),
        radial-gradient(ellipse 55% 80% at 92% 50%, rgba(255, 138, 75, .5), transparent 60%),
        radial-gradient(ellipse 24% 40% at 50% 55%, rgba(255, 93, 208, .22), transparent 70%),
        linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-2) 55%, var(--hero-bg-3));
}

.guide-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .55;
    background-image:
        radial-gradient(1px 1px at 12% 22%, #fff 55%, transparent 60%),
        radial-gradient(1px 1px at 32% 70%, #fff 55%, transparent 60%),
        radial-gradient(1px 1px at 58% 28%, #fff 55%, transparent 60%),
        radial-gradient(1px 1px at 84% 68%, #fff 55%, transparent 60%);
    pointer-events: none;
}

.guide-hero .container {
    position: relative;
    z-index: 1;
}

.guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .6);
    font-size: .76rem;
    font-weight: 700;
}

.guide-breadcrumb a:hover {
    color: #fff;
}

.guide-hero .eyebrow {
    color: var(--neon-hotpink);
}

.guide-hero h1 {
    max-width: 950px;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(2.6rem, 5.6vw, 5rem);
}

.guide-hero .container > .lead {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1.08rem;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.guide-meta span,
.guide-meta time {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .06);
    font-size: .7rem;
    font-weight: 700;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
    justify-content: space-between;
    align-items: start;
    gap: 70px;
    padding-top: 76px;
    padding-bottom: 100px;
}

.guide-article {
    min-width: 0;
}

.guide-article > p:first-of-type {
    color: var(--ink-soft);
    font-size: 1.12rem;
    line-height: 1.8;
}

.guide-article h2 {
    margin: 58px 0 18px;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.guide-article h3 {
    margin: 34px 0 12px;
}

.guide-article p,
.guide-article li {
    color: var(--ink-soft);
}

.guide-article li {
    margin-bottom: 9px;
}

.guide-article a:not(.store-badge) {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(176, 97, 255, .28);
    text-underline-offset: 3px;
}

.quick-answer {
    padding: 30px 34px;
    margin-bottom: 44px;
    border: 1px solid rgba(176, 97, 255, .2);
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(74, 184, 255, .08), rgba(255, 93, 208, .08));
    box-shadow: 0 14px 30px rgba(26, 20, 36, .06);
}

.quick-answer::before {
    content: "Quick answer";
    display: block;
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.quick-answer h2,
.quick-answer h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.quick-answer p:last-child {
    margin-bottom: 0;
}

.guide-steps {
    padding: 0;
    margin: 30px 0;
    list-style: none;
    counter-reset: guide-step;
}

.guide-steps > li {
    position: relative;
    padding: 0 0 28px 66px;
    counter-increment: guide-step;
}

.guide-steps > li::before {
    content: counter(guide-step);
    position: absolute;
    top: -2px;
    left: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(140deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 9px 22px rgba(176, 97, 255, .24);
    font-family: var(--display-font);
    font-weight: 700;
}

.guide-steps h3 {
    margin: 0 0 7px;
}

.guide-app-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 38px;
    margin: 52px 0;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(ellipse 50% 75% at 5% 50%, rgba(74, 184, 255, .42), transparent 62%),
        radial-gradient(ellipse 50% 75% at 95% 50%, rgba(255, 138, 75, .42), transparent 62%),
        linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-3));
    box-shadow: 0 24px 60px rgba(26, 20, 36, .22);
}

.guide-app-card > img {
    width: 96px;
    height: 96px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, .26);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(8, 5, 30, .45), 0 0 28px rgba(255, 154, 77, .38);
}

.guide-app-card h2,
.guide-app-card h3,
.guide-cta h2,
.guide-cta h3 {
    margin: 0 0 14px;
    color: #fff;
}

.guide-app-card p,
.guide-app-card li,
.guide-cta p {
    color: rgba(255, 255, 255, .76);
}

.guide-app-card a:not(.store-badge),
.guide-cta a:not(.store-badge) {
    color: #fff;
}

.guide-app-card p:last-of-type {
    margin-bottom: 8px;
}

.guide-cta {
    padding: 0 0 100px;
    background: var(--bg);
}

.guide-cta > .container {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(ellipse 50% 75% at 5% 50%, rgba(74, 184, 255, .42), transparent 62%),
        radial-gradient(ellipse 50% 75% at 95% 50%, rgba(255, 138, 75, .42), transparent 62%),
        linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-3));
    box-shadow: 0 24px 60px rgba(26, 20, 36, .22);
}

.guide-cta img,
.guide-cta .final-icon {
    width: 96px;
    height: 96px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, .26);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(8, 5, 30, .45), 0 0 28px rgba(255, 154, 77, .38);
}

.guide-cta .eyebrow {
    margin-bottom: 8px;
}

.guide-cta h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}

.guide-cta p {
    margin: 0;
}

.guide-cta .nav-cta {
    white-space: nowrap;
}

.guide-sidebar {
    position: sticky;
    top: 104px;
}

.guide-sidebar > div {
    padding: 24px;
    border: 1px solid var(--hairline);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 30px rgba(26, 20, 36, .07);
}

.guide-sidebar h2,
.guide-sidebar h3 {
    margin-bottom: 12px;
    font-size: 1.12rem;
}

.guide-sidebar a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.guide-sidebar a:last-child {
    border-bottom: 0;
}

.guide-sidebar a:hover {
    color: var(--accent-strong);
}

.guide-sidebar dl {
    margin: 0;
}

.guide-sidebar dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
}

.guide-sidebar dl > div:last-child {
    border-bottom: 0;
}

.guide-sidebar dt {
    color: var(--ink);
    font-size: .8rem;
    font-weight: 800;
}

.guide-sidebar dd {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    text-align: right;
}

.guide-related {
    margin-top: 66px;
    padding-top: 40px;
    border-top: 1px solid var(--hairline-strong);
}

.guide-related h2 {
    margin-top: 0;
}

.guide-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.guide-related-grid a {
    display: flex;
    flex-direction: column;
    min-height: 145px;
    padding: 22px;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    color: var(--ink) !important;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(26, 20, 36, .05);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.guide-related-grid a:hover {
    border-color: rgba(176, 97, 255, .28);
    box-shadow: 0 16px 34px rgba(26, 20, 36, .1);
    transform: translateY(-4px);
}

.guide-related-grid a span {
    margin-top: auto;
    color: var(--accent-strong);
    font-size: .75rem;
}

@media (max-width: 860px) {
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .guide-sidebar {
        position: static;
    }

    .guide-cta > .container {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .guide-cta .nav-cta {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .guide-hero {
        padding: 54px 0 64px;
    }

    .guide-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .guide-layout {
        padding-top: 54px;
        padding-bottom: 76px;
    }

    .quick-answer,
    .guide-app-card {
        padding: 26px;
    }

    .guide-app-card {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .guide-app-card > img {
        width: 72px;
        height: 72px;
        margin-inline: auto;
        border-radius: 18px;
    }

    .guide-cta {
        padding-bottom: 76px;
    }

    .guide-cta > .container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-inline: 20px;
        padding: 30px 26px;
        text-align: center;
    }

    .guide-cta img,
    .guide-cta .final-icon {
        width: 82px;
        height: 82px;
        margin-inline: auto;
        border-radius: 21px;
    }

    .guide-cta .nav-cta {
        grid-column: 1;
        justify-self: center;
        white-space: normal;
    }

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