/* =============================================
   AISSISTANT — SHARED STYLESHEET
   Shared by: index.html, privacy-policy.html,
              terms-and-conditions.html
   ============================================= */

/* ---- VARIABLES ---- */
:root {
    --navy:          #0B2046;
    --navy-700:      #102B5C;
    --blue:          #2E7CDB;
    --blue-600:      #2167C2;
    --blue-100:      #D6E6FB;
    --blue-50:       #EDF4FD;
    --bg:            #F4F6FF;
    --surface:       #FFFFFF;
    --border:        #E2E8F2;
    --text:          #0B2046;
    --text-muted:    #5A6B85;
    --success:       #10b981;
    --success-light: #d1fae5;
    --alert:         #f59e0b;

    /* semantic aliases */
    --bg-color:     var(--bg);
    --card-bg:      var(--surface);
    --text-main:    var(--text);
    --accent-color: var(--blue);
    --accent-light: var(--blue-50);
    --accent-dark:  var(--blue-600);
    --border-color: var(--border);
}

/* ---- RESET ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* ---- INLINE ELEMENTS (global, safe for all pages) ---- */
strong { color: var(--navy); }

code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.88em;
    color: var(--navy);
}

/* =============================================
   NAV
   ============================================= */
nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    display: block;
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin-left: 0;
    margin-bottom: 0;
}

.nav-links li {
    margin-bottom: 0;
    color: inherit;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-cta {
    background: var(--accent-color);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: #fff !important;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 40px 24px;
    text-align: center;
    font-size: 0.85rem;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #e2e8f0;
}

/* =============================================
   INDEX PAGE — HERO
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 50%, var(--blue) 100%);
    color: #fff;
    padding: 100px 24px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--blue-100);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--blue-100);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--blue-100);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #fff;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.15s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
}

/* ---- SOCIAL PROOF BAR ---- */
.proof-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.proof-icon {
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.proof-icon::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 24px;
}

.section-alt {
    background: var(--card-bg);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 56px;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.section-alt .feature-card {
    background: var(--bg-color);
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(46, 124, 219, 0.12);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* ---- HOW IT WORKS ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    position: relative;
}

.step {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 56px;
    right: 0;
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- QUOTE SECTION ---- */
.quote-section {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    padding: 80px 24px;
    text-align: center;
}

.quote-section blockquote {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.quote-section cite {
    font-size: 0.9rem;
    color: var(--blue-100);
    font-style: normal;
}

/* ---- FAQ ---- */
.faq-list {
    max-width: 720px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-stars {
    color: var(--blue);
    font-size: 1.25rem;
    letter-spacing: 2px;
    line-height: 1;
}

.testimonial-quote {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.testimonial-author {
    font-size: 0.88rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.testimonial-author strong {
    color: var(--navy);
    font-weight: 700;
}

/* ---- CTA BOTTOM ---- */
.cta-bottom {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-bottom h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.cta-bottom p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-accent {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(46, 124, 219, 0.35);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* =============================================
   DOCUMENT PAGES — privacy-policy, terms
   All scoped to .page-content so they cannot
   bleed into index.html styles.
   ============================================= */
.page-content {
    padding: 40px 20px;
}

/* Overrides the wide .container with a card layout */
.page-content .container {
    max-width: 800px;
    background: var(--card-bg);
    padding: 48px;
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(11, 32, 70, 0.06), 0 2px 4px -1px rgba(11, 32, 70, 0.04);
    border: 1px solid var(--border-color);
}

.page-content header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-content section {
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
    line-height: 1.3;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.page-content ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.6;
}

.effective-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ---- Privacy: guarantee box ---- */
/* Higher specificity (.page-content .guarantee-box h2 = 0,2,1) overrides
   .page-content h2 (0,1,1) for color and border override */
.page-content h2.guarantee-title {
    border-left-color: var(--success);
}

.guarantee-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.page-content .guarantee-box h2 {
    color: #166534;
    border-left-color: var(--success);
}

.page-content .guarantee-box p,
.page-content .guarantee-box li {
    color: #166534;
}

/* ---- Terms: alert box ---- */
.page-content h2.alert-title {
    border-left-color: var(--alert);
}

.alert-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.page-content .alert-box h2 {
    color: #92400e;
    border-left-color: var(--alert);
}

.page-content .alert-box p,
.page-content .alert-box li {
    color: #78350f;
}

/* ---- Contact info block ---- */
/* .page-content .contact-info (0,2,0) overrides .page-content ul (0,1,1) */
.page-content .contact-info {
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    list-style: none;
    margin-left: 0;
    margin-bottom: 0;
}

.page-content .contact-info li {
    display: flex;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.page-content .contact-info li:last-child {
    margin-bottom: 0;
}

.page-content .contact-info strong {
    width: 100px;
    display: inline-block;
    flex-shrink: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 14px 24px;
        gap: 12px;
    }
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero {
        padding: 64px 16px 56px;
    }
    .proof-bar {
        gap: 20px;
    }
    .step:not(:last-child)::after {
        display: none;
    }
    .cta-bottom {
        padding: 40px 24px;
    }
    .cta-bottom h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .page-content {
        padding: 16px 12px;
    }
    .page-content .container {
        padding: 24px 20px;
    }
    .page-content h1 {
        font-size: 1.6rem;
    }
    .page-content h2 {
        font-size: 1.1rem;
    }
}
