/* ==========================================================================
   TASKTAG VS BUILDXACT — PAGE-SPECIFIC STYLES (prefix: bx-)
   Shared blocks reused as-is: compare-table (compare.css), cs-quote,
   cs-resources, cs-faq, cs-final-cta (component-shared.css / faq.css),
   gps-pd-grid + pd-features__card (gps-time-tracking.css).
   Only page-scoped additions and responsive overrides live here.
   ========================================================================== */

/* ==========================================================================
   HERO — same type, badge and CTA as buildertrend.css .bt-hero;
   comparison card mirrors manifold.css .mf-hero__price-card
   ========================================================================== */
.bx-hero {
    background: var(--white);
    padding: 4rem 1.5rem 4rem;
    text-align: center;
}

.bx-hero__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
}

.bx-hero__badge {
    display: inline-block;
    background: var(--light-mint);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--secondary-green);
    margin-bottom: 1.5rem;
}

.bx-hero__badge-dot {
    display: none;
}

.bx-hero__title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.bx-hero__title .highlight {
    color: var(--secondary-green);
    display: block;
}

.bx-hero__subtitle {
    font-size: 1.1rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 auto 1rem;
}

.bx-hero__subtitle-brand {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

.bx-hero__subtitle-brand--green {
    color: var(--secondary-green);
}

.bx-hero__subtitle + .bx-hero__cta {
    margin-top: 1rem;
}

.bx-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--secondary-green);
    color: var(--white);
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(var(--secondary-green-rgb), 0.3);
    margin-bottom: 2rem;
}

.bx-hero__cta:hover {
    background: var(--secondary-green-border);
    box-shadow: 0 6px 20px rgba(var(--secondary-green-rgb), 0.4);
}

/* Workflow comparison card */
.bx-hero__price-card {
    background: var(--white);
    border: 1px solid var(--grey-03);
    border-radius: calc(var(--radius-lg) + var(--radius-sm));
    padding: 1.75rem 2rem;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(var(--black-rgb), 0.05);
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    gap: 1rem;
    align-items: start;
    text-align: left;
}

