/* === CreateQuote Landing Page === */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --primary: #2d3748;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #dbeafe;
    --success: #10b981;
    --hero-bg: #0f172a;
    --hero-text: #f8fafc;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-xl: 0 10px 25px rgba(0,0,0,0.12);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --max-w: 1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* --- Top Nav --- */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--hero-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-nav .brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hero-text);
    text-decoration: none;
}
.landing-nav .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.landing-nav .nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.landing-nav .nav-links a:hover { color: var(--hero-text); }
.landing-nav .nav-links .btn-login {
    padding: 8px 20px;
    border: 1px solid #475569;
    border-radius: var(--radius);
    color: var(--hero-text);
    font-weight: 500;
}
.landing-nav .nav-links .btn-login:hover {
    background: #1e293b;
    border-color: #64748b;
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(ellipse at 50% 0%, #1e3a5f 0%, var(--hero-bg) 70%);
    color: var(--hero-text);
    padding: 80px 32px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}
.hero h1 .highlight {
    color: var(--accent);
}
.hero .subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-hero-primary {
    background: var(--accent);
    color: white;
}
.btn-hero-primary:hover { background: var(--accent-hover); }
.btn-hero-secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}
.btn-hero-secondary:hover {
    color: var(--hero-text);
    border-color: #64748b;
}

/* --- Sections (shared) --- */
.section {
    padding: 80px 32px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-alt .section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* --- How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}
.step-card {
    text-align: center;
    position: relative;
    counter-increment: step;
}
/* Connecting dashed line between step circles */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    border-top: 2px dashed var(--border);
    pointer-events: none;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Pricing --- */
.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}
.billing-toggle button {
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.billing-toggle button:first-child {
    border-radius: 8px 0 0 8px;
}
.billing-toggle button:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}
.billing-toggle button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.billing-toggle button:last-child.active {
    border-left: 1px solid var(--accent);
}
.price-savings {
    display: none;
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}
.price-savings.visible {
    display: block;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.2s;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
}
.price-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.price-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.price-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}
.price-features li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}
.btn-price {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}
.btn-price-primary {
    background: var(--accent);
    color: white;
}
.btn-price-primary:hover { background: var(--accent-hover); }
.btn-price-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-price-outline:hover {
    background: var(--accent-light);
}

/* --- Footer --- */
.landing-footer {
    background: var(--hero-bg);
    color: #94a3b8;
    padding: 48px 32px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}
.footer-col h4 {
    color: var(--hero-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 3px 0;
    font-size: 0.9rem;
}
.footer-col a:hover { color: var(--hero-text); }
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-bottom {
    max-width: var(--max-w);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .landing-nav { padding: 12px 16px; }
    .landing-nav .nav-links { gap: 12px; }
    .landing-nav .nav-links a:not(.btn-login) { display: none; }
    .hero { padding: 48px 20px 64px; }
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1.05rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 300px; text-align: center; }
    .section { padding: 48px 20px; }
    .section-title { font-size: 1.6rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-card:not(:last-child)::after { display: none; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.65rem; }
    .hero .subtitle { font-size: 0.95rem; }
    .price-card { padding: 24px 20px; }
}

/* === FAQ Page === */
.landing-nav .nav-links .nav-active {
    color: var(--hero-text);
    font-weight: 600;
}

.faq-header {
    background: linear-gradient(180deg, var(--hero-bg) 0%, #1e293b 100%);
    color: var(--hero-text);
    padding: 64px 32px 48px;
    text-align: center;
}
.faq-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.faq-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.faq-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.5;
}
.faq-search-wrap {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}
.faq-search {
    width: 100%;
    padding: 14px 18px 14px 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--hero-text);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px;
}
.faq-search::placeholder { color: #94a3b8; }
.faq-search:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.12);
}
.faq-search-meta {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 1.2em;
}

.faq-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 32px 64px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: flex-start;
}
.faq-nav {
    position: sticky;
    top: 80px;
}
.faq-nav h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
}
.faq-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--border);
}
.faq-nav ul li a {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.faq-nav ul li a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

.faq-content {
    min-width: 0;
}
.faq-section {
    margin-bottom: 48px;
    scroll-margin-top: 90px;
}
.faq-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.faq-item summary {
    list-style: none;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    content: "\2212"; /* − minus */
    color: var(--accent);
}
.faq-item p {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.96rem;
}

.faq-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}
.faq-empty h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.faq-empty a { color: var(--accent); }

.faq-cta {
    margin-top: 64px;
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.faq-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.faq-cta a { color: var(--accent); }
.faq-cta .btn-hero { display: inline-block; color: white; }

/* Landing page Top FAQ teaser */
.section .faq-teaser {
    max-width: 800px;
    margin: 0 auto;
}
.section .faq-teaser .faq-item { margin-bottom: 12px; }
.section .faq-teaser-cta {
    text-align: center;
    margin-top: 24px;
}
.section .faq-teaser-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.section .faq-teaser-cta a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .faq-header { padding: 40px 20px 32px; }
    .faq-header h1 { font-size: 1.75rem; }
    .faq-subtitle { font-size: 0.98rem; }
    .faq-layout {
        grid-template-columns: 1fr;
        padding: 32px 20px 48px;
        gap: 24px;
    }
    .faq-nav {
        position: static;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px 18px;
    }
    .faq-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        border-left: none;
    }
    .faq-nav ul li a {
        padding: 4px 0;
        border-left: none;
        font-size: 0.88rem;
    }
    .faq-section h2 { font-size: 1.2rem; }
    .faq-item summary { padding: 14px 16px; font-size: 0.96rem; }
    .faq-item p { padding: 0 16px 16px; }
    .faq-cta { padding: 32px 20px; margin-top: 40px; }
}
