/*
Homepage styles
*/

/* =========================
   BASE SECTIONS
========================= */

.homepage-hero {
    padding: 3.5rem 0 2.5rem;
}

.homepage-benefits,
.homepage-how-it-works,
.homepage-report-preview,
.homepage-pricing,
.homepage-faq,
.homepage-final-cta {
    padding: 4.5rem 0;
}

/* =========================
   HERO
========================= */

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 540px);
    gap: 3rem;
    align-items: start;
}

.homepage-hero__content {
    max-width: 620px;
    padding-top: 1.25rem;
}

.homepage-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 4.5vw, 4.3rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    max-width: 9ch;
}

.homepage-hero__description,
.section-subtitle {
    color: var(--text-secondary);
    max-width: 62ch;
    margin: 0 auto;
    text-align: center;
}

.homepage-hero__description {
    text-align: left;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    max-width: 56ch;
}

.homepage-hero__actions,
.final-cta-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-trustbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-trustbar span {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-stat {
    padding: 1rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hero-stat span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================
   HERO MEDIA CLOUD
========================= */

.hero-media.card,
.hero-media {
    position: relative;
    isolation: isolate;
    justify-self: end;
    width: 100%;
    max-width: 540px;
    height: 460px !important;
    min-height: 460px !important;
    max-height: 460px !important;
    margin-top: 65px;
    padding: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    overflow: hidden !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 44% 56% 47% 53% / 42% 48% 52% 58% !important;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.70) 32%, rgba(255,255,255,0) 62%),
        radial-gradient(circle at 78% 18%, rgba(224,242,254,0.82) 0%, rgba(224,242,254,0.46) 34%, rgba(224,242,254,0) 66%),
        radial-gradient(circle at 76% 78%, rgba(204,251,241,0.72) 0%, rgba(204,251,241,0.38) 36%, rgba(204,251,241,0) 70%),
        radial-gradient(circle at 24% 78%, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.58) 38%, rgba(255,255,255,0) 72%),
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(224,242,254,0.42), rgba(204,251,241,0.36));
    filter: blur(16px);
    transform: scale(1.03);
}

.hero-media-column {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.1rem;
    align-content: start;
}

.hero-media-column--up {
    animation: heroColumnUp 28s linear infinite;
}

.hero-media-column--down {
    animation: heroColumnDown 28s linear infinite;
}

.hero-media-tile {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    box-shadow: 0 14px 36px rgba(15,23,42,0.08);
    border: 1px solid rgba(255,255,255,0.72);
    min-height: 180px;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.hero-media-tile.is-transitioning {
    opacity: 0.35;
    transform: scale(0.985);
}

.hero-media-tile--tall {
    min-height: 310px;
}

.hero-media-tile--medium {
    min-height: 250px;
}

.hero-media-tile--small {
    min-height: 200px;
}

.hero-media-tile__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.hero-media-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(15,23,42,0.04) 100%);
    pointer-events: none;
}

@keyframes heroColumnUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@keyframes heroColumnDown {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(0);
    }
}

/* =========================
   COMMON SECTIONS
========================= */

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header--wide {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

.benefits-grid,
.steps-grid,
.pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card,
.step-card,
.pricing-card,
.final-cta-card,
.report-preview__mockup,
.services-strip,
.metric-box,
.faq-item {
    padding: 1.5rem;
}

.benefit-card__icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14,165,233,0.14), rgba(20,184,166,0.12));
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 999px;
    background: rgba(14,165,233,0.08);
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 1rem;
}

/* =========================
   SERVICES
========================= */

.services-strip {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.services-strip__content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.services-strip__content p {
    margin: 0;
    color: var(--text-secondary);
}

.services-strip__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 700;
}

.service-pill strong {
    color: var(--accent);
}

/* =========================
   REPORT PREVIEW
========================= */

.report-preview {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: 0.95fr 1.05fr;
}

.report-preview__features {
    margin: 1.25rem 0 1.5rem;
    padding-left: 1.15rem;
    color: var(--text-secondary);
}

