.guide-page {
    background: #f5f7fb;
}

.guide-page [hidden] {
    display: none !important;
}

.guide-page main {
    overflow: clip;
}

.guide-page main a:focus-visible,
.guide-page button:focus-visible,
.guide-page summary:focus-visible {
    outline: 3px solid rgba(54, 81, 212, 0.32);
    outline-offset: 4px;
}

.guide-header .cta-button {
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
    line-height: 1.25;
}

.guide-hero {
    position: relative;
    padding: 122px 0 64px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(13, 128, 106, 0.07) 0, rgba(13, 128, 106, 0.07) 1px, transparent 1px, transparent 48px),
        linear-gradient(0deg, rgba(54, 81, 212, 0.06) 0, rgba(54, 81, 212, 0.06) 1px, transparent 1px, transparent 48px),
        linear-gradient(135deg, #f9fbff 0%, #edf7f4 100%);
}

.guide-hero::before,
.guide-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.guide-hero::before {
    width: 380px;
    height: 380px;
    top: -190px;
    right: -100px;
    background: rgba(54, 81, 212, 0.08);
}

.guide-hero::after {
    width: 260px;
    height: 260px;
    bottom: -180px;
    left: -80px;
    background: rgba(204, 68, 59, 0.08);
}

.guide-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.guide-kicker {
    margin-bottom: 0.7rem;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.guide-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.15rem, 4.8vw, 4rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.01;
    text-wrap: balance;
}

.guide-lead {
    max-width: 710px;
    margin-top: 1.35rem;
    color: #4c5869;
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.65;
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.guide-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border: 2px solid #bdc7d8;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.guide-secondary-link:hover {
    border-color: var(--blue);
    background: #fff;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.3rem;
    margin-top: 1.25rem;
    padding: 0;
    color: #445063;
    font-size: 0.9rem;
    list-style: none;
}

.guide-meta li {
    position: relative;
    padding-left: 1.15rem;
}

.guide-meta li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--teal);
}

.guide-hero-panel {
    position: relative;
    padding: 1.5rem;
    border: 1px solid rgba(36, 48, 65, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(36, 48, 65, 0.13);
}

.guide-panel-label {
    margin-bottom: 1rem;
    color: #4c5869;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-hero-panel ol {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    list-style: none;
}

.guide-hero-panel li {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    background: #f9fbfd;
}

.guide-hero-panel li > span {
    display: inline-grid;
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 50%;
    background: #e3f3ee;
    color: #09634f;
    font-size: 0.88rem;
    font-weight: 800;
}

.guide-hero-panel li div {
    min-width: 0;
}

.guide-hero-panel strong,
.guide-hero-panel small {
    display: block;
}

.guide-hero-panel strong {
    color: var(--ink);
    line-height: 1.35;
}

.guide-hero-panel small {
    margin-top: 0.1rem;
    color: #667184;
    font-size: 0.82rem;
}

.guide-hero-panel > p:last-child {
    margin: 1rem 0 0;
    color: #5b6575;
    font-size: 0.85rem;
    line-height: 1.5;
}

.guide-section,
.guide-reference,
.guide-faq {
    padding: clamp(4rem, 8vw, 6.4rem) 0;
}

.guide-section {
    background: #fff;
    scroll-margin-top: 76px;
}

.guide-narrow {
    max-width: 940px;
}

.guide-section-heading {
    max-width: 760px;
    margin: 0 auto 1.8rem;
    text-align: center;
}

.guide-section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.guide-section-heading > p:last-child {
    margin-top: 0.85rem;
    color: #5b6575;
    font-size: 1rem;
}

.guide-privacy {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    max-width: 780px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #b8ded5;
    border-radius: 14px;
    background: #f0faf7;
    color: #27463f;
}

.guide-privacy > span {
    display: inline-grid;
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.guide-privacy p {
    margin: 0;
    line-height: 1.5;
}

.guide-progress {
    max-width: 780px;
    margin: 0 auto 1rem;
}

.guide-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: #4d596a;
    font-size: 0.86rem;
    font-weight: 700;
}

.guide-progress-track {
    display: block;
    height: 0.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e9f1;
}

.guide-progress-track > span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    transition: width 180ms ease;
}

.guide-form {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(1.1rem, 3vw, 2rem);
    border: 1px solid #dfe5ef;
    border-radius: 20px;
    background: #f9fafc;
    box-shadow: 0 18px 45px rgba(36, 48, 65, 0.08);
}

