/* ============================================================
   Autosolve AI — Site Styles
   Brand: coral #DF624C / blue #4C6BAF / dark navy #1a2540
   ============================================================ */

:root {
    --coral:       #DF624C;
    --coral-dark:  #c44d39;
    --blue:        #4C6BAF;
    --dark:        #343a40;
    --bg-light:    #f5f6fa;
    --text:        #212529;
    --border:      #dee2e6;
}

/* ---- Base ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
}

/* ---- Navbar ---- */
.as-navbar {
    background-color: var(--dark) !important;
    border-bottom: 2px solid var(--coral);
    padding: 0.6rem 0;
}

.nav-logo-mark {
    border-radius: 4px;
    vertical-align: middle;
}

.nav-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.text-coral { color: var(--coral) !important; }

.as-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    transition: color 0.15s;
}

.as-navbar .nav-link:hover,
.as-navbar .nav-link.active {
    color: #fff !important;
}

.navbar-spacer { height: 66px; }

/* ---- Buttons ---- */
.btn-coral {
    background-color: #DF624C;
    border-color: #DF624C;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.15s, border-color 0.15s;
}
.btn-coral:hover {
    background-color: var(--coral-dark);
    border-color: var(--coral-dark);
    color: #fff;
}
.btn-outline-coral {
    border: 2px solid var(--coral);
    color: var(--coral);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    background: transparent;
    transition: all 0.15s;
}
.btn-outline-coral:hover {
    background-color: var(--coral);
    color: #fff;
}

/* ---- Hero (landing page) ---- */
.as-hero {
    background: var(--bg-light);
    padding: 5rem 0 4rem;
}

.as-hero .hero-label {
    display: inline-block;
    background: rgba(223,98,76,0.1);
    border: 1px solid rgba(223,98,76,0.3);
    color: #DF624C;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.as-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.as-hero .lead {
    font-size: 1.15rem;
    color: #495057;
    max-width: 560px;
}

.as-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ---- Section spacing ---- */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a2540;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
}

/* ---- Feature cards ---- */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(26,37,64,0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(223,98,76,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--coral);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ---- How it works steps ---- */
.step-number {
    width: 40px;
    height: 40px;
    background: var(--coral);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.step-connector {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 0.5rem auto;
}

/* ---- Screenshots ---- */
.screenshot-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(26,37,64,0.1);
    transition: box-shadow 0.2s;
}

.screenshot-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.6rem;
}

.screenshot-link { display: block; text-decoration: none; }
.screenshot-link:hover .screenshot-wrap {
    box-shadow: 0 8px 32px rgba(26,37,64,0.2);
    cursor: zoom-in;
}

/* ---- Product hero / KB page ---- */
.kb-hero {
    background: #4C6BAF;
    color: #fff;
    padding: 5rem 0 4rem;
}

/* ---- Demo video ---- */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(26,37,64,0.15);
}

.video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ---- Pricing / CTA band ---- */
.cta-band {
    background: var(--blue);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-band h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.75rem;
}

.cta-band p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

.btn-white {
    background: #fff;
    color: var(--coral);
    font-weight: 700;
    padding: 0.7rem 1.75rem;
    border-radius: 6px;
    border: 2px solid #fff;
    transition: all 0.15s;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

/* ---- Services page ---- */
.services-hero {
    background: #4C6BAF;
    color: #fff;
    padding: 5rem 0 4rem;
}

/* ---- Legal pages ---- */
.legal-hero {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.legal-hero h1 {
    font-weight: 800;
    color: var(--dark);
}

.legal-doc-frame {
    width: 100%;
    min-height: 75vh;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.legal-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    height: 100%;
}

.legal-card:hover {
    box-shadow: 0 6px 24px rgba(26,37,64,0.09);
    transform: translateY(-2px);
    border-color: var(--coral);
    color: var(--text);
}

.legal-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(223,98,76,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--coral);
    margin-bottom: 1rem;
}

.legal-card h5 {
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.legal-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---- FAQ accordion ---- */
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--dark);
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--coral);
    background-color: rgba(223,98,76,0.05);
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    filter: none;
}

/* ---- Freshworks badge ---- */
.freshworks-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.15s;
}

.freshworks-badge:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* ---- Footer ---- */
.as-footer {
    background-color: var(--dark);
    color: rgba(255,255,255,0.75);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em;
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-divider { border-color: rgba(255,255,255,0.1); }

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal-link {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-legal-link:hover { color: rgba(255,255,255,0.85); }

.footer-sep {
    margin: 0 0.4rem;
    color: rgba(255,255,255,0.25);
}

/* ---- Utilities ---- */
.bg-light-custom { background-color: var(--bg-light); }
.text-dark-custom { color: var(--dark); }
.border-coral { border-color: var(--coral) !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .as-hero-btns { flex-direction: column; align-items: flex-start; }
    .section-pad { padding: 3rem 0; }
}
