/* Shared close: homepage and both standalone demos. */
.close {
    background: var(--bg-color);
    color: var(--text-main);
    text-align: center;
    margin-inline: calc(50% - 50vw);
    padding: clamp(88px, 8vw, 112px) 24px clamp(64px, 7vw, 88px);
}

.close-wrap {
    max-width: 64rem;
    margin-inline: auto;
    min-width: 0;
}

.close-head-block {
    max-width: 52rem;
    margin: 0 auto 32px;
}

.close-head {
    margin: 0;
    font-size: clamp(1.7rem, 4.2vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.12;
    text-wrap: balance;
}
.close-head em { font-style: normal; color: #6F6757; }

.close-sub {
    max-width: 48ch;
    margin: 20px auto 0;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: #5C5347;
    text-wrap: pretty;
}

/* One offer, two charges. Supporting text uses the darker brand bronze. */
.close-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 32px) 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #F4F2EA;
}
.close-grid > div { min-width: 0; padding: 4px 12px; }
.close-grid > div + div { border-left: 1px solid var(--border); }

.close-kicker {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.6;
    text-transform: uppercase;
    color: #5C5347;
}

.close-figure {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 4px;
    line-height: 1.15;
}
.close-figure b {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}
.close-figure span { font-size: 12px; color: #5C5347; }

.close-note {
    max-width: 54ch;
    margin-inline: auto;
    font-size: 14px;
    line-height: 1.65;
    color: #5C5347;
    text-wrap: pretty;
}
.close-grid .close-note { font-size: 14px; }

.close-next { max-width: 54rem; margin: 32px auto 0; }
.close-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0 auto 30px;
    padding: 0;
}
.close-steps li { min-width: 0; }
.close-steps h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.5;
}
.close-steps p {
    max-width: 24ch;
    margin-inline: auto;
    font-size: 14px;
    line-height: 1.65;
    color: #5C5347;
    text-wrap: pretty;
}

.close-rule {
    width: min(100%, 24rem);
    height: 1px;
    margin-inline: auto;
    background: var(--border);
}

.close-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 12px 14px 12px 26px;
    border: 1px solid var(--text-main);
    border-radius: 9999px;
    background: var(--text-main);
    color: var(--bg-color);
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1),
                box-shadow 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.close-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(139, 126, 102, 0.55); }
.close-cta:active { transform: scale(0.98); }
.close-cta:focus-visible { outline: 2px solid #5C5347; outline-offset: 5px; }
.close-cta-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: rgba(249, 248, 244, 0.12);
    font-size: 14px;
    transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1);
}
.close-cta:hover .close-cta-icon { transform: translateX(2px); }

/* Standalone demos retain their inline calendars and selected-slot colors. */
.close .cal {
    text-align: left;
    border: 1px solid var(--border);
    box-shadow: none;
}

@media (max-width: 767px) {
    .close-steps { grid-template-columns: 1fr; gap: 20px; }
    .close-steps p { max-width: 34ch; }
}

@media (max-width: 639px) {
    .close { padding-inline: 16px; }
}

@media (max-width: 479px) {
    .close-grid { grid-template-columns: 1fr; padding: 22px; }
    .close-grid > div { padding: 0; }
    .close-grid > div + div {
        margin-top: 20px;
        padding-top: 20px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (prefers-reduced-motion: reduce) {
    .close-cta, .close-cta-icon { transition: none; }
    .close-cta:hover, .close-cta:active, .close-cta:hover .close-cta-icon { transform: none; }
    .close .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