.report-preview__metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-box strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.metric-box span {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.mockup-score {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================
   PRICING
========================= */

.pricing-grid--two,
.pricing-grid--three {
    display: grid;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.pricing-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
}

.pricing-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(14,165,233,0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card__header h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.pricing-card__price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-card__price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-card__lead {
    color: var(--text-secondary);
    margin-top: 0;
}

.pricing-card__features {
    margin: 1.25rem 0 1.5rem;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

.pricing-card__note {
    margin: 0.85rem 0 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.pricing-card--featured {
    transform: none;
    border-color: rgba(14,165,233,0.34);
    box-shadow: var(--shadow-lg);
}

/* =========================
   FAQ
========================= */

.faq-list--single {
    display: grid;
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto;
}

.faq-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
}

.faq-item__number {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14,165,233,0.08);
    color: var(--accent);
    font-weight: 800;
}

.faq-item__body h3 {
    margin: 0 0 0.35rem;
}

.faq-item__body p {
    margin: 0;
    color: var(--text-secondary);
}

/* =========================
   FINAL CTA
========================= */

.final-cta-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #0f172a, #10213c 52%, #0ea5e9);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.final-cta-card h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.final-cta-card p {
    max-width: 60ch;
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,0.82);
}

.final-cta-card__actions {
    justify-content: center;
}

/* =========================
   HOMEPAGE MODES
========================= */

.homepage-modes {
    padding: 2.5rem 0 3rem;
}

.homepage-modes .section-header {
    margin-bottom: 1.5rem;
}

.homepage-modes .section-header--wide {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.homepage-modes .homepage-hero__eyebrow {
    margin-bottom: 0.6rem;
}

.homepage-modes .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.homepage-modes .section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.home-modes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.home-modes-grid > * {
    min-width: 0;
}

.home-mode-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
}

.home-mode-card__head {
    min-height: 132px;
    display: flex;
    flex-direction: column;
}

.home-mode-card__head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.home-mode-card__head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.home-mode-card__tag {
    display: inline-flex;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(14,165,233,0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.home-mode-card__mockup {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    flex: 1;
    min-height: 220px;
    align-content: start;
    grid-auto-rows: minmax(64px, auto);
}

.home-mode-card .btn {
    margin-top: auto;
}

.home-mode-card .report-day-mini {
    min-height: 84px;
}

.home-mode-card .planner-chip {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================
   REPORT LUXURY CARD
========================= */

.report-preview-luxury {
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    min-height: 420px;
    max-height: 420px;
}

.report-preview-luxury__media {
    position: relative;
    min-height: 100%;
}

.report-preview-luxury__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-preview-luxury__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.95);
}

.report-preview-luxury__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.report-preview-luxury__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.report-preview-luxury__eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-preview-luxury__top h3 {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    line-height: 1.1;
}

.report-preview-luxury__subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.report-preview-luxury__score {
    min-width: 58px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15,23,42,0.18);
}

.report-preview-luxury__weather,
.report-preview-luxury__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.report-preview-luxury__weather span,
.report-preview-luxury__highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(14,165,233,0.08);
    border: 1px solid rgba(14,165,233,0.14);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.report-preview-luxury__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(14,165,233,0.12);
}

.report-preview-luxury__cta {
    width: 100%;
    min-height: 58px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    justify-content: space-between;
    gap: 0.85rem;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
    box-shadow: 0 18px 34px rgba(14,165,233,0.24);
}

.report-preview-luxury__cta span:first-child {
    flex: 1;
}

.report-preview-luxury__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    font-size: 1rem;
    flex-shrink: 0;
}

.report-preview-luxury__cta:hover .report-preview-luxury__cta-icon {
    transform: translateX(2px);
}

/* =========================
   REPORT MODAL
========================= */

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}

.report-modal.is-open {
    display: block;
}

.report-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.45);
    backdrop-filter: blur(4px);
}

.report-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 2rem));
    margin: 3rem auto;
    padding: 1.5rem;
    max-height: calc(100vh - 6rem);
    overflow: auto;
}

.report-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.report-modal__header {
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.report-modal__header h3 {
    margin: 0.5rem 0;
    font-size: 2rem;
}

.report-modal__header p {
    margin: 0;
    color: var(--text-secondary);
}

.report-modal__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.25rem;
}

.report-block {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    margin-bottom: 1rem;
}

.report-block h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.report-block p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
}

.report-timeline-item {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
}

.report-timeline-item:first-child {
    border-top: none;
    padding-top: 0;
}

.report-timeline-item strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .hero-shell,
    .report-preview,
    .benefits-grid,
    .steps-grid,
    .pricing-grid--two,
    .pricing-grid--three {
        grid-template-columns: 1fr;
    }

    .hero-media {
        justify-self: center;
    }

    .homepage-hero__title,
    .homepage-hero__description,
    .section-subtitle--left,
    .section-title--left {
        text-align: center;
        margin-inline: auto;
    }

    .homepage-hero__actions,
    .hero-trustbar {
        justify-content: center;
    }

    .services-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-media.card,
    .hero-media {
        display: none;
    }
}

@media (max-width: 980px) {
    .report-preview-luxury {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }

    .report-preview-luxury__media {
        min-height: 240px;
    }

    .report-modal__grid {
        grid-template-columns: 1fr;
    }

    .report-modal__dialog {
        margin: 1rem auto;
        max-height: calc(100vh - 2rem);
    }
}

@media (max-width: 900px) {
    .home-modes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        padding: 2.75rem 0 2rem;
    }

    .homepage-benefits,
    .homepage-how-it-works,
    .homepage-report-preview,
    .homepage-pricing,
    .homepage-faq,
    .homepage-final-cta {
        padding: 4rem 0;
    }

    .hero-stats,
    .report-preview__metrics {
        grid-template-columns: 1fr;
    }

    .hero-trustbar,
    .services-strip__grid {
        justify-content: center;
    }

    .faq-item {
        grid-template-columns: 1fr;
    }

    .homepage-modes {
        padding: 2rem 0 2.5rem;
    }

    .homepage-modes .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

@media (max-width: 640px) {
    .report-preview-luxury__body {
        padding: 1rem;
    }

    .report-preview-luxury__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-preview-luxury__score {
        min-width: auto;
    }

    .report-preview-luxury__cta {
        min-height: 54px;
        padding: 0.95rem 1rem;
    }
}