/* Homepage premium layer — loaded only on / and /vi/ */
.page-home {
    --home-accent: #34d399;
    --home-gold: #fbbf24;
    --home-surface: rgba(15, 23, 42, 0.85);
    --home-border: rgba(148, 163, 184, 0.15);
}

.page-home main#main-content {
    padding-top: 0;
}

/* ── Hero ── */
.page-home .hero-premium {
    position: relative;
    padding: 3.5rem 0 4.5rem;
    text-align: center;
    border-bottom: 1px solid var(--home-border);
    overflow: hidden;
}
@media (min-width: 768px) {
    .page-home .hero-premium { padding: 5rem 0 5.5rem; }
}
.page-home .hero-premium__inner {
    position: relative;
    z-index: 1;
    max-width: 44rem;
    margin: 0 auto;
}
.page-home .hero-premium__title {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #f8fafc 0%, #6ee7b7 45%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-home .hero-premium__lead {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #94a3b8;
}
.page-home .hero-premium__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    margin-top: 2rem;
}
.page-home .hero-premium__note {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.page-home .hero-premium__note a { color: var(--home-accent); }

/* ── Quick nav pills ── */
.home-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--home-border);
}
.home-pill {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2e8f0;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 9999px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.home-pill:hover {
    color: var(--home-accent);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.12);
}

/* ── Trust strip ── */
.page-home .trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.page-home .trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}
.page-home .trust-strip__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-accent);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

/* ── Sections ── */
.page-home .section-block {
    padding: 4rem 0;
}
.page-home .section-block--alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, transparent 100%);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}
.page-home .section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-home .section-head__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-gold);
    margin-bottom: 0.5rem;
}
.page-home .section-head__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #f1f5f9;
}
.page-home .section-head__desc {
    margin-top: 0.5rem;
    color: #94a3b8;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Intro ── */
.page-home .home-intro {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #94a3b8;
}
.page-home .home-intro a {
    color: var(--home-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Topic cards ── */
.page-home .home-topics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}
@media (min-width: 640px) { .page-home .home-topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .page-home .home-topics { grid-template-columns: repeat(4, 1fr); } }
.page-home .home-topic {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.page-home .home-topic:hover {
    border-color: rgba(52, 211, 153, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(52, 211, 153, 0.08);
}
.page-home .home-topic__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--home-accent);
    background: rgba(52, 211, 153, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}
.page-home .home-topic__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}
.page-home .home-topic__desc {
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    flex-grow: 1;
}
.page-home .home-topic__link {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--home-accent);
}

/* ── Pillars ── */
.page-home .pillar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 56rem;
    margin: 0 auto;
}
@media (min-width: 768px) { .page-home .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.page-home .pillar {
    padding: 1.75rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 1rem;
    position: relative;
}
.page-home .pillar__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    font-weight: 800;
    color: #042f2e;
    background: linear-gradient(135deg, #34d399, #10b981);
    border-radius: 50%;
    margin-bottom: 1rem;
}
.page-home .pillar__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
}
.page-home .pillar__text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── Deal cards ── */
.page-home .deal-grid-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 64rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}
@media (min-width: 768px) { .page-home .deal-grid-home { grid-template-columns: repeat(3, 1fr); } }
.page-home .deal-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.page-home .deal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-accent), var(--home-gold));
    opacity: 0.7;
}
.page-home .deal-card:hover {
    border-color: rgba(251, 191, 36, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.page-home .deal-card__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #042f2e;
    background: var(--home-gold);
    border-radius: 0.375rem;
    margin-bottom: 0.875rem;
}
.page-home .deal-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}
.page-home .deal-card__title a {
    color: #f1f5f9;
    text-decoration: none;
}
.page-home .deal-card__title a:hover { color: var(--home-accent); }
.page-home .deal-card__desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.55;
    flex-grow: 1;
}
.page-home .deal-card__link {
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-gold);
    text-decoration: none;
}
.page-home .deal-card__link:hover { color: var(--home-accent); }

/* ── Guide rows ── */
.page-home .guide-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 0.875rem;
    transition: border-color 0.2s;
}
.page-home .guide-row:hover { border-color: rgba(52, 211, 153, 0.3); }
.page-home .guide-row__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.page-home .guide-row__title a { color: #f1f5f9; text-decoration: none; }
.page-home .guide-row__title a:hover { color: var(--home-accent); }
.page-home .guide-row__meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.page-home .guide-row__cta {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-accent);
    text-decoration: none;
}

/* ── Buttons (fallback if main CSS cached) ── */
.page-home .btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #042f2e;
    background: linear-gradient(135deg, #34d399, #10b981);
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(52, 211, 153, 0.4);
}
.page-home .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.5);
    color: #042f2e;
}
.page-home .btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    background: transparent;
    border: 1px solid var(--home-border);
    border-radius: 9999px;
    text-decoration: none;
}
.page-home .btn-ghost:hover {
    border-color: var(--home-accent);
    color: var(--home-accent);
}

/* ── EEAT + FAQ ── */
.page-home .home-eeat {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 1rem;
    text-align: center;
}
.page-home .home-eeat p {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}
.page-home .home-eeat a { color: var(--home-accent); }
.page-home .faq-premium details {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
}
.page-home .faq-premium summary {
    font-weight: 600;
    color: #f1f5f9;
    cursor: pointer;
    list-style: none;
}
.page-home .faq-premium summary::-webkit-details-marker { display: none; }
.page-home .faq-premium p {
    margin-top: 0.75rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.page-home .link-arrow {
    font-weight: 600;
    color: var(--home-gold);
    text-decoration: none;
}
.page-home .link-arrow:hover { color: var(--home-accent); }
.page-home .eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-gold);
}
