/* Adah landing final polish */

/* Global landing rhythm */
.app-public-main {
    background: linear-gradient(180deg, var(--adah-surface) 0%, rgba(var(--adah-natural-rgb),.96) 100%);
}

.app-public-main > section {
    position: relative;
}

.adah-phase1-hero,
.adah-story-section,
.adah-usecase-section,
.adah-support-section {
    scroll-margin-top: 7rem;
}

.adah-story-section,
.adah-usecase-section,
.adah-support-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.adah-story-section::before,
.adah-usecase-section::before,
.adah-support-section::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--adah-tertiary-rgb),.06), transparent);
    pointer-events: none;
}

/* Make transitions between sections softer */
.adah-story-section + .adah-usecase-section,
.adah-usecase-section + .adah-support-section {
    margin-top: -1.25rem;
}

/* Headings and text rhythm */
.adah-story-heading h2,
.adah-usecase-title,
.adah-support-heading h2,
.adah-support-final h2 {
    letter-spacing: -0.015em;
}

.adah-story-heading p,
.adah-usecase-subtitle,
.adah-support-heading p,
.adah-support-final p,
.adah-story-step p,
.adah-usecase-panel p,
.adah-support-template-card p,
.adah-support-mini-card p,
.adah-support-faq-item p {
    text-wrap: pretty;
}

/* Surface consistency */
.adah-story-step,
.adah-usecase-panel,
.adah-support-template-card,
.adah-support-price-card,
.adah-support-mini-card,
.adah-support-faq-item,
.adah-support-final,
.adah-support-qr-panel {
    backdrop-filter: blur(10px);
}

/* Hover polish */
.adah-support-template-card,
.adah-support-price-card,
.adah-usecase-tab,
.adah-story-step {
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        background .28s ease,
        color .28s ease;
}

.adah-support-template-card:hover,
.adah-support-price-card:hover,
.adah-story-step:hover {
    transform: translateY(-3px);
}

.adah-usecase-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--adah-primary-rgb),.18);
}

/* FAQ polish */
.adah-support-faq-item {
    overflow: hidden;
}

.adah-support-faq-item summary {
    position: relative;
    padding-inline-end: 2rem;
}

.adah-support-faq-item summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    color: var(--app-primary);
    font-weight: var(--app-fw-bold);
    transition: transform .25s ease;
}

.adah-support-faq-item[open] summary::after {
    transform: rotate(45deg);
}

/* Stronger premium contrast for featured pieces */
.adah-support-template-card--featured,
.adah-support-price-card--featured,
.adah-story-step.is-active,
.adah-usecase-tab.is-active {
    box-shadow: 0 20px 40px rgba(var(--adah-primary-rgb),.10);
}

/* Section-specific spacing balance */
.adah-support-block--templates,
.adah-support-block--qr,
.adah-support-block--pricing,
.adah-support-block--faq {
    margin-bottom: 4rem;
}

.adah-support-block--final-cta {
    margin-bottom: 0;
}

/* Buttons feel more consistent across page */
.adah-phase1-btn-primary,
.adah-phase1-btn-secondary {
    box-shadow: 0 14px 28px rgba(var(--adah-tertiary-rgb),.08);
}

.adah-phase1-btn-primary:hover,
.adah-phase1-btn-secondary:hover {
    box-shadow: 0 18px 34px rgba(var(--adah-tertiary-rgb),.10);
}

/* Better mobile tone */
@media (max-width: 991.98px) {
    .adah-story-section,
    .adah-usecase-section,
    .adah-support-section {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .adah-story-section + .adah-usecase-section,
    .adah-usecase-section + .adah-support-section {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .app-public-main {
        padding-top: 0;
    }

    .adah-story-heading,
    .adah-support-heading,
    .adah-usecase-copy {
        text-align: start;
    }

    .adah-support-template-card:hover,
    .adah-support-price-card:hover,
    .adah-story-step:hover,
    .adah-usecase-tab:hover {
        transform: none;
    }
}

/* Reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .adah-support-template-card,
    .adah-support-price-card,
    .adah-usecase-tab,
    .adah-story-step,
    .adah-support-faq-item summary::after {
        transition: none !important;
    }
}
