/* ============================================================================
   TRACTION KEEPER — FEATURES PAGE v1.1
   Supplement to marketing.css + homepage.css.
   Features-page-specific styles; all shared utilities live in parent files.
   Architecture: Executive/PRODUCT_PAGE_ARCHITECTURE.md (capability guide variant)
   ============================================================================ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.fp-hero {
    background: var(--tk-color-primary);
    padding: 96px 0 104px;
}

.fp-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--tk-space-8);
}

.fp-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.45);
    margin-bottom: 20px;
}

.fp-hero-h1 {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: #fff;
    margin-bottom: 24px;
}

.fp-hero-lead {
    font-size: clamp(16px, 1.9vw, 18px);
    line-height: 1.8;
    color: rgba(255,255,255,.78);
}

.fp-hero-lead + .fp-hero-lead {
    margin-top: 14px;
}

.fp-hero-questions {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
}

.fp-hero-questions li {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,.65);
    padding: 10px 0 10px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    position: relative;
}

.fp-hero-questions li:last-child {
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.fp-hero-questions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
}

.fp-hero-cta {
    margin-top: 44px;
}

/* ── Capability sections ─────────────────────────────────────────────────── */
.fp-capability {
    padding: 112px 0;
    background: var(--tk-color-bg);
}

.fp-capability--surface {
    background: var(--tk-color-surface);
    border-top: 1px solid var(--tk-color-border-subtle);
    border-bottom: 1px solid var(--tk-color-border-subtle);
}

.fp-cap-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--tk-space-8);
}

.fp-cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.fp-cap-grid--reversed .fp-cap-content { order: 2; }
.fp-cap-grid--reversed .fp-cap-visual   { order: 1; }

/* Content column */
.fp-cap-content {
    display: flex;
    flex-direction: column;
}

.fp-cap-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--tk-color-text-muted);
    margin-bottom: 8px;
}

.fp-cap-h2 {
    font-size: clamp(19px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--tk-color-text-heading);
    margin-bottom: 6px;
}

.fp-cap-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tk-color-primary-light);
    margin-bottom: 28px;
}

/* Labeled structured blocks within content */
.fp-cap-block {
    /* no default margin; the + selector handles spacing between blocks */
}

.fp-cap-block + .fp-cap-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--tk-color-border-subtle);
}

.fp-cap-block-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tk-color-text-muted);
    margin-bottom: 12px;
}

.fp-cap-block-body {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--tk-color-text-secondary);
}

.fp-cap-block-body p + p {
    margin-top: 12px;
}

.fp-cap-block-body strong {
    font-weight: 600;
    color: var(--tk-color-text-heading);
}

.fp-cap-block-body em {
    font-style: italic;
}

/* Visual column */
.fp-cap-visual {
    display: flex;
    flex-direction: column;
}

/* Related capabilities — below the 2-col grid, full width */
.fp-cap-related {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-top: 56px;
    padding: 16px 20px;
    background: var(--tk-color-primary-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(36, 59, 83, .12);
}

.fp-cap-related-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--tk-color-primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.fp-cap-related-body {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--tk-color-text-secondary);
    font-style: italic;
}

/* Capability chips within related text */
.fp-cap-chip {
    display: inline-block;
    background: var(--tk-color-surface);
    border: 1px solid #C5D4E8;
    color: var(--tk-color-primary);
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 9px 2px;
    border-radius: 20px;
    text-decoration: none;
    font-style: normal;
    white-space: nowrap;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .15s, color .15s, border-color .15s;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.fp-cap-chip:hover {
    background: var(--tk-color-primary);
    color: #fff;
    border-color: var(--tk-color-primary);
}

/* ── Summary section ─────────────────────────────────────────────────────── */
.fp-summary {
    padding: 96px 0;
    background: var(--tk-color-surface);
    border-top: 1px solid var(--tk-color-border-subtle);
}

.fp-summary-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--tk-space-8);
}

