﻿/* =========================================================
   conn-pages.css
   Shared styles for all /Conn/* pages (Get Started / Help)
   Goal: consistent modern styling + SEO-friendly layout
========================================================= */

.conn-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 16px 60px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111827;
}

    .conn-page h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }


/* =========================================================
   Breadcrumb
========================================================= */

.conn-breadcrumb {
    font-size: 14px;
    margin-bottom: 18px;
    color: #6b7280;
}

    .conn-breadcrumb a {
        color: #374151;
        text-decoration: none;
    }

        .conn-breadcrumb a:hover {
            text-decoration: underline;
        }

/* =========================================================
   Hero
========================================================= */

.conn-hero {
    padding: 22px 0 14px;
}

.conn-hero-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.conn-hero h1 {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 600;
}

.conn-lead {
    font-size: 18px;
    color: #374151;
    margin: 0;
    max-width: 860px;
}

.conn-hero-top .conn-btn {
    padding: 9px 13px;
    font-size: 13px;
}

/* =========================================================
   Buttons
========================================================= */

.conn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.conn-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

    .conn-btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        color: #fff;
    }

.conn-btn-secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

    .conn-btn-secondary:hover {
        background: #f9fafb;
        color: #111827;
    }

.conn-btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.conn-btn-row-left {
    justify-content: flex-start;
}

/* =========================================================
   Sections (full-width)
========================================================= */

.conn-section {
    padding: 26px 0;
    border-top: 1px solid #e5e7eb;
}

    .conn-section h2 {
        font-size: 22px;
        margin: 0 0 10px;
    }

    .conn-section p {
        font-size: 16px;
        color: #374151;
        line-height: 1.6;
        margin: 0 0 12px;
    }

    .conn-section ul {
        margin: 0 0 12px;
        padding-left: 20px;
    }

    .conn-section li {
        font-size: 16px;
        color: #374151;
        line-height: 1.6;
        margin: 4px 0;
    }

/* =========================================================
   Feature section (2-column with image)
   Use only for the FIRST section where you want image + text
========================================================= */

.conn-section-feature {
    padding-top: 18px;
}

.conn-section-grid-feature {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: start;
}

/* =========================================================
   Media / Images
========================================================= */

