/* AutoPlus public site — shared design system.
   Every page in public/ links this file; page-specific tweaks stay inline in the page. */

:root {
    --brand: #3a4bd8;
    --brand-dark: #2c3ab0;
    --brand-soft: #eef1ff;
    --ink: #2c3e50;
    --ink-soft: #5a6a7a;
    --bg: #f6f7fb;
    --card: #ffffff;
    --line: #e2e2e8;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-in {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
}

.logo img {
    width: 38px;
    height: 38px;
}

.site-header nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.site-header nav a {
    color: var(--ink-soft);
    font-size: 15px;
    transition: color .15s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: var(--brand);
}

.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s ease;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn.ghost {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn.ghost:hover {
    background: var(--brand-soft);
}

/* ---------- hero ---------- */
.hero {
    background: linear-gradient(160deg, var(--brand) 0%, #5a6be0 55%, #7c8aee 100%);
    color: #fff;
    text-align: center;
    padding: 84px 24px 92px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.5px;
}

.hero p {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
}

/* ---------- sections, cards ---------- */
section {
    padding: 64px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.section-head h2 {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -.3px;
}

.section-head p {
    margin-top: 10px;
    color: var(--ink-soft);
}

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
}

.panel h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.panel p {
    color: var(--ink-soft);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(58, 75, 216, .10);
}

.card .ico,
.ico-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* ---------- long-form text pages (terms, privacy, guides) ---------- */
.prose {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.prose h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.prose .effective {
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 28px;
}

.prose h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 34px 0 10px;
}

.prose p {
    color: #43535f;
    margin-bottom: 12px;
}

.prose ul {
    margin: 10px 0 14px 24px;
    color: #43535f;
}

.prose li {
    margin-bottom: 6px;
}

.prose a {
    color: var(--brand);
    font-weight: 600;
}

.prose a:hover {
    text-decoration: underline;
}

/* ---------- CTA band + footer ---------- */
.cta {
    background: var(--card);
    border-top: 1px solid var(--line);
    text-align: center;
}

.cta h2 {
    font-size: 26px;
    letter-spacing: -.3px;
}

.cta p {
    color: var(--ink-soft);
    max-width: 560px;
    margin: 12px auto 28px;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
}

.site-footer a {
    color: var(--ink-soft);
    margin: 0 10px;
}

.site-footer a:hover {
    color: var(--brand);
}

@media (max-width: 800px) {
    .site-header nav {
        display: none;
    }

    .header-in {
        justify-content: space-between;
    }

    .duo,
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 20px 66px;
    }

    section {
        padding: 48px 0;
    }
}