.fp-summary-intro {
    font-size: 17px;
    line-height: 1.85;
    color: var(--tk-color-text-secondary);
}

.fp-summary-intro p + p {
    margin-top: 16px;
}

.fp-summary-items {
    display: flex;
    flex-direction: column;
    margin-top: 36px;
}

.fp-summary-item {
    padding: 18px 0;
    border-top: 1px solid var(--tk-color-border-subtle);
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--tk-color-text-secondary);
}

.fp-summary-item:last-child {
    border-bottom: 1px solid var(--tk-color-border-subtle);
}

.fp-summary-item strong {
    font-weight: 600;
    color: var(--tk-color-text-heading);
}

.fp-summary-closing {
    margin-top: 40px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--tk-color-text-secondary);
}

.fp-summary-closing p + p {
    margin-top: 16px;
}

.fp-summary-closing strong {
    font-weight: 600;
    color: var(--tk-color-text-heading);
}

/* ── Closing / CTA section ───────────────────────────────────────────────── */
.fp-closing {
    background: var(--tk-color-primary);
    padding: 96px 0;
}

.fp-closing-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--tk-space-8);
}

.fp-closing-h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: #fff;
    margin-bottom: 28px;
}

.fp-closing-body {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255,255,255,.75);
}

.fp-closing-body p + p {
    margin-top: 16px;
}

.fp-closing-cta {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.fp-closing-cta-lead {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    margin-bottom: 32px;
}

.fp-beta-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fp-beta-input {
    flex: 1;
    min-width: 220px;
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: var(--tk-font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, background .2s;
}

.fp-beta-input::placeholder {
    color: rgba(255,255,255,.38);
}

.fp-beta-input:focus {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.12);
}

#fpFormErrorMsg {
    display: none;
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255,120,120,.9);
    line-height: 1.5;
}

#fpFormErrorMsg.visible {
    display: block;
}

/* ── Scroll offset ───────────────────────────────────────────────────────── */
html {
    scroll-padding-top: 130px;
}

/* ── Capability navigation bar ───────────────────────────────────────────── */
.fp-capnav {
    position: sticky;
    top: 60px;
    z-index: 90;
    background: var(--tk-color-surface);
    border-bottom: 1px solid var(--tk-color-border-subtle);
}

.fp-capnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--tk-space-8);
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
    height: 52px;
}

.fp-capnav-inner::-webkit-scrollbar {
    display: none;
}

.fp-capnav-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--tk-color-text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.fp-capnav-chip:hover {
    background: var(--tk-color-primary-bg);
    color: var(--tk-color-primary);
    border-color: #C5D4E8;
}

.fp-capnav-chip.is-active {
    background: var(--tk-color-primary-bg);
    color: var(--tk-color-primary);
    border-color: #C5D4E8;
    font-weight: 700;
}

.fp-capnav-chip:focus-visible {
    outline: 2px solid var(--tk-color-primary);
    outline-offset: 2px;
}

/* ── Hero decision note ──────────────────────────────────────────────────── */
.fp-hero-decision-note {
    margin-top: 32px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    font-style: italic;
}

/* ── Screenshot placeholder caption ─────────────────────────────────────── */
.fp-cap-placeholder-caption {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tk-color-text-muted);
    margin-top: 10px;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .fp-cap-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fp-cap-grid--reversed .fp-cap-content { order: 0; }
    .fp-cap-grid--reversed .fp-cap-visual   { order: 0; }

    .fp-cap-related {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 680px) {
    .fp-capnav-inner {
        padding: 0 16px;
        height: 44px;
    }

    .fp-capnav-chip {
        font-size: 11px;
        padding: 4px 10px;
    }

    .fp-hero,
    .fp-capability,
    .fp-summary,
    .fp-closing {
        padding: 72px 0;
    }

    .fp-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .fp-beta-form {
        flex-direction: column;
    }

    .fp-beta-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fp-closing-cta .btn {
        width: 100%;
        justify-content: center;
    }
}