.guide-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.guide-step + .guide-step {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid #dfe5ef;
}

.guide-step:focus {
    outline: none;
}

.guide-step legend {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 750;
    line-height: 1.25;
}

.guide-step legend span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--teal);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guide-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.guide-choice-grid-compact .guide-choice:last-child {
    grid-column: 1 / -1;
}

.guide-choice {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.guide-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.guide-choice-body {
    position: relative;
    display: block;
    height: 100%;
    min-height: 116px;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid #d9e0ea;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.guide-choice-body::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: 1rem;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid #8793a6;
    border-radius: 50%;
    background: #fff;
}

.guide-choice-body strong,
.guide-choice-body small {
    display: block;
}

.guide-choice-body strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

.guide-choice-body small {
    margin-top: 0.35rem;
    color: #5f6a7d;
    font-size: 0.83rem;
    line-height: 1.45;
}

.guide-choice input:checked + .guide-choice-body {
    border-color: var(--teal);
    background: #f0faf7;
    box-shadow: 0 8px 22px rgba(13, 128, 106, 0.11);
}

.guide-choice input:checked + .guide-choice-body::before {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: inset 0 0 0 4px #fff;
}

.guide-choice input:focus-visible + .guide-choice-body {
    outline: 3px solid rgba(54, 81, 212, 0.32);
    outline-offset: 3px;
}

.guide-controls {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dfe5ef;
}

.guide-button,
.guide-restart {
    min-height: 46px;
    border-radius: 999px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.guide-button {
    padding: 0.7rem 1.25rem;
    border: 2px solid transparent;
}

.guide-button-primary {
    margin-left: auto;
    background: var(--coral);
    color: #fff;
}

.guide-button-primary:hover:not(:disabled) {
    background: #b73830;
}

.guide-button-primary:disabled {
    background: #aab2be;
    color: #fff;
    cursor: not-allowed;
}

.guide-button-secondary {
    border-color: #b9c3d2;
    background: #fff;
    color: var(--ink);
}

.guide-button-secondary:hover:not(:disabled) {
    border-color: var(--blue);
}

.guide-button-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.guide-noscript {
    max-width: 780px;
    margin: 1rem auto 0;
    padding: 1rem;
    border: 1px solid #d9e0ea;
    border-radius: 12px;
    background: #fff9e9;
}

.guide-result {
    max-width: 780px;
    margin: 1.25rem auto 0;
    padding: clamp(1.2rem, 4vw, 2.25rem);
    border: 2px solid #9bd4c7;
    border-radius: 20px;
    background: linear-gradient(145deg, #f3fcf9, #fff);
    box-shadow: 0 22px 54px rgba(13, 128, 106, 0.13);
    scroll-margin-top: 90px;
}

.guide-result-label {
    margin-bottom: 0.35rem;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guide-result h2 {
    margin: 0;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.guide-result h2:focus {
    outline: none;
}

.guide-result-summary {
    margin-top: 0.7rem;
    color: #4e5a6b;
    font-size: 1rem;
    line-height: 1.65;
}

.guide-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 1rem;
    margin-top: 1.4rem;
}

.guide-result-checks,
.guide-result-warning {
    padding: 1.1rem;
    border-radius: 14px;
}

.guide-result-checks {
    border: 1px solid #cdd7e5;
    background: #fff;
}

.guide-result h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.guide-result-checks ol {
    display: grid;
    gap: 0.7rem;
    margin: 0.8rem 0 0;
    padding-left: 1.35rem;
    color: #4d596a;
}

.guide-result-checks li {
    padding-left: 0.2rem;
}

.guide-result-warning {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border: 1px solid #edc9a8;
    background: #fff8f0;
}

.guide-result-warning > span {
    display: inline-grid;
    flex: 0 0 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: #9a541c;
    color: #fff;
    font-weight: 850;
}

.guide-result-warning p {
    margin-top: 0.45rem;
    color: #70451f;
    font-size: 0.9rem;
    line-height: 1.55;
}

.guide-result-action {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1.1rem;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
}

.guide-result-action > div {
    min-width: 0;
}

.guide-result-action p {
    margin-top: 0.3rem;
    color: #d9e1ec;
    font-size: 0.88rem;
    line-height: 1.5;
}

.guide-result-action .cta-button {
    flex: 0 0 auto;
    max-width: 260px;
    text-align: center;
}

.guide-result-boundary {
    margin: 0.75rem 0 0;
    color: #647084;
    font-size: 0.8rem;
    line-height: 1.5;
}

.guide-restart {
    margin-top: 1rem;
    padding: 0.55rem 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-reference {
    background: #f5f7fb;
    scroll-margin-top: 76px;
}

.guide-reference-heading {
    max-width: 840px;
}

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

.guide-reference-card {
    position: relative;
    min-width: 0;
    padding: 1.3rem;
    border: 1px solid #dce3ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(36, 48, 65, 0.06);
}

.guide-card-number {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.85rem;
    place-items: center;
    border-radius: 8px;
    background: #e6f4f0;
    color: #09634f;
    font-size: 0.75rem;
    font-weight: 850;
}

.guide-reference-card h3 {
    min-height: 2.7em;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.guide-reference-card p {
    margin-top: 0.75rem;
    color: #556174;
    font-size: 0.88rem;
    line-height: 1.55;
}

.guide-reference-card p strong {
    color: var(--ink);
}

.guide-reference-card .guide-card-caution {
    padding-top: 0.75rem;
    border-top: 1px solid #e4e8ef;
    color: #70451f;
}

.guide-faq {
    background: #fff;
}

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

.guide-faq-list details {
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 14px;
    background: #fbfcfe;
}

.guide-faq-list summary {
    position: relative;
    padding: 1rem 3rem 1rem 1.1rem;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.guide-faq-list summary::-webkit-details-marker {
    display: none;
}

.guide-faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.1rem;
    color: var(--teal);
    font-size: 1.45rem;
    font-weight: 500;
    transform: translateY(-50%);
}

.guide-faq-list details[open] summary::after {
    content: "−";
}

.guide-faq-list details p {
    margin: 0;
    padding: 0 1.1rem 1.1rem;
    color: #566276;
    line-height: 1.65;
}

.guide-final-cta {
    padding: 3rem 0;
    background: #eaf3ff;
}

.guide-final-cta-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.guide-final-cta h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.15;
}

.guide-final-cta p:not(.guide-kicker) {
    max-width: 700px;
    margin-top: 0.65rem;
    color: #516074;
}

.guide-final-cta-action {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
    max-width: 270px;
    text-align: center;
}

.guide-final-cta-action small {
    color: #536074;
    font-size: 0.75rem;
    line-height: 1.4;
}

.guide-footer p + p {
    margin-top: 0.4rem;
    color: #d3dbe7;
    font-size: 0.84rem;
}

@media (hover: hover) {
    .guide-choice:hover .guide-choice-body {
        border-color: #9aa8ba;
        transform: translateY(-1px);
    }
}

@media (max-width: 980px) {
    .guide-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .guide-hero-panel {
        max-width: 680px;
    }

    .guide-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-reference-card h3 {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .guide-hero {
        padding: 94px 0 44px;
    }

    .guide-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .guide-choice-grid,
    .guide-result-grid,
    .guide-reference-grid {
        grid-template-columns: 1fr;
    }

    .guide-choice-grid-compact .guide-choice:last-child {
        grid-column: auto;
    }

    .guide-choice-body {
        min-height: auto;
    }

    .guide-result-action,
    .guide-final-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .guide-result-action .cta-button,
    .guide-final-cta-action {
        width: 100%;
        max-width: none;
    }

    .guide-final-cta-action {
        align-self: stretch;
    }
}

@media (max-width: 520px) {
    .guide-header .logo-img {
        height: 37px;
    }

    .guide-header .cta-button {
        padding: 0.55rem 0.72rem;
        font-size: 0.8rem;
    }

    .guide-hero {
        padding-top: 88px;
    }

    .guide-actions,
    .guide-actions .cta-button,
    .guide-secondary-link {
        width: 100%;
    }

    .guide-actions .cta-button {
        text-align: center;
    }

    .guide-meta {
        display: grid;
        gap: 0.45rem;
    }

    .guide-hero-panel,
    .guide-form,
    .guide-result {
        border-radius: 16px;
    }

    .guide-form {
        padding: 1rem;
    }

    .guide-choice-body {
        padding: 0.9rem 0.9rem 0.9rem 2.85rem;
    }

    .guide-choice-body::before {
        top: 0.92rem;
        left: 0.85rem;
    }

    .guide-controls {
        flex-direction: column-reverse;
    }

    .guide-button {
        width: 100%;
    }

    .guide-button-primary {
        margin-left: 0;
    }

    .guide-result-action .cta-button {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-page *,
    .guide-page *::before,
    .guide-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
