/*
 * Leading Business Tools — Public Site Styles
 *
 * Brand palette (distinct from Claros):
 *   --lbt-pink:       #DA1C5C   CTAs, hover, active labels, accent badges
 *   --lbt-near-black: #231F20   Headlines, wordmark, primary nav
 *   --lbt-gray:       #666666   Body copy, secondary text
 *   --lbt-label:      #9CA3AF   ALL CAPS metadata labels
 *   --lbt-bg:         #FFFFFF   Page background
 *   --lbt-surface:    #FAFAFA   Subtle section backgrounds
 *   --lbt-border:     #E5E7EB   Card borders, dividers
 *   --lbt-dark-bg:    #1A1A1A   Premium CTA sections
 *   --lbt-dark-text:  #F9FAFB   Text on dark backgrounds
 */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --lbt-pink:       #DA1C5C;
    --lbt-near-black: #231F20;
    --lbt-gray:       #666666;
    --lbt-label:      #9CA3AF;
    --lbt-bg:         #FFFFFF;
    --lbt-surface:    #FAFAFA;
    --lbt-border:     #E5E7EB;
    --lbt-dark-bg:    #1A1A1A;
    --lbt-dark-text:  #F9FAFB;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lbt-gray);
    background: var(--lbt-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.lbt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.lbt-nav {
    border-bottom: 1px solid var(--lbt-border);
    background: var(--lbt-bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.lbt-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.lbt-nav__logo img {
    height: 32px;
    width: auto;
}

.lbt-nav__tagline {
    font-size: 13px;
    color: var(--lbt-label);
    letter-spacing: 0.01em;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'Inter', sans-serif;
    color: var(--lbt-near-black);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1rem; }

.lbt-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lbt-label);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.lbt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lbt-label);
    margin-bottom: 24px;
}

.lbt-breadcrumb a:hover { color: var(--lbt-pink); }

.lbt-breadcrumb__sep { color: var(--lbt-border); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.lbt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s, box-shadow 0.15s;
    border: none;
    text-decoration: none;
}

.lbt-btn--primary {
    background: var(--lbt-pink);
    color: #fff;
}

.lbt-btn--primary:hover {
    background: #c01850;
    color: #fff;
    box-shadow: 0 4px 12px rgba(218, 28, 92, 0.3);
}

.lbt-btn--outline {
    background: transparent;
    color: var(--lbt-pink);
    border: 1.5px solid var(--lbt-pink);
}

.lbt-btn--outline:hover {
    background: var(--lbt-pink);
    color: #fff;
}

.lbt-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.lbt-card {
    background: var(--lbt-bg);
    border: 1px solid var(--lbt-border);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.lbt-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.lbt-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lbt-badge--free    { background: #DCFCE7; color: #166534; }
.lbt-badge--freemium { background: #FEF9C3; color: #854D0E; }
.lbt-badge--paid    { background: #F3F4F6; color: var(--lbt-gray); }
.lbt-badge--gray    { background: #F3F4F6; color: var(--lbt-gray); }

/* ── Logo avatar (letter fallback — shared across card + detail) ──────────── */
.lbt-logo-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lbt-surface);
    border: 1px solid var(--lbt-border);
    border-radius: 8px;
    font-weight: 700;
    color: var(--lbt-label);
    flex-shrink: 0;
    font-size: 18px;
    width: 40px;
    height: 40px;
}

/* ── Tool detail hero logo ────────────────────────────────────────────────── */
.lbt-tool-detail__logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 1px solid var(--lbt-border);
    object-fit: contain;
    background: var(--lbt-surface);
    flex-shrink: 0;
    padding: 8px;
}

.lbt-tool-detail__logo.lbt-logo-avatar,
div.lbt-tool-detail__logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    font-size: 28px;
}

/* ── Tool Card ────────────────────────────────────────────────────────────── */
.lbt-tool-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lbt-tool-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lbt-tool-card__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--lbt-border);
    object-fit: contain;
    background: var(--lbt-surface);
    flex-shrink: 0;
    padding: 6px;
}

.lbt-tool-card__logo--placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--lbt-border);
    background: var(--lbt-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--lbt-label);
    flex-shrink: 0;
}

.lbt-tool-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--lbt-near-black);
    margin: 0;
}

.lbt-tool-card__tagline {
    font-size: 13px;
    color: var(--lbt-gray);
    margin: 0;
}