.bx-hero__price-side {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bx-hero__price-side--right {
    padding-left: 0.5rem;
}

.bx-hero__price-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.bx-hero__vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bx-hero__vs-line {
    width: 1px;
    height: 36px;
    background: var(--grey-03);
}

.bx-hero__vs-label {
    background: var(--grey-02);
    border-radius: var(--radius-sm);
    padding: 3px 6px;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    color: var(--grey-05);
}

.bx-price-card__rule {
    border: none;
    border-top: 1px solid var(--grey-03);
    margin: 0.75rem 0;
}

.bx-price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bx-price-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bx-price-list--pros li i {
    color: var(--secondary-green);
}

/* ==========================================================================
   CARD SECTIONS — "Which part of the job", "What field teams get",
   "Go deeper" (cs-section__header + gps-pd-grid of pd-features__card,
   same structure as precision-development.css .precision-cards)
   ========================================================================== */
.bx-cards {
    background: var(--white);
    padding: 8rem 0;
}

.bx-cards--grey {
    background: var(--grey-02);
}

.bx-cards__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.bx-cards .pd-features__card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Keep the scroll-reveal fade/slide + hover transitions (same as precision-development.css) */
.bx-cards .pd-features__card.reveal-visible {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.2s ease;
}

.bx-cards .pd-features__card:hover {
    box-shadow: 0 8px 28px rgba(var(--black-rgb), 0.08);
    transform: translateY(-2px);
}

/* "Go deeper" cards: 3 per row, with an incomplete last row centered.
   Flex instead of grid so the leftover cards sit in the middle (gap comes from .gps-pd-grid). */
.bx-grid--3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.bx-grid--3 > .pd-features__card {
    width: calc((100% - 2 * var(--spacing-md)) / 3);
}

.bx-card__link {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.bx-card__link:hover {
    color: var(--secondary-green);
}

.bx-card--featured {
    background: rgba(var(--secondary-green-rgb), 0.07);
    border-color: rgba(var(--secondary-green-rgb), 0.35);
}

.bx-card--featured .pd-features__icon {
    background: var(--white);
}

/* "You need both" banner sits below the two cards */
.bx-both {
    margin-top: var(--spacing-xl);
}

/* Width is set on the parent, not the subtitle (CLAUDE.md rule 10) */
.bx-both .compare-pain__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.bx-both .compare-pain__cta-subtitle {
    max-width: none;
}

/* ==========================================================================
   WHAT FIELD TEAMS GET — cs-workflow--isc (dark) + cs-wf__step cards, same as
   "Why Thousands of Contractors Chose TaskTag" on the Manifold page.
   Base cs-wf__* / cs-workflow--isc styles come from gps-time-tracking.css.
   ========================================================================== */
.bx-metrics .cs-wf__step {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bx-metrics .cs-wf__step:hover {
    box-shadow: 0 8px 28px rgba(var(--black-rgb), 0.35);
    transform: translateY(-2px);
}

.bx-metrics__value {
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
}

.bx-metrics__footnote {
    margin-top: var(--spacing-lg);
    font-size: 0.75rem;
    font-weight: var(--font-weight-light);
    text-align: center;
    color: var(--grey-11);
}

/* ==========================================================================
   COMPARISON TABLE — Buildxact column (mirrors manifold.css col-manifold)
   ========================================================================== */
.compare-table thead th.col-buildxact {
    background: var(--white);
    color: var(--text-primary);
    text-align: center;
}

.compare-table thead th.col-buildxact .compare-table__plan-price {
    display: block;
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.compare-table tbody td.col-buildxact {
    background: var(--white);
}

/* ==========================================================================
   TESTIMONIAL — cs-quote with section header + field CTA
   ========================================================================== */
.bx-quote__header {
    max-width: var(--spacing-container);
    margin: 0 auto 6rem;
    padding: 0 var(--spacing-lg);
}

.bx-quote__brand-link {
    color: inherit;
    text-decoration: none;
}

.bx-quote__brand-link:hover {
    color: var(--secondary-green);
}

/* ==========================================================================
   SAME PROJECT, DIFFERENT JOBS — two-column comparison.
   Ported from daily-reports.css .dr-compare ("Stop Chasing Paper Reports and
   Text Messages"): muted left column, white right column with green border.
   ========================================================================== */
.bx-compare {
    background: var(--white);
    padding: 8rem 0;
}

/* Container matches the other sections so the heading block has the same width;
   the grid and summary keep the 1024px (dr-compare) measure. */
.bx-compare__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.bx-compare__grid,
.bx-compare__summary {
    max-width: 976px;
    margin-left: auto;
    margin-right: auto;
}

.bx-compare__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: var(--spacing-lg);
    margin-top: 4rem;
}

.bx-compare__col {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.bx-compare__col--buildxact {
    background: var(--white);
    border: 1px solid var(--grey-03);
}

.bx-compare__col--tasktag {
    background: var(--white);
    border: 2px solid var(--secondary-green);
    box-shadow: 0 20px 40px rgba(var(--black-rgb), 0.08);
}

.bx-compare__title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-xs);
}

.bx-compare__col--tasktag .bx-compare__title { color: var(--text-primary); }

.bx-compare__stage {
    margin: 0 0 var(--spacing-lg);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

.bx-compare__col--tasktag .bx-compare__stage { color: var(--secondary-green); }

.bx-compare__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.bx-compare__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.bx-compare__col--tasktag .bx-compare__item { color: var(--text-primary); }

.bx-compare__item-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bx-compare__item-icon--neutral {
    background: rgba(var(--grey-11-rgb), 0.2);
    color: var(--text-tertiary);
}

.bx-compare__item-icon--good {
    background: rgba(var(--secondary-green-rgb), 0.1);
    color: var(--secondary-green);
}

.bx-compare__summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
    text-align: center;
}

/* Hero CTA reused here; the hero's bottom margin is replaced by the flex gap */
.bx-compare__summary .bx-hero__cta {
    margin-bottom: 0;
}

.bx-compare__summary-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ==========================================================================
   GUIDES FOR CONTRACTORS — cs-resources ("Keep Learning" style), 3 columns
   (grid columns come from component-shared.css, same as the Manifold articles)
   ========================================================================== */
/* Same text clamp + hover lift as precision-development.css */
.bx-guides .cs-resources__card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bx-guides .cs-resources__card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.bx-guides .cs-resources__card:hover {
    box-shadow: 0 8px 28px rgba(var(--black-rgb), 0.08);
    transform: translateY(-2px);
}

.bx-guides__read-time {
    margin-bottom: var(--spacing-md);
    font-size: 0.75rem;
    font-weight: var(--font-weight-light);
    color: var(--text-quaternary);
}

/* ==========================================================================
   SECTION HEADINGS — every section except the hero shares one headline /
   subheadline scale and width (CLAUDE.md rule 11: 3.5 / 2.5 / 2 / 1.75rem
   titles, 1.5 / 1.25 / 1.125 / 1rem subtitles). Scoped to .bx-page so the
   shared components keep their look on other pages.
   ========================================================================== */
.bx-page .cs-section__title,
.bx-page .compare-table-section .compare-section__title,
.bx-page .cs-final-cta__title {
    font-size: 3.5rem !important;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bx-page .cs-section__subtitle,
.bx-page .compare-table-section .compare-section__subtitle,
.bx-page .cs-final-cta__subtitle {
    font-size: 1.5rem !important;
    font-weight: var(--font-weight-light);
    line-height: 1.5;
}

/* Same width: headline and subheadline fill the 1200px container (1152px inner) */
.bx-page .cs-section__title,
.bx-page .cs-section__subtitle {
    align-self: stretch;
}

.bx-page .compare-table-section .compare-section__title {
    width: 100%;
    text-align: center;
}

/* The table keeps its 1200px width; only its heading block is held to 1152px */
.bx-page .compare-table-section .compare-section__header,
.bx-page .compare-table-section .compare-section__subtitle {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
}

.bx-page .cs-final-cta__container {
    max-width: var(--spacing-container);
    padding: 0 var(--spacing-lg);
}

/* The FAQ sits inside a padded grey box; pull its header out to the same 1152px */
.bx-page .faq-section__header {
    margin-left: -4.5rem;
    margin-right: -4.5rem;
}

@media (max-width: 1024px) {
    .bx-page .cs-section__title,
    .bx-page .compare-table-section .compare-section__title,
    .bx-page .cs-final-cta__title { font-size: 2.5rem !important; }

    .bx-page .cs-section__subtitle,
    .bx-page .compare-table-section .compare-section__subtitle,
    .bx-page .cs-final-cta__subtitle { font-size: 1.25rem !important; }

    .bx-page .faq-section__header { margin-left: -0.5rem; margin-right: -0.5rem; }

    /* Forced line breaks (e.g. final CTA subtitle) apply to desktop only */
    .cs-br-desktop { display: none; }
}

@media (max-width: 768px) {
    .bx-page .cs-section__title,
    .bx-page .compare-table-section .compare-section__title,
    .bx-page .cs-final-cta__title { font-size: 2rem !important; }

    .bx-page .cs-section__subtitle,
    .bx-page .compare-table-section .compare-section__subtitle,
    .bx-page .cs-final-cta__subtitle { font-size: 1.125rem !important; }

    .bx-page .cs-final-cta__container { padding: 0 var(--spacing-md); }
}

@media (max-width: 480px) {
    .bx-page .cs-section__title,
    .bx-page .compare-table-section .compare-section__title,
    .bx-page .cs-final-cta__title { font-size: 1.75rem !important; }

    .bx-page .cs-section__subtitle,
    .bx-page .compare-table-section .compare-section__subtitle,
    .bx-page .cs-final-cta__subtitle { font-size: 1rem !important; }

    .bx-page .faq-section__header { margin-left: 0; margin-right: 0; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    /* Hero (same steps as buildertrend.css / manifold.css) */
    .bx-hero__title { font-size: 2.75rem; }
    .bx-hero__price-card { max-width: 100%; }
    .bx-hero__price-name    { font-size: 1.375rem; }

    .bx-cards { padding: 5rem 0; }
    .bx-compare { padding: 5rem 0; }
    .bx-compare__grid { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
    /* TaskTag column leads on the single-column layout (same as dr-compare) */
    .bx-compare__col--tasktag { order: -1; }

    .bx-grid--3 > .pd-features__card { width: calc((100% - var(--spacing-md)) / 2); }

    /* gps-time-tracking.css collapses cs-wf__grid--2 at 1024px; keep two columns until 768px */
    .bx-metrics .cs-wf__grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .bx-cards__container,
    .bx-quote__header { padding: 0 var(--spacing-md); }

    /* Hero (same steps as buildertrend.css / manifold.css) */
    .bx-hero__cta { width: 100%; }
    .bx-hero { padding: 4rem 1rem 3rem; }
    .bx-hero__title { font-size: 2.25rem; }
    .bx-hero__subtitle { font-size: 0.875rem; }

    /* Comparison card stacks (same as manifold.css) */
    .bx-hero__price-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1.25rem;
        text-align: center;
    }

    .bx-hero__price-side:not(.bx-hero__price-side--right) {
        order: 1;
        padding-bottom: 1rem;
    }
    .bx-hero__vs-divider { order: 2; }
    .bx-hero__price-side--right {
        order: 3;
        padding-left: 0;
        padding-top: 0;
        text-align: center;
    }

    .bx-hero__vs-divider {
        flex-direction: row;
        justify-content: center;
        padding: 0.75rem 0;
    }

    .bx-hero__vs-line {
        flex: 1;
        height: 1px;
    }

    .bx-hero__price-name     { font-size: 1.5rem; }

    .bx-hero__price-card .bx-price-card__rule { display: none; }

    .bx-hero__price-card .bx-price-list {
        margin-top: 0.75rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
    }

    .bx-hero__price-card .bx-price-list li {
        background: var(--grey-02);
        border-radius: var(--radius-full);
        padding: 0.3rem 0.75rem;
        font-size: 0.75rem;
        justify-content: center;
        text-align: center;
        width: auto;
    }

    .bx-hero__price-card .bx-price-list li i,
    .bx-hero__price-card .bx-price-list li svg { display: none; }

    .bx-cards { padding: 4rem 0; }
    .bx-compare { padding: 4rem 0; }
    .bx-compare__container { padding: 0 var(--spacing-md); }
    .bx-compare__col { padding: 2rem 1.5rem; }
    .bx-compare__summary-text { font-size: 1.125rem; }

    .bx-cards .gps-pd-grid,
    .bx-metrics .cs-wf__grid--2,
    .bx-guides .cs-resources__grid { grid-template-columns: 1fr; }

    .bx-grid--3 > .pd-features__card { width: 100%; }

    .bx-quote__header { margin-bottom: var(--spacing-xl); }

    /* Mobile column toggle (compare.js adds show-buildxact / show-tasktag) */
    .compare-table.show-buildxact th:nth-child(3),
    .compare-table.show-buildxact td:nth-child(3) {
        display: none !important;
    }

    .compare-table.show-buildxact th:nth-child(2),
    .compare-table.show-buildxact td:nth-child(2) {
        display: table-cell;
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .bx-hero__title { font-size: 1.875rem; }

    .bx-cards { padding: 3rem 0; }
    .bx-compare { padding: 3rem 0; }
    .bx-compare__col { padding: 1.75rem 1.25rem; }
    .bx-compare__title { font-size: 1.125rem; }
    .bx-compare__item { font-size: 0.9375rem; }

    .bx-metrics__value { font-size: 2rem; }
}
