/* Shared styles for text-led pages: about, integrations, technology, faq, news.
   Mirrors the look of software.php (dark hero, orange accents, checkmark lists). */
:root {
    --primary-blue: #71a9f7;
    --dark-blue: #002644;
    --orange: #ffa500;
    --white: #fff;
}

.content-hero {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 70px;
    text-align: center;
}

.content-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 20px;
}

.content-hero .lead {
    font-size: 1.3rem;
    max-width: 820px;
    margin: 0 auto;
    opacity: 0.95;
}

.content-hero .eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.content-section {
    padding: 70px 0;
    color: var(--dark-blue);
}

.content-section.alt {
    background-color: #f8f9fa;
}

.content-body {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.content-section h3 {
    font-size: 1.6rem;
    margin: 30px 0 10px;
    color: var(--dark-blue);
}

.content-section p,
.content-section li,
.content-section dd {
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-section a:not(.btn-contact) {
    color: #0a5fc7;
}

.content-section a:not(.btn-contact):hover {
    color: var(--dark-blue);
}

.checkmark-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.checkmark-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.checkmark-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--orange);
    font-weight: bold;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Exactly four cards: 2x2 (never 3 + 1), and 4 across where a full-width
   container has the room. */
.fact-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .container > .fact-grid:has(> :nth-child(4):last-child) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .fact-grid:has(> :nth-child(4):last-child) {
        grid-template-columns: 1fr;
    }
}

.fact-card {
    border: 1px solid rgba(0, 38, 68, 0.2);
    border-radius: 8px;
    padding: 22px 24px;
    background: var(--white);
    transition: border-color 0.3s;
}

.fact-card:hover {
    border-color: var(--orange);
}

.fact-card h3 {
    margin-top: 0;
    font-size: 1.35rem;
}

.fact-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

.fact-card i {
    font-size: 1.8rem;
    color: var(--orange);
    display: block;
    margin-bottom: 8px;
}

/* Timeline (about page) */
.timeline {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    border-left: 3px solid var(--primary-blue);
}

.timeline li {
    position: relative;
    padding: 0 0 22px 28px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--orange);
}

.timeline .year {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
    line-height: 1.2;
}

/* Integrations directory */
.integration-category {
    margin-bottom: 40px;
}

.integration-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.integration-list li {
    border: 1px solid rgba(0, 38, 68, 0.15);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1rem;
    line-height: 1.5;
}

.integration-list strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 2px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0, 38, 68, 0.15);
    padding: 26px 0;
}

.faq-item:first-of-type {
    padding-top: 0;
}

.faq-item h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Question index: a grid of tappable question cards that jump to each answer. */
.faq-index {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.content-section .faq-index a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 38, 68, 0.15);
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.content-section .faq-index a i {
    flex: none;
    font-size: 1.4rem;
    color: var(--orange);
    transition: transform 0.2s;
}

.content-section .faq-index a:hover,
.content-section .faq-index a:focus-visible {
    border-color: var(--orange);
    color: var(--dark-blue);
}

.content-section .faq-index a:hover i {
    transform: translateY(2px);
}

/* Anchored answers clear the fixed navigation bar. */
.faq-item {
    scroll-margin-top: calc(var(--nav-height, 90px) + 20px);
}

@media (prefers-reduced-motion: reduce) {
    .content-section .faq-index a,
    .content-section .faq-index a i {
        transition: none;
    }
}

/* Placeholders for owner input. Deliberately loud so they cannot ship unnoticed. */
.todo {
    background: #fff3cd;
    outline: 2px dashed #d39e00;
    padding: 0 4px;
}

/* News */
.news-meta {
    font-family: 'Montserrat', sans-serif;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Bottom call to action, matching software.php */
.contact-cta-section {
    background-color: var(--white);
    padding: 90px 0;
    text-align: center;
}

.contact-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-cta-section h2 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.contact-cta-section p {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-contact {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.btn-contact:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .content-hero {
        padding: 50px 0 45px;
    }
    .content-section {
        padding: 50px 0;
    }
    .content-section h2,
    .contact-cta-section h2 {
        font-size: 2.2rem;
    }
}
