/* ==========================================================================
   TAAP — Telemetry Agentic AI Platform page styles
   Tokens inherited from site.css / Bootstrap base.
   ========================================================================== */

/* ---------- Hero ---------- */
.taap-jumbotron {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: #0a1828;
}

.taap-jumbotron .video-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.taap-jumbotron .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taap-jumbotron .video-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,15,32,0.82) 0%, rgba(0,60,120,0.55) 100%);
    pointer-events: none;
}

.taap-jumbotron .parallax {
    position: relative;
    z-index: 2;
    padding: 110px 20px 50px;
    text-align: center;
}

.taap-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.taap-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 14px;
}

.taap-hero-title {
    font-size: clamp(28pt, 4.2vw, 52pt);
    font-weight: 800;
    line-height: 1.05;
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
    margin: 0 0 6px;
}

.taap-hero-tagline {
    font-size: clamp(13pt, 1.8vw, 20pt);
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    max-width: 680px;
    margin: 8px auto 0;
}

.taap-hero-cta {
    margin-top: 32px;
    padding-bottom: 50px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Generic section wrapper ---------- */
.taap-section {
    padding: 52px 20px;
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
}

.taap-section h2 {
    font-size: clamp(22px, 3vw, 34px);
    color: var(--color-text, #1a2533);
    margin-bottom: 12px;
}

.taap-section h3 {
    font-size: clamp(18px, 2.2vw, 26px);
    color: var(--color-text, #1a2533);
    margin-bottom: 10px;
}

.taap-section p {
    text-align: left;
    color: var(--color-text, #1a2533);
    max-width: 820px;
    margin: 14px auto;
    line-height: 1.7;
}

/* ---------- FAQ accordion ---------- */
.home-faq {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.home-faq-intro {
    text-align: center;
    color: var(--color-text-muted, #526070);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 8px;
}

.faq-accordion {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e1e6eb);
    border-radius: var(--radius-card, 10px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.08));
    overflow: hidden;
    text-align: left;
}

.faq-item h3 {
    margin: 0;
    text-align: left;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.faq-toggle:hover,
.faq-toggle:focus-visible {
    background: var(--color-surface-alt, #f5f7f9);
}

.faq-toggle:focus-visible {
    outline: 2px solid var(--color-brand, #1a2533);
    outline-offset: -2px;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text, #1a2533);
    line-height: 1.4;
}

.faq-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-surface-alt, #f5f7f9);
    color: var(--color-brand, #1a2533);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}

.faq-toggle[aria-expanded="true"] .faq-icon {
    background: var(--color-brand, #1a2533);
    color: #ffffff;
}

.faq-panel {
    padding: 0 22px 20px;
}

.faq-panel p {
    margin: 0;
    color: var(--color-text-muted, #526070);
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    max-width: none;
}

/* ---------- Trust / security strip ---------- */
.taap-trust-strip {
    max-width: 860px;
    margin: 18px auto 30px;
    background: #eef7ff;
    border-left: 4px solid var(--color-brand, #005fa3);
    border-radius: 8px;
    padding: 13px 16px;
    text-align: left;
    color: var(--color-text, #1a2533);
    font-size: 14px;
}

/* ---------- Lifecycle flow ---------- */
.taap-lifecycle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 28px auto;
}

.taap-lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.taap-lifecycle-step .step-label {
    background: var(--color-brand, #005fa3);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 24px;
    padding: 6px 18px;
    white-space: nowrap;
}

.taap-lifecycle-arrow {
    font-size: 20px;
    color: var(--color-brand, #005fa3);
    align-self: center;
    padding: 0 4px;
    line-height: 1;
}

/* ---------- Capability cards ---------- */
.taap-cards {
    display: grid;
    /* Use a fixed column layout so rows remain balanced (same number of cards per row).
       Default to 3 columns on wide screens, 2 on medium, and 1 on small devices. */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 28px auto;
    text-align: left;
}

/* Adjust columns at common breakpoints to keep rows balanced */
@media (max-width: 1000px) {
    .taap-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .taap-cards { grid-template-columns: 1fr; }
}

.taap-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #dce4ee);
    border-radius: var(--radius-card, 10px);
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.07));
    padding: 22px 20px;
    transition: box-shadow 0.18s, transform 0.18s;
}

.taap-card:hover {
    box-shadow: var(--shadow-card-hover, 0 6px 20px rgba(0,0,0,0.12));
    transform: translateY(-3px);
}

.taap-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-brand, #005fa3);
    margin: 0 0 8px;
}

.taap-card p {
    font-size: 14px;
    margin: 0;
    text-align: left;
    max-width: none;
    color: var(--color-text, #1a2533);
}

/* ---------- Pillar stats row ---------- */
.taap-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 24px auto;
}

.taap-pillar {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #dce4ee);
    border-radius: var(--radius-card, 10px);
    padding: 20px 16px;
    text-align: center;
}

.taap-pillar .pillar-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-brand, #005fa3);
}

.taap-pillar .pillar-label {
    font-size: 13px;
    color: var(--color-text-muted, #5a6a7a);
    margin-top: 4px;
}

/* ---------- Comparison table ---------- */
.taap-comparison {
    max-width: 820px;
    margin: 24px auto;
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
}

.taap-comparison th {
    background: var(--color-brand, #005fa3);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}

.taap-comparison td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border, #dce4ee);
    text-align: left;
    vertical-align: top;
}

.taap-comparison tr:nth-child(even) td {
    background: #f6f9fc;
}

/* ---------- Section CTA ---------- */
.taap-cta-block {
    text-align: center;
    margin: 32px 0 8px;
}

/* ---------- Divider ---------- */
.taap-divider {
    border: none;
    border-top: 1px solid var(--color-border, #dce4ee);
    max-width: 860px;
    margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .taap-jumbotron       { min-height: 340px; }
    .taap-jumbotron .parallax { padding: 80px 16px 36px; }
    .taap-hero-title      { font-size: 24pt; }
    .taap-hero-tagline    { font-size: 13pt; }
    .taap-lifecycle       { flex-direction: column; align-items: center; }
    .taap-lifecycle-arrow { transform: rotate(90deg); }
}
