/* ==========================================================================
   AutoCrafterAI — Shared marketing components
   Loaded site-wide so the same blocks (split layouts, usage card, model grid,
   comparison table, breadcrumb, category nav) work on any marketing page.
   Page-specific styling stays in home.css / pages.css.
   ========================================================================== */

/* --- Split layout (copy beside a visual) --- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.split-copy { max-width: 520px; }
.split-visual { min-width: 0; }

/* --- Check list --- */
.check-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px;
    color: var(--text-primary);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-gradient);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat,
        linear-gradient(#000, #000);
    -webkit-mask-composite: source-over;
}

/* --- Token-usage dashboard card --- */
.usage-card {
    padding: 24px;
    color: #fff;
    background: linear-gradient(160deg, #101a24, #0b131b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 34px 64px -30px rgba(17, 42, 51, 0.5);
}
.usage-title { font-family: var(--font-heading); font-size: 16px; font-weight: 800; }
.usage-sub { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.62); }
.usage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.usage-stat {
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}
.usage-stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.usage-stat-value { display: block; margin: 6px 0 3px; font-family: var(--font-heading); font-size: 26px; font-weight: 800; }
.usage-stat-value--accent { color: var(--brand-bright); }
.usage-stat-foot { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.usage-table { padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.usage-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 9px 0;
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}
.usage-row span:not(.usage-model) { text-align: right; min-width: 56px; }
.usage-row--head { font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.usage-model {
    justify-self: start;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12.5px;
    color: #cfe9f2;
    padding: 3px 9px;
    background-color: rgba(24, 168, 200, 0.16);
    border-radius: 6px;
    text-align: left;
}

/* --- AI model grid --- */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 0 auto; }
.model-card {
    padding: 26px 24px;
    text-align: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.model-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-bright);
    box-shadow: 0 18px 36px -22px rgba(24, 168, 200, 0.4);
}
.model-mark {
    display: inline-grid; place-items: center;
    width: 54px; height: 54px; margin-bottom: 14px;
    color: var(--brand);
    background-color: var(--brand-tint);
    border-radius: 50%;
}
.model-mark svg { width: 26px; height: 26px; }
.model-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.model-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.models-note { margin: 26px auto 0; max-width: 620px; text-align: center; font-size: 14.5px; color: var(--text-secondary); }
.models-note a { color: var(--brand); font-weight: 600; }

/* --- Comparison table --- */
.compare-wrap {
    max-width: 940px;
    margin: 0 auto;
    overflow-x: auto;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.compare thead th {
    font-family: var(--font-heading); font-size: 13px; font-weight: 700;
    letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-secondary);
    background-color: var(--bg-soft);
}
.compare tbody th { font-weight: 700; color: var(--text-primary); width: 30%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .compare-us { background-color: var(--brand-tint); }
.compare thead th.compare-us { color: var(--brand); }
.compare-no, .compare-yes { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--text-secondary); }
.compare-no::before { content: "✕"; flex: none; font-weight: 700; color: #c0563f; line-height: 1.4; }
.compare-yes { color: var(--text-primary); font-weight: 600; }
.compare-yes::before { content: "✓"; flex: none; font-weight: 700; color: var(--brand); line-height: 1.4; }

/* --- Breadcrumb (visible) --- */
.crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
}
.crumb a { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb [aria-current] { color: rgba(255, 255, 255, 0.72); }

/* --- Page-hero actions (on the dark banner) --- */
.page-hero-actions { justify-content: center; margin-top: 28px; }
.page-hero .btn--ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.page-hero .btn--ghost:hover { border-color: #fff; background-color: rgba(255, 255, 255, 0.08); color: #fff; }
.page-hero-trust { margin: 20px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.62); }

/* --- Sticky in-page category nav --- */
.cat-nav {
    position: sticky;
    top: 62px;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.cat-nav-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
    flex: none;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.cat-link:hover, .cat-link.is-active { color: var(--brand); background-color: var(--brand-tint); }

.plans-note { margin: 28px 0 0; text-align: center; }

/* --- Status pill (e.g. "In development") on a dark page hero --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd9a8;
    background-color: rgba(255, 176, 74, 0.16);
    border: 1px solid rgba(255, 176, 74, 0.4);
    border-radius: var(--radius-pill);
}
.status-pill::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background-color: #ffb04a;
}
.page-hero-lead--small { font-size: 15.5px; color: rgba(255, 255, 255, 0.66); margin-top: 12px; }

/* --- Numbered pipeline --- */
.pipeline {
    counter-reset: none;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pipe-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: start;
    padding: 14px 0;
}
/* Both text rows sit in column 2 — otherwise the note wraps into the
   44px number column and breaks to one word per line. */
.pipe-label, .pipe-note { grid-column: 2; }
.pipe-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 42px;
    bottom: -6px;
    width: 2px;
    background: linear-gradient(var(--brand-bright), rgba(24, 168, 200, 0.15));
}
.pipe-n {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background-image: var(--brand-gradient);
    border-radius: 50%;
    z-index: 1;
}
.pipe-label { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.5; }
.pipe-note { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.pipeline-note { max-width: 760px; margin: 22px auto 0; padding-left: 60px; font-size: 14px; color: var(--text-secondary); }

/* --- Public roadmap columns --- */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road-col {
    padding: 24px 22px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.road-head { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.road-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.road-dot--now { background-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16); }
.road-dot--next { background-color: var(--brand-bright); box-shadow: 0 0 0 4px rgba(24, 168, 200, 0.16); }
.road-dot--maybe { background-color: #9aa7ad; box-shadow: 0 0 0 4px rgba(154, 167, 173, 0.16); }
.road-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.road-list li { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.road-list strong { display: block; color: var(--text-primary); font-size: 15px; margin-bottom: 2px; }

/* --- Waitlist form --- */
.waitlist-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.waitlist-note { margin: 0; font-size: 13.5px; color: var(--text-secondary); text-align: center; }

@media (max-width: 860px) {
    .roadmap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split-copy { max-width: none; }
}
@media (max-width: 760px) {
    .models-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .usage-stats { grid-template-columns: 1fr; }
}
