/* ============================================================
   HOME PAGE (hub)

   The home page routes to the three public tool pages and shows
   pricing + FAQ; the try box, feature grid, how-it-works strip and
   marquee are gone, and so are their styles. Tool-page styles live in
   tool_page.css; the FAQ accordion and .reveal live in base.css since
   both page types use them.
   ============================================================ */

/* ---- HERO ---- */
.hub-hero {
    /* Kept tight on purpose: at ~700px of viewport the tool cards have to
       break the fold, or the first screen has nothing to click. */
    padding: calc(var(--sp-16) + 24px) var(--gutter) var(--sp-12);
    border-bottom: var(--border-3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(255, 61, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hub-hero__inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hub-hero__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border: var(--border-2);
    margin-bottom: var(--sp-8);
}

.hub-hero__title {
    font-size: clamp(32px, 7.4vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-6);
}

.hub-hero__title-accent {
    color: var(--accent);
}

.hub-hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto var(--sp-8);
}

.hub-hero__cta {
    display: inline-flex;
}

/* ---- THE THREE TOOLS ---- */
/* Equal-weight cards: the only job of the home page is getting people
   into one of these. */
.hub-tools {
    padding: var(--sp-12) var(--gutter) var(--sp-20);
    border-bottom: var(--border-3);
}

.hub-tools__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.hub-tool {
    display: flex;
    flex-direction: column;
    border: var(--border-3);
    padding: var(--sp-8);
    background: var(--white);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hub-tool:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 var(--accent);
}

.hub-tool__num {
    position: absolute;
    top: var(--sp-5);
    right: var(--sp-6);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-300);
    letter-spacing: 0.1em;
}

.hub-tool__icon {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: var(--sp-6);
}

.hub-tool__name {
    font-size: 22px;
    letter-spacing: -0.01em;
    margin-bottom: var(--sp-3);
}

.hub-tool__blurb {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: var(--sp-8);
    flex: 1;
}

.hub-tool__go {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--black);
    border-bottom: 2px solid var(--accent);
    align-self: flex-start;
    padding-bottom: 3px;
}

.hub-tool:hover .hub-tool__go {
    color: var(--accent);
}

/* ---- LIVE STATS BAND ---- */
/* Rendered only above core.services.STATS_MIN_WORDS. */
.stats-band {
    background: var(--black);
    color: var(--white);
    border-bottom: var(--border-3);
    padding: var(--sp-12) var(--gutter);
}

.stats-band__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--sp-8);
    text-align: center;
}

.stats-band__item {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.stats-band__num {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.stats-band__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--gray-400);
}

/* ---- PRICING SECTION (landing) ---- */
.pricing-section {
    padding: var(--sp-20) var(--gutter);
    border-bottom: var(--border-3);
    background: var(--gray-50);
}

.pricing-section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.pricing-section__subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-top: calc(-1 * var(--sp-8));
    margin-bottom: var(--sp-12);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: var(--sp-6);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    border: var(--border-3);
    padding: var(--sp-8);
    text-align: left;
    background: var(--white);
    position: relative;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-card--pro {
    border-color: var(--accent);
    border-width: 3px;
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: var(--sp-6);
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
}

.pricing-card__header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-6);
    border-bottom: var(--border-1);
}

.pricing-card__name {
    font-size: 16px;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-2);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--sp-1);
}

.pricing-card__amount {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.pricing-card__period {
    font-size: 16px;
    color: var(--gray-500);
}

.pricing-card__desc {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: var(--sp-6);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--sp-8);
    flex: 1;
}

.pricing-card__features li {
    font-size: 14px;
    padding: var(--sp-2) 0;
    border-bottom: var(--border-gray);
    color: var(--gray-700);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features li::before {
    content: "→ ";
    color: var(--accent);
    font-weight: 700;
}

/* ---- FINAL CTA ---- */
.final-cta {
    padding: var(--sp-24) var(--gutter);
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.final-cta__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.final-cta__title {
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    margin-bottom: var(--sp-6);
}

.final-cta__desc {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: var(--sp-10);
}

.final-cta .btn--primary {
    background: var(--accent);
    border-color: var(--accent);
}

.final-cta .btn--primary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.final-cta__note {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-top: var(--sp-5);
}

/* ---- PRICING REASSURANCE ---- */
.pricing-card__note {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--gray-500);
    margin-top: var(--sp-3);
    text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hub-tools__inner {
        gap: var(--sp-5);
    }

    .hub-tool {
        padding: var(--sp-6);
    }
}

@media (max-width: 900px) {
    .hub-tools__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hub-hero {
        padding: var(--sp-16) var(--gutter) var(--sp-12);
    }

    .hub-hero__badge {
        font-size: 11px;
        letter-spacing: 0.1em;
        padding: 5px 12px;
        margin-bottom: var(--sp-6);
    }

    .hub-tools {
        padding: var(--sp-10) var(--gutter) var(--sp-16);
    }

    .stats-band {
        padding: var(--sp-10) var(--gutter);
    }

    .pricing-section {
        padding: var(--sp-16) var(--gutter);
    }

    .pricing-section__subtitle {
        font-size: 16px;
        margin-top: calc(-1 * var(--sp-6));
        margin-bottom: var(--sp-8);
    }

    .pricing-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-card {
        max-width: 100%;
    }

    .final-cta {
        padding: var(--sp-16) var(--gutter);
    }

    .final-cta__desc {
        font-size: 16px;
        margin-bottom: var(--sp-8);
    }
}

@media (max-width: 600px) {
    /* Three stat columns at this width leave each number about 90px
       wide — stacked, they keep the size that makes them worth
       showing at all. */
    .stats-band__inner {
        flex-direction: column;
        gap: var(--sp-6);
    }

    .stats-band__num {
        font-size: 38px;
    }

    /* Hover lift is a pointer affordance. On touch it fires on tap and
       sticks until the next tap elsewhere, so the card just looks
       broken; keep the shadow, drop the movement. */
    .hub-tool:hover {
        transform: none;
        box-shadow: 6px 6px 0 var(--accent);
    }
}

@media (max-width: 480px) {
    .hub-hero {
        padding: var(--sp-12) var(--gutter) var(--sp-10);
    }

    /* The glow is sized for a desktop hero; at phone width it spills
       past the section and forces a horizontal scrollbar. */
    .hub-hero::before {
        width: 420px;
        height: 420px;
        top: -40%;
    }

    .hub-hero__subtitle {
        font-size: 15px;
        margin-bottom: var(--sp-6);
    }

    .hub-hero__cta {
        display: flex;
        width: 100%;
    }

    .hub-tool {
        padding: var(--sp-5);
    }

    .hub-tool__num {
        top: var(--sp-4);
        right: var(--sp-4);
    }

    .hub-tool__icon {
        font-size: 26px;
        margin-bottom: var(--sp-4);
    }

    .hub-tool__name {
        font-size: 19px;
    }

    .hub-tool__blurb {
        font-size: 14px;
        margin-bottom: var(--sp-5);
    }

    .stats-band__num {
        font-size: 34px;
    }

    .pricing-card {
        padding: var(--sp-6) var(--sp-5);
    }

    .pricing-card__amount {
        font-size: 40px;
    }

    .pricing-card__features li {
        font-size: 13.5px;
    }

    .final-cta {
        padding: var(--sp-12) var(--gutter);
    }

    .final-cta__title {
        font-size: clamp(36px, 12vw, 56px);
    }

    .final-cta__desc {
        font-size: 15px;
    }

    .final-cta .btn {
        width: 100%;
    }
}
