/* =========================================================================
   home.css — Homepage for samoletpay.org (astralink-style, Samolet airplane/gold theme)
   Depends on pay.css for: pay-body, pay-header, pay-badge, pay-btn, pay-footer
   ========================================================================= */

/* ── Header additions ────────────────────────────────────────────────────── */
.home-nav {
    display: none;
    gap: 26px;
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #9b9488);
}

.home-nav a:hover {
    color: var(--text, #f4f1ea);
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-header-cta {
    display: none;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe1a0, #f2bf51);
    color: #090909;
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 251, 234, 0.5), 0 6px 18px rgba(242, 191, 81, 0.18);
    transition: opacity 0.15s;
}

.home-header-cta:hover {
    opacity: 0.9;
}

@media (min-width: 880px) {
    .home-nav { display: flex; }
    .home-header-cta { display: inline-flex; }
}

/* ── Containers ──────────────────────────────────────────────────────────── */
.home-container {
    width: min(100% - 32px, 1100px);
    margin-inline: auto;
}

.home-container--narrow {
    max-width: 760px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.home-hero {
    padding: 78px 0 58px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 65% at 50% 0%, rgba(243, 197, 90, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 880px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.home-hero__title {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text, #f4f1ea);
    margin: 0;
}

.home-hero__accent {
    background: linear-gradient(135deg, #ffe2a2 0%, #f3c55a 50%, #e8a93c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__sub {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--muted, #9b9488);
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}

.home-hero__offer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(243, 197, 90, 0.24);
    background: rgba(243, 197, 90, 0.08);
    color: var(--text, #f4f1ea);
}

.home-hero__offer strong {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: var(--yellow, #f3c55a);
}

.home-hero__offer span {
    color: var(--muted, #9b9488);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

.home-hero__cta {
    width: auto;
    min-width: 220px;
}

.home-hero__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 26px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted, #9b9488);
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.15s, border-color 0.15s;
}

.home-hero__secondary:hover {
    color: var(--text, #f4f1ea);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-hero__trust {
    display: flex;
    justify-content: center;
    gap: 12px 32px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 640px;
}

.home-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted, #9b9488);
}

.home-trust-item svg {
    color: var(--yellow, #f3c55a);
    opacity: 0.8;
    flex-shrink: 0;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.home-section {
    padding: 62px 0;
}

.home-section--alt {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.012);
}

.home-section__head {
    text-align: center;
    margin-bottom: 44px;
}

.home-section__title {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text, #f4f1ea);
    margin: 0 0 10px;
}

.home-section__sub {
    font-size: 15px;
    color: var(--muted, #9b9488);
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ── Features grid ───────────────────────────────────────────────────────── */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.home-feature {
    background: rgba(12, 12, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.home-feature:hover {
    border-color: rgba(243, 197, 90, 0.25);
    transform: translateY(-2px);
}

.home-feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(243, 197, 90, 0.10);
    border: 1px solid rgba(243, 197, 90, 0.20);
    color: var(--yellow, #f3c55a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-feature__title {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #f4f1ea);
    margin: 0;
}

.home-feature__text {
    font-size: 14px;
    color: var(--muted, #9b9488);
    line-height: 1.6;
    margin: 0;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.home-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(12, 12, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 26px 24px;
}

.home-step__num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(243, 197, 90, 0.12);
    border: 1.5px solid rgba(243, 197, 90, 0.32);
    color: var(--yellow, #f3c55a);
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.home-step div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-step strong {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text, #f4f1ea);
}

.home-step p {
    font-size: 14px;
    color: var(--muted, #9b9488);
    line-height: 1.6;
    margin: 0;
}

/* ── Pricing cards ───────────────────────────────────────────────────────── */
.home-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.home-price-card {
    position: relative;
    background: rgba(12, 12, 14, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: border-color 0.18s, transform 0.18s;
}

.home-price-card:hover {
    border-color: rgba(243, 197, 90, 0.45);
    transform: translateY(-2px);
}

.home-price-card--popular {
    border-color: var(--yellow, #f3c55a);
    background: rgba(243, 197, 90, 0.05);
}

.home-price-card--promo {
    grid-column: span 2;
    align-items: flex-start;
    text-align: left;
    border-color: rgba(243, 197, 90, 0.36);
    background:
        linear-gradient(180deg, rgba(243, 197, 90, 0.11), rgba(12, 12, 14, 0.86)),
        rgba(12, 12, 14, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 226, 162, 0.12);
}

.home-price-card--promo .home-price-card__pricing strong {
    font-size: 34px;
}

.home-price-card--promo .home-price-card__cta {
    text-align: center;
}

.home-price-card__badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow, #f3c55a);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 0 0 10px 10px;
    white-space: nowrap;
    font-family: var(--font-display, 'Onest'), sans-serif;
}

.home-price-card__badge--promo {
    background: linear-gradient(135deg, #ffe1a0, #f2bf51);
}

.home-price-card__period {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #f4f1ea);
    margin-top: 6px;
}

.home-price-card__pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.home-price-card__pricing s {
    font-size: 12.5px;
    color: var(--muted, #9b9488);
}

.home-price-card__pricing strong {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffe2a2, #f3c55a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.home-price-card__discount {
    font-size: 11px;
    font-weight: 600;
    color: var(--yellow, #f3c55a);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-price-card__caption {
    min-height: 34px;
    color: var(--muted, #9b9488);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.home-price-card__cta {
    margin-top: 10px;
    width: 100%;
    padding: 10px 0;
    border-radius: 12px;
    border: 1px solid rgba(243, 197, 90, 0.35);
    color: var(--yellow, #f3c55a);
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}

.home-price-card:hover .home-price-card__cta {
    background: linear-gradient(135deg, #ffe1a0, #f2bf51);
    border-color: transparent;
    color: #090909;
}

.home-price-card--popular .home-price-card__cta {
    background: linear-gradient(135deg, #ffe1a0, #f2bf51);
    border-color: transparent;
    color: #090909;
}

.home-price-card--promo .home-price-card__cta {
    border-color: rgba(243, 197, 90, 0.55);
    background: rgba(243, 197, 90, 0.09);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.home-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-faq__item {
    background: rgba(12, 12, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.home-faq__item[open] {
    border-color: rgba(243, 197, 90, 0.3);
}

.home-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 48px 18px 20px;
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #f4f1ea);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.home-faq__item summary::-webkit-details-marker {
    display: none;
}

.home-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--yellow, #f3c55a);
    transition: transform 0.2s;
}

.home-faq__item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.home-faq__item p {
    padding: 0 20px 18px;
    margin: 0;
    font-size: 14px;
    color: var(--muted, #9b9488);
    line-height: 1.65;
}

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.home-final {
    padding: 88px 0 96px;
    text-align: center;
}

.home-final__title {
    font-family: var(--font-display, 'Onest'), sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text, #f4f1ea);
    margin: 0 0 10px;
}

.home-final__sub {
    font-size: 15px;
    color: var(--muted, #9b9488);
    margin: 0 0 28px;
}

.home-final__cta {
    width: auto;
    min-width: 240px;
    display: inline-flex;
}

/* ── Footer additions ────────────────────────────────────────────────────── */
.home-footer__inner {
    justify-content: flex-start;
}

.home-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: auto;
}

.home-footer__desc {
    font-size: 11px;
    opacity: 0.7;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .home-features { grid-template-columns: repeat(2, 1fr); }
    .home-steps { grid-template-columns: 1fr; }
    .home-pricing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .home-hero { padding: 42px 0 38px; }
    .home-section { padding: 42px 0; }
    .home-features { grid-template-columns: 1fr; }
    .home-pricing { grid-template-columns: 1fr; gap: 10px; }
    .home-price-card--promo { grid-column: auto; }
    .home-hero__offer {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: left;
    }
    .home-hero__actions { flex-direction: column; width: 100%; }
    .home-hero__cta, .home-hero__secondary { width: 100%; }
    .home-footer__brand { width: 100%; }
}
