/* ═══════════════════════════════════════════════════════════════════════════
   home.css — Homepage-only styles
   Loaded only on the homepage via $extraCss in HomeController.
   All colors use CSS custom properties injected by main.php from brand.php.
   No hardcoded hex values — rebrand by changing brand.php only.

   .home-container / .home-btn* / .home-nav* / .home-mobile-nav* /
   .home-footer* used to live here but are now in app.css — nav.php and
   footer.php (rendered by the 'main' layout on every page) use them too,
   not just the homepage, so they moved to the stylesheet that's always
   loaded. This file keeps only what's genuinely homepage-only: hero,
   features, how-it-works, plans, P2 examples, CTA band, scroll-reveal.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.home-hero {
    position: relative;
    min-height: 100vh;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 40%, rgba(92,0,16,0.8) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(138,114,48,0.15) 0%, transparent 60%);
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.015) 40px,
        rgba(255,255,255,0.015) 41px
    );
}

.home-hero-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.home-hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.home-hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold-light);
}

.home-hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.home-hero-headline em {
    font-style: normal;
    color: var(--gold-light);
}

.home-hero-sub {
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 440px;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-hero-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: 16px;
    font-style: italic;
}

/* ── Phone mockup ───────────────────────────────────────────────────────── */
.home-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-phone-wrap {
    position: relative;
    animation: homeFloat 4s ease-in-out infinite;
}

@keyframes homeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.home-phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138,114,48,0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.home-phone-frame {
    width: 240px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 40px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(138,114,48,0.15);
}

.home-phone-screen {
    background: var(--primary);
    border-radius: 26px;
    overflow: hidden;
    padding: 28px 16px 24px;
    text-align: center;
    min-height: 420px;
}

.home-phone-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
}

.home-phone-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.home-phone-class {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    margin-bottom: 4px;
}

.home-phone-handle {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 10px;
}

.home-phone-bio {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 0 4px;
}

.home-phone-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.home-phone-link {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 7px;
    text-align: center;
}

/* ── Section shared ─────────────────────────────────────────────────────── */
.home-section {
    padding: 96px 0;
}

.home-section-eyebrow {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.home-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--maroon);
    line-height: 1.1;
    margin-bottom: 16px;
}

.home-section-lead {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 560px;
}

/* ── Features ───────────────────────────────────────────────────────────── */
.home-features {
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

.home-features-header {
    text-align: center;
    margin-bottom: 64px;
}
.home-features-header .home-section-eyebrow { justify-content: center; }
.home-features-header .home-section-eyebrow::before { display: none; }
.home-features-header .home-section-lead { margin: 0 auto; text-align: center; }

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.home-feature-card {
    padding: 32px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--cream);
    position: relative;
    transition: all 0.25s ease;
}
.home-feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.home-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
    opacity: 0;
    transition: opacity 0.25s;
}
.home-feature-card:hover::before { opacity: 1; }

.home-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--maroon);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.home-feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.home-feature-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.home-how {
    background: var(--cream);
}

.home-how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 56px;
}

.home-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.home-step-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    min-width: 40px;
    opacity: 0.6;
}

.home-step-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--maroon);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.home-step-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

.home-url-demo {
    background: var(--maroon);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(80,0,0,0.25);
}

.home-url-demo-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.home-url-demo-url {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}
.home-url-demo-url span { color: var(--gold-light); }

.home-url-demo-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 20px auto;
}

.home-url-demo-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* ── Plans ──────────────────────────────────────────────────────────────── */
.home-plans {
    background: var(--primary-dark);
    padding: 96px 0;
}

.home-plans .home-section-title { color: var(--white); }
.home-plans .home-section-eyebrow { color: var(--gold-light); }
.home-plans .home-section-eyebrow::before { background: var(--gold-light); }
.home-plans .home-section-lead { color: rgba(255,255,255,0.6); }

.home-plans-header {
    text-align: center;
    margin-bottom: 56px;
}
.home-plans-header .home-section-eyebrow { justify-content: center; }
.home-plans-header .home-section-eyebrow::before { display: none; }
.home-plans-header .home-section-lead { margin: 0 auto; text-align: center; }

.home-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.home-plan-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 36px 28px;
    transition: all 0.25s ease;
    position: relative;
}
.home-plan-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.home-plan-card.home-plan-featured {
    background: var(--gold);
    border-color: var(--gold-light);
}

.home-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--maroon);
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.home-plan-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.home-plan-card.home-plan-featured .home-plan-name { color: var(--primary-dark); }

.home-plan-tagline {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin-bottom: 24px;
}
.home-plan-card.home-plan-featured .home-plan-tagline { color: rgba(60,0,0,0.7); }

.home-plan-amount {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.home-plan-card.home-plan-featured .home-plan-amount { color: var(--primary-dark); }

.home-plan-period {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.home-plan-card.home-plan-featured .home-plan-period { color: rgba(60,0,0,0.6); }

.home-plan-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}
.home-plan-card.home-plan-featured .home-plan-features li { color: rgba(60,0,0,0.85); }

.home-plan-features li i {
    color: var(--gold-light);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.75rem;
}
.home-plan-card.home-plan-featured .home-plan-features li i { color: var(--maroon); }

.home-plan-features li i.fa-xmark { color: rgba(255,255,255,0.25); }
.home-plan-card.home-plan-featured .home-plan-features li i.fa-xmark { color: rgba(60,0,0,0.3); }

.home-plan-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
}
.home-plan-cta:hover { background: rgba(255,255,255,0.2); color: var(--white); text-decoration: none; }

.home-plan-card.home-plan-featured .home-plan-cta {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
}
.home-plan-card.home-plan-featured .home-plan-cta:hover { background: var(--primary-dark); }

/* ── P2 branded links section ───────────────────────────────────────────── */
.home-p2 {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

.home-p2-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.home-p2-examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-p2-example {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-p2-icon {
    width: 36px;
    height: 36px;
    background: var(--maroon);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.home-p2-url {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--maroon);
    font-weight: 500;
}

.home-p2-desc {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ── CTA band ───────────────────────────────────────────────────────────── */
.home-cta-band {
    background: var(--maroon);
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.02) 40px,
        rgba(255,255,255,0.02) 41px
    );
}

.home-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.home-cta-lead {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin: 0 auto 40px;
    max-width: 500px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.home-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .home-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .home-hero-eyebrow { justify-content: center; }
    .home-hero-eyebrow::before { display: none; }
    .home-hero-sub { margin: 0 auto 40px; }
    .home-hero-actions { justify-content: center; }
    .home-features-grid { grid-template-columns: 1fr; gap: 20px; }
    .home-how-grid { grid-template-columns: 1fr; gap: 48px; }
    .home-plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .home-p2-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .home-section { padding: 64px 0; }
    .home-plans { padding: 64px 0; }
    .home-cta-band { padding: 64px 0; }
}