.lbt-tool-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lbt-tool-card__description {
    font-size: 14px;
    color: var(--lbt-gray);
    line-height: 1.5;
    flex: 1;
}

.lbt-tool-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.lbt-tool-card__best-for {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lbt-label);
}

/* ── Problem Card (homepage) ──────────────────────────────────────────────── */
.lbt-problem-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.lbt-problem-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--lbt-near-black);
    margin: 0;
    transition: color 0.15s;
}

.lbt-problem-card:hover .lbt-problem-card__title {
    color: var(--lbt-pink);
}

.lbt-problem-card__summary {
    font-size: 13px;
    color: var(--lbt-gray);
    line-height: 1.5;
    margin: 0;
}

.lbt-problem-card__arrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--lbt-pink);
    opacity: 0;
    transition: opacity 0.15s;
}

.lbt-problem-card:hover .lbt-problem-card__arrow {
    opacity: 1;
}

/* ── Category Section (homepage) ─────────────────────────────────────────── */
.lbt-category-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
    padding: 48px 0;
    border-top: 1px solid var(--lbt-border);
}

.lbt-category-section:first-child {
    border-top: none;
    padding-top: 0;
}

.lbt-category-section__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lbt-near-black);
    margin-bottom: 8px;
}

.lbt-category-section__description {
    font-size: 14px;
    color: var(--lbt-gray);
    line-height: 1.5;
}

.lbt-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── Tool Detail — Spec layout ────────────────────────────────────────────── */
.lbt-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.lbt-spec-table tr {
    border-bottom: 1px solid var(--lbt-border);
}

.lbt-spec-table tr:last-child {
    border-bottom: none;
}

.lbt-spec-table td {
    padding: 16px 0;
    vertical-align: top;
}

.lbt-spec-table td:first-child {
    width: 200px;
    padding-right: 32px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lbt-label);
    white-space: nowrap;
}

/* ── Capability chips ─────────────────────────────────────────────────────── */
.lbt-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lbt-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--lbt-border);
    color: var(--lbt-gray);
    background: var(--lbt-surface);
}

/* ── Dark CTA section ─────────────────────────────────────────────────────── */
.lbt-cta-dark {
    background: var(--lbt-dark-bg);
    color: var(--lbt-dark-text);
    padding: 64px 0;
    text-align: center;
}

.lbt-cta-dark h2 {
    color: var(--lbt-dark-text);
    margin-bottom: 12px;
}

.lbt-cta-dark p {
    color: rgba(249, 250, 251, 0.7);
    font-size: 18px;
    margin-bottom: 32px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.lbt-hero {
    padding: 64px 0 48px;
}

.lbt-hero__eyebrow {
    margin-bottom: 16px;
}

.lbt-hero h1 {
    margin-bottom: 16px;
}

.lbt-hero__sub {
    font-size: 18px;
    color: var(--lbt-gray);
    max-width: 600px;
    margin-bottom: 0;
}

/* ── Problem page hero ────────────────────────────────────────────────────── */
.lbt-problem-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--lbt-border);
    margin-bottom: 48px;
}

.lbt-problem-hero h1 {
    margin-bottom: 16px;
}

.lbt-problem-hero__summary {
    font-size: 18px;
    color: var(--lbt-gray);
    max-width: 680px;
}

/* ── Tools grid (problem page) ────────────────────────────────────────────── */
.lbt-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 64px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.lbt-footer {
    border-top: 1px solid var(--lbt-border);
    padding: 32px 0;
    margin-top: 64px;
}

.lbt-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lbt-footer__credit {
    font-size: 13px;
    color: var(--lbt-label);
}

.lbt-footer__credit a {
    color: var(--lbt-near-black);
    font-weight: 500;
}

.lbt-footer__credit a:hover {
    color: var(--lbt-pink);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lbt-category-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lbt-problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lbt-container { padding: 0 16px; }

    .lbt-problem-grid {
        grid-template-columns: 1fr;
    }

    .lbt-tools-grid {
        grid-template-columns: 1fr;
    }

    .lbt-spec-table td:first-child {
        width: auto;
        display: block;
        padding-bottom: 4px;
        padding-right: 0;
    }

    .lbt-spec-table td:last-child {
        display: block;
        padding-top: 0;
    }
}