.conn-media {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.conn-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* =========================================================
   Notes / Callouts
========================================================= */

.conn-note {
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #374151;
}

/* =========================================================
   CTA box
========================================================= */

.conn-cta {
    margin-top: 26px;
    padding: 26px;
    background: #f3f4f6;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

    .conn-cta h2 {
        font-size: 24px;
        margin: 0 0 12px;
    }

    .conn-cta p {
        margin: 0 auto 18px;
        max-width: 780px;
        color: #374151;
        font-size: 16px;
        line-height: 1.6;
    }

/* =========================================================
   Two-column list (for "Who uses TrackRoad?" section)
========================================================= */

.conn-list-two-col {
    columns: 2;
    column-gap: 26px;
    padding-left: 18px;
}

@media (max-width: 700px) {
    .conn-list-two-col {
        columns: 1;
    }
}

/* =========================================================
   Footer
========================================================= */

.conn-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.conn-footnote {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

/* =========================================================
   Responsive Layout
========================================================= */

@media (max-width: 900px) {
    .conn-section-grid-feature {
        grid-template-columns: 1fr;
    }

    .conn-hero h1 {
        font-size: 30px;
    }

    .conn-lead {
        font-size: 16px;
    }

    .conn-section h2 {
        font-size: 20px;
    }

    .conn-section p,
    .conn-section li {
        font-size: 15px;
    }
}


/* =========================================================
   FAQ (Conn pages) — best-practice UI
========================================================= */
.conn-faq {
    margin-top: 48px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,.04);
}

.conn-faq-header {
    margin-bottom: 18px;
}

.conn-faq-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.conn-faq-subtitle {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    max-width: 780px;
}

.conn-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ item (card) */
.conn-faq-item {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fafbfc;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .conn-faq-item:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
        transform: translateY(-1px);
    }

/* Summary */
.conn-faq-q {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #111827;
    list-style: none;
}

    /* Remove default marker */
    .conn-faq-q::-webkit-details-marker {
        display: none;
    }

    .conn-faq-q::marker {
        content: "";
    }

/* Expand/collapse icon */
.conn-faq-icon {
    width: 16px;
    height: 16px;
    position: relative;
    flex: 0 0 16px;
    opacity: 0.7;
}

    .conn-faq-icon::before,
    .conn-faq-icon::after {
        content: "";
        position: absolute;
        background: #111827;
        border-radius: 2px;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .conn-faq-icon::before {
        width: 16px;
        height: 2px;
        top: 7px;
        left: 0;
    }

    .conn-faq-icon::after {
        width: 2px;
        height: 16px;
        top: 0;
        left: 7px;
    }

/* Open state = turn plus into minus */
.conn-faq-item[open] .conn-faq-icon::after {
    opacity: 0;
    transform: scaleY(0.5);
}

/* Answer */
.conn-faq-a {
    padding: 0 16px 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.65;
    animation: connFaqFade 0.18s ease-in;
}

@keyframes connFaqFade {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .conn-faq {
        padding: 18px;
    }

    .conn-faq-title {
        font-size: 20px;
    }

    .conn-faq-q {
        padding: 12px 14px;
        font-size: 15px;
    }

    .conn-faq-a {
        padding: 0 14px 14px;
    }
}


/* Welcome page extras */
.conn-badge-new {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #fee2e2;
    color: #991b1b;
    margin-right: 6px;
}

.conn-link-cta {
    font-weight: 600;
    text-decoration: underline;
}

.conn-details-summary {
    font-weight: 700;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    list-style: none;
}

    .conn-details-summary::-webkit-details-marker {
        display: none;
    }


/* =========================================================
   Client Logos + Testimonials
========================================================= */

.conn-client-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .conn-client-card:hover {
        box-shadow: 0 18px 42px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

.conn-client-logo {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
}

/* Testimonials */
.conn-testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conn-testimonial {
    background: #fafbfc;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.65;
    box-shadow: 0 8px 22px rgba(0,0,0,.03);
}


/* =========================================================
   ConnSite.Master Layout (LeftNav + Main + RightSidebar)
========================================================= */

.conn-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 220px;
    gap: 26px;
    align-items: start;
    max-width: 1280px;
    margin: 15px auto 0 auto;
    padding: 0 18px;
}

@media (max-width: 1100px) {
    .conn-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .conn-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .conn-layout {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Conn Left Navigation
========================================================= */

.conn-leftnav {
    position: sticky;
    top: 96px;
    align-self: start;
    height: calc(100vh - 150px);
    width: 260px;
}

.conn-leftnav-inner {
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
}

.conn-leftnav-title {
    font-weight: 700;
    font-size: 15px;
    padding: 10px 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    margin-bottom: 10px;
}

.conn-leftnav-group {
    padding: 10px 10px 6px;
}

.conn-leftnav-group-title {
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 6px;
    opacity: 0.85;
}

.conn-leftnav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .conn-leftnav-list a {
        display: block;
        padding: 8px 10px;
        border-radius: 10px;
        text-decoration: none;
        color: #1f2937;
        font-size: 14px;
        line-height: 1.35;
    }

        .conn-leftnav-list a:hover {
            background: rgba(0,0,0,.04);
            text-decoration: none;
        }

        .conn-leftnav-list a.is-active {
            background: rgba(37, 99, 235, 0.12);
            border-left: 3px solid #2563eb;
            padding-left: 12px;
            font-weight: 800;
            color: #1d4ed8;
        }

.conn-leftnav-group.has-active .conn-leftnav-group-title {
    color: #1d4ed8;
}

/* Mobile */
.conn-leftnav-toggle {
    display: none;
    width: 100%;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 10px;
}

.conn-leftnav-toggle-icon {
    float: right;
    opacity: .8;
}

.conn-leftnav-panel {
    display: block;
}

@media (max-width: 900px) {
    .conn-leftnav {
        position: relative;
        top: 0;
        height: unset;
        width: unset;
        margin-top: 15px;
    }

    .conn-leftnav-inner {
        height: unset;
        overflow-y: unset;
        padding-right: unset;
    }

    .conn-leftnav-toggle {
        display: block;
    }

    .conn-leftnav-panel {
        display: none;
    }

        .conn-leftnav-panel.is-open {
            display: block;
        }
}



/* =========================================================
   Conn Right Sidebar TOC
========================================================= */

.conn-toc-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 10px 0;
}

.conn-toc-sidebar-inner {
    border-left: 3px solid rgba(0,0,0,0.08);
    padding-left: 16px;
}

.conn-toc-title {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
}

.conn-toc-links a {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    padding: 7px 10px;
    margin: 3px 0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    opacity: 0.84;
    transition: background 0.15s ease, opacity 0.15s ease;
}

    .conn-toc-links a:hover {
        background: rgba(37, 99, 235, 0.06);
        opacity: 1;
    }

    .conn-toc-links a.is-active {
        background: rgba(37, 99, 235, 0.12);
        font-weight: 700;
        opacity: 1;
    }

/* Hide sidebar on smaller screens */
@media (max-width: 1100px) {
    .conn-toc-sidebar {
        display: none;
    }
}

/* Heading anchor icon */
.conn-heading {
    position: relative;
    scroll-margin-top: 90px;
}

.conn-anchor {
    margin-left: 8px;
    font-size: 0.85em;
    opacity: 0;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.conn-heading:hover .conn-anchor {
    opacity: 0.7;
}

.conn-anchor.is-copied {
    opacity: 1;
    font-weight: bold;
}
