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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #fff;
    color: #151515;

    line-height: 1.55;
}

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

.container {
    width: min(1080px, 90%);
    margin: auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background: #fff;

    border-bottom: 1px solid #ddd;
}

.navbar {
    height: 68px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
}

nav {
    display: flex;

    gap: 24px;

    margin-left: auto;
}

nav a {
    color: #555;

    font-size: 14px;
}

nav a:hover {
    color: #000;
}

.nav-button {
    background: #111;
    color: #fff;

    padding: 9px 15px;

    border-radius: 5px;

    font-size: 13px;
}


/* HERO */

.hero {
    padding: 65px 0;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 55px;
}

.label {
    margin-bottom: 10px;

    color: #777;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    max-width: 600px;

    font-size: 43px;

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.hero-text {
    max-width: 550px;

    margin-top: 17px;

    color: #666;

    font-size: 16px;
}

.hero-buttons {
    display: flex;

    gap: 10px;

    margin-top: 24px;
}

.button {
    padding: 10px 16px;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 600;
}

.primary {
    background: #111;
    color: white;
}

.secondary {
    border: 1px solid #ccc;

    background: white;
}


/* EXAMPLE */

.example-box {
    border: 1px solid #ddd;

    border-radius: 8px;

    background: #fafafa;

    overflow: hidden;
}

.example-header {
    padding: 12px 17px;

    border-bottom: 1px solid #ddd;

    color: #777;

    font-size: 11px;
}

.example-main {
    padding: 27px 20px;
}

.example-main > span {
    color: #777;

    font-size: 12px;
}

.example-main h2 {
    margin-top: 3px;

    font-size: 37px;
}

.example-main p {
    color: #888;

    font-size: 12px;
}

.example-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #ddd;
}

.example-stats div {
    padding: 14px;

    border-right: 1px solid #ddd;
}

.example-stats div:last-child {
    border-right: 0;
}

.example-stats span {
    display: block;

    color: #888;

    font-size: 10px;
}

.example-stats strong {
    font-size: 12px;
}


/* AD AREAS */

.ad-slot {
    min-height: 110px;

    margin: 30px 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fafafa;

    border: 1px dashed #d7d7d7;

    color: #aaa;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.large-ad {
    min-height: 150px;
}


/* GENERAL */

.tools-section,
.info-section,
.content-section,
.article-section,
.about-section,
.faq-section,
.related-section {
    padding: 65px 0;
}

.tools-section,
.about-section,
.related-section {
    background: #f7f7f7;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.content-section h2,
.about-section h2 {
    font-size: 29px;

    letter-spacing: -0.8px;
}

.section-heading > p:last-child {
    margin-top: 5px;

    color: #777;

    font-size: 14px;
}


/* TOOLS */

.tools-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.tool-card {
    min-height: 210px;

    padding: 23px;

    display: flex;
    flex-direction: column;

    background: white;

    border: 1px solid #ddd;

    border-radius: 7px;
}

.tool-card:hover {
    border-color: #aaa;
}

.tool-number {
    margin-bottom: 30px;

    color: #aaa;

    font-size: 11px;
}

.tool-card h3 {
    margin-bottom: 8px;

    font-size: 18px;
}

.tool-card p {
    max-width: 400px;

    color: #777;

    font-size: 13px;
}

.tool-card strong {
    margin-top: auto;

    padding-top: 22px;

    font-size: 12px;
}


/* STEPS */

.steps {
    border-top: 1px solid #ddd;
}

.step {
    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 20px;

    padding: 23px 0;

    border-bottom: 1px solid #ddd;
}

.step > span {
    color: #999;

    font-size: 12px;
}

.step h3 {
    margin-bottom: 4px;

    font-size: 16px;
}

.step p {
    max-width: 650px;

    color: #777;

    font-size: 13px;
}


/* CONTENT */

.content-grid,
.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 65px;
}

.content-text,
.about-grid > div:last-child {
    color: #666;

    font-size: 14px;
}

.content-text p + p,
.about-grid > div:last-child p + p {
    margin-top: 16px;
}


/* ARTICLE INFO */

.article-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 35px;
}

.article-grid article {
    border-top: 2px solid #111;

    padding-top: 15px;
}

.article-grid h3 {
    margin-bottom: 8px;

    font-size: 16px;
}

.article-grid p {
    color: #777;

    font-size: 13px;
}


/* FAQ */

.faq-list {
    border-top: 1px solid #ddd;
}

details {
    padding: 18px 0;

    border-bottom: 1px solid #ddd;
}

summary {
    cursor: pointer;

    font-size: 14px;

    font-weight: 600;
}

details p {
    max-width: 700px;

    margin-top: 10px;

    color: #777;

    font-size: 13px;
}

.faq-list .ad-slot {
    border-top: 0;
}


/* RELATED */

.related-section h2 {
    margin-bottom: 22px;

    font-size: 23px;
}

.related-links {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
}

.related-links a {
    padding: 15px;

    background: white;

    border: 1px solid #ddd;

    border-radius: 5px;

    font-size: 13px;
}

.related-links a:hover {
    border-color: #aaa;
}


/* FOOTER */

footer {
    margin-top: 30px;

    padding: 45px 0 20px;

    background: #111;

    color: white;
}

.footer-main {
    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    font-size: 18px;

    font-weight: 700;
}

.footer-main p {
    margin-top: 7px;

    color: #888;

    font-size: 12px;
}

.footer-links {
    display: flex;

    gap: 20px;

    color: #aaa;

    font-size: 12px;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    margin-top: 35px;
    padding-top: 18px;

    border-top: 1px solid #333;

    color: #666;

    font-size: 10px;
}


/* MOBILE */

@media (max-width: 800px) {

    nav {
        display: none;
    }

    .navbar {
        justify-content: space-between;
    }

    .hero {
        padding: 45px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .tools-grid,
    .content-grid,
    .about-grid,
    .article-grid,
    .related-links {
        grid-template-columns: 1fr;
    }

    .example-stats {
        grid-template-columns: 1fr;
    }

    .example-stats div {
        border-right: 0;

        border-bottom: 1px solid #ddd;
    }

    .ad-slot {
        min-height: 90px;

        margin: 22px 0;
    }

    .large-ad {
        min-height: 110px;
    }

    .footer-main,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}
.page-header {
    padding: 65px 0 40px;
}

.page-header h1 {
    max-width: 700px;
    margin-bottom: 15px;

    font-size: 36px;
    letter-spacing: -1px;
}

.page-header p:last-child {
    max-width: 650px;

    color: #666;
    font-size: 15px;
}

.basic-page {
    padding: 40px 0 70px;
}

.narrow-container {
    max-width: 760px;
}

.basic-page h2 {
    margin-top: 38px;
    margin-bottom: 10px;

    font-size: 22px;
}

.basic-page h2:first-child {
    margin-top: 0;
}

.basic-page p {
    margin-bottom: 15px;

    color: #666;

    font-size: 14px;
    line-height: 1.75;
}
.contact-box {
    max-width: 600px;

    padding: 28px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #f7f7f7;
}

.contact-box h2 {
    margin: 0 0 15px;
}

.contact-box a {
    display: inline-block;

    margin-top: 4px;

    font-weight: 600;
}

.contact-note {
    margin-top: 18px;

    color: #999 !important;

    font-size: 12px !important;
}
.menu-button {
    display: none;

    border: 0;
    background: transparent;

    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 800px) {

    .navbar {
        position: relative;
    }

    .nav-button {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    nav {
        display: none;

        position: absolute;
        top: 68px;
        left: 0;
        right: 0;

        padding: 15px 5%;

        flex-direction: column;
        gap: 0;

        background: #fff;

        border-bottom: 1px solid #ddd;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 12px 0;

        border-bottom: 1px solid #eee;
    }

    nav a:last-child {
        border-bottom: 0;
    }

}
/* GUIDES */

.guide-section {
    padding: 35px 0 75px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.guide-card {
    min-height: 230px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #fff;
}

.guide-card:hover {
    border-color: #aaa;
}

.guide-category {
    margin-bottom: 25px;

    color: #888;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-card h2 {
    margin-bottom: 10px;

    font-size: 20px;
}

.guide-card p {
    max-width: 450px;

    color: #777;

    font-size: 13px;
    line-height: 1.6;
}

.guide-card strong {
    margin-top: auto;

    padding-top: 25px;

    font-size: 12px;
}

@media (max-width: 800px) {

    .guide-grid {
        grid-template-columns: 1fr;
    }

}
.field-note {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}
.amortization-section {
    margin-top: 32px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.amortization-table th,
.amortization-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.amortization-table th {
    font-size: 13px;
    font-weight: 600;
    background: #f7f7f7;
}

.amortization-table td {
    font-size: 14px;
}
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.result-actions button {
    padding: 10px 16px;
    border: 1px solid #111;
    border-radius: 5px;
    background: white;
    color: #111;
    cursor: pointer;
    font-size: 14px;
}

.result-actions button:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {

    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .results-box,
    .progress-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 20px;
        box-sizing: border-box;
    }

    .result-list > div,
    .total-cost {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .result-list span,
    .result-list strong,
    .total-cost span,
    .total-cost strong {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .progress-box p,
    .progress-box h2,
    .progress-box label {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .progress-box input,
    .progress-box select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .result-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .result-actions button {
        flex: 1 1 140px;
        min-width: 0;
    }

    .table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .amortization-table {
        min-width: 600px;
    }
}.quick-extra-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-extra {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-size: 13px;
    cursor: pointer;
}

.quick-extra:hover {
    border-color: #111;
    background: #f7f7f7;
}
.car-image-wrap {
    width: 100%;
    height: 210px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 7px;

    overflow: hidden;
}

.car-image {
    max-width: 95%;
    max-height: 190px;

    object-fit: contain;
}
/* =========================================================
   DRIVEMATH UI REFRESH — utility-first calculator styling
   ========================================================= */

:root {
    --dm-bg: #f6f7f9;
    --dm-surface: #ffffff;
    --dm-surface-soft: #f9fafb;
    --dm-text: #111827;
    --dm-muted: #667085;
    --dm-line: #e4e7ec;
    --dm-line-strong: #d0d5dd;
    --dm-accent: #2563eb;
    --dm-accent-hover: #1d4ed8;
    --dm-accent-soft: #eff6ff;
    --dm-dark: #101828;
    --dm-radius: 10px;
    --dm-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

html {
    background: var(--dm-bg);
}

body {
    background: var(--dm-bg);
    color: var(--dm-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1160px, calc(100% - 40px));
}

/* Header: quieter and more tool-like */
.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--dm-line);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.navbar {
    height: 62px;
    gap: 26px;
}

.logo {
    color: var(--dm-dark);
    font-size: 19px;
    letter-spacing: -.35px;
}

nav {
    gap: 20px;
}

nav a {
    color: #475467;
    font-size: 13px;
    font-weight: 500;
}

nav a:hover {
    color: var(--dm-dark);
}

.nav-button {
    padding: 8px 13px;
    border: 1px solid var(--dm-line-strong);
    border-radius: 7px;
    background: var(--dm-surface);
    color: var(--dm-dark);
    font-size: 12px;
    font-weight: 600;
}

.nav-button:hover {
    border-color: #98a2b3;
    background: var(--dm-surface-soft);
}

/* Homepage hero: compact, informational, not SaaS-like */
.hero {
    padding: 48px 0 38px;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-line);
}

.hero-grid {
    grid-template-columns: 1.18fr .82fr;
    gap: 42px;
}

.label {
    margin-bottom: 8px;
    color: var(--dm-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.hero h1 {
    max-width: 660px;
    color: var(--dm-dark);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -1.8px;
}

.hero-text {
    max-width: 610px;
    margin-top: 14px;
    color: var(--dm-muted);
    font-size: 15px;
    line-height: 1.65;
}

.hero-buttons {
    margin-top: 20px;
}

.button {
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 12px;
}

.primary {
    background: var(--dm-dark);
}

.primary:hover {
    background: #1d2939;
}

.secondary {
    border-color: var(--dm-line-strong);
}

/* Example / quick preview */
.example-box {
    border-color: var(--dm-line);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.example-header {
    padding: 10px 14px;
    background: var(--dm-surface-soft);
    border-color: var(--dm-line);
    color: var(--dm-muted);
    font-weight: 600;
}

.example-main {
    padding: 22px 18px;
}

.example-main h2 {
    color: var(--dm-dark);
    font-size: 32px;
    letter-spacing: -1px;
}

.example-stats {
    border-color: var(--dm-line);
}

.example-stats div {
    border-color: var(--dm-line);
}

/* Main page sections */
.tools-section,
.info-section,
.content-section,
.article-section,
.about-section,
.faq-section,
.related-section {
    padding: 48px 0;
}

.tools-section,
.about-section,
.related-section {
    background: var(--dm-bg);
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2,
.content-section h2,
.about-section h2 {
    color: var(--dm-dark);
    font-size: 25px;
    letter-spacing: -.6px;
}

.section-heading > p:last-child {
    color: var(--dm-muted);
    font-size: 13px;
}

/* Tool cards: compact scan-friendly directory */
.tools-grid {
    gap: 12px;
}

.tool-card {
    min-height: 164px;
    padding: 19px 20px;
    border-color: var(--dm-line);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tool-card:hover {
    border-color: #b8c0cc;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .06);
    transform: translateY(-1px);
}

.tool-number {
    margin-bottom: 18px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.tool-card h3 {
    margin-bottom: 6px;
    color: var(--dm-dark);
    font-size: 16px;
    letter-spacing: -.2px;
}

.tool-card p {
    color: var(--dm-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.tool-card strong {
    padding-top: 16px;
    color: var(--dm-accent);
    font-size: 11.5px;
}

/* Ads: less visually dominant while placeholders are visible */
.ad-slot {
    min-height: 92px;
    margin: 22px 0;
    border-color: var(--dm-line-strong);
    background: transparent;
    color: #98a2b3;
}

.large-ad {
    min-height: 120px;
}

/* Content / articles */
.step,
.faq-list,
details,
.article-grid article {
    border-color: var(--dm-line);
}

.step {
    padding: 18px 0;
}

.step h3,
.article-grid h3 {
    color: var(--dm-dark);
}

.step p,
.article-grid p,
.content-text,
.about-grid > div:last-child,
details p {
    color: var(--dm-muted);
}

/* FAQ more compact */
details {
    padding: 15px 0;
}

summary {
    color: var(--dm-dark);
    font-size: 13px;
}

/* Related calculators as simple utility links */
.related-section h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.related-links {
    gap: 8px;
}

.related-links a {
    padding: 12px 14px;
    border-color: var(--dm-line);
    border-radius: 7px;
    background: var(--dm-surface);
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.related-links a:hover {
    border-color: #b8c0cc;
    color: var(--dm-accent);
}

/* Guides */
.guide-section {
    padding: 28px 0 56px;
}

.guide-grid {
    gap: 12px;
}

.guide-card {
    min-height: 190px;
    padding: 20px;
    border-color: var(--dm-line);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.guide-card h2 {
    font-size: 17px;
}

.guide-card p {
    color: var(--dm-muted);
    font-size: 12.5px;
}

.guide-category {
    margin-bottom: 18px;
    color: #98a2b3;
    font-size: 10px;
}

.guide-card strong {
    padding-top: 18px;
    color: var(--dm-accent);
}

/* Basic content pages */
.page-header {
    padding: 44px 0 26px;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-line);
}

.page-header h1 {
    margin-bottom: 8px;
    color: var(--dm-dark);
    font-size: 31px;
    letter-spacing: -.9px;
}

.page-header p:last-child {
    color: var(--dm-muted);
    font-size: 14px;
}

.basic-page {
    padding: 34px 0 58px;
}

.basic-page h2 {
    color: var(--dm-dark);
    font-size: 19px;
}

.basic-page p {
    color: var(--dm-muted);
    font-size: 13.5px;
}

.contact-box {
    padding: 22px;
    border-color: var(--dm-line);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
}

/* Footer: simple rather than product-marketing heavy */
footer {
    margin-top: 0;
    padding: 34px 0 18px;
    background: var(--dm-dark);
}

.footer-main p {
    color: #98a2b3;
}

.footer-links {
    color: #cbd5e1;
}

.footer-bottom {
    margin-top: 26px;
    border-color: #344054;
    color: #98a2b3;
}

/* Tables / share buttons */
.amortization-table th {
    background: var(--dm-surface-soft);
    color: #475467;
}

.amortization-table th,
.amortization-table td {
    border-color: var(--dm-line);
}

.result-actions button,
.quick-extra {
    border-color: var(--dm-line-strong);
    border-radius: 7px;
    background: var(--dm-surface);
    color: #344054;
}

.result-actions button:hover,
.quick-extra:hover {
    border-color: #98a2b3;
    background: var(--dm-surface-soft);
}

/* Mobile */
@media (max-width: 800px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .navbar {
        height: 58px;
    }

    nav {
        top: 58px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--dm-line);
        box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
    }

    .hero {
        padding: 34px 0 30px;
    }

    .hero-grid {
        gap: 26px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .tools-section,
    .info-section,
    .content-section,
    .article-section,
    .about-section,
    .faq-section,
    .related-section {
        padding: 38px 0;
    }

    .tool-card {
        min-height: 150px;
    }
}


/* =========================================================
   DRIVEMATH READABILITY + SIMPLE UTILITY THEME
   ========================================================= */

:root {
    --dm-bg: #f6f8fb;
    --dm-surface: #ffffff;
    --dm-surface-soft: #f1f5f9;
    --dm-text: #172033;
    --dm-muted: #5f6b7a;
    --dm-border: #d9e0e8;
    --dm-accent: #2563eb;
    --dm-accent-dark: #1d4ed8;
    --dm-dark: #172033;
}

body {
    background: var(--dm-bg);
    color: var(--dm-text);
    font-size: 16px;
    line-height: 1.65;
}

.container {
    width: min(1120px, 92%);
}

.site-header {
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--dm-border);
}

.navbar {
    height: 70px;
}

.logo {
    font-size: 22px;
    color: var(--dm-dark);
}

nav a {
    color: #445064;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    color: var(--dm-accent);
}

.nav-button {
    background: var(--dm-accent);
    color: #fff;
    padding: 10px 17px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.nav-button:hover {
    background: var(--dm-accent-dark);
}

/* HOME HERO */

.hero {
    padding: 56px 0 48px;
    background: #fff;
    border-bottom: 1px solid var(--dm-border);
}

.hero h1 {
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    color: var(--dm-dark);
}

.hero-text {
    max-width: 620px;
    margin-top: 18px;
    color: var(--dm-muted);
    font-size: 18px;
    line-height: 1.7;
}

.label {
    color: var(--dm-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .9px;
}

.button {
    padding: 11px 17px;
    border-radius: 7px;
    font-size: 14px;
}

.primary {
    background: var(--dm-accent);
}

.primary:hover {
    background: var(--dm-accent-dark);
}

.secondary {
    border: 1px solid var(--dm-border);
    background: #fff;
}

/* SECTIONS */

.tools-section,
.info-section,
.content-section,
.article-section,
.about-section,
.faq-section,
.related-section {
    padding: 54px 0;
}

.tools-section,
.about-section,
.related-section {
    background: var(--dm-bg);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.content-section h2,
.about-section h2 {
    font-size: 31px;
    line-height: 1.2;
    color: var(--dm-dark);
}

.section-heading > p:last-child {
    color: var(--dm-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* TOOL CARDS */

.tools-grid {
    gap: 16px;
}

.tool-card {
    min-height: 190px;
    padding: 24px;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.tool-card:hover {
    border-color: #aeb8c5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.tool-number {
    margin-bottom: 24px;
    color: #8b96a7;
    font-size: 12px;
    font-weight: 700;
}

.tool-card h3 {
    margin-bottom: 9px;
    font-size: 20px;
    line-height: 1.3;
    color: var(--dm-dark);
}

.tool-card p {
    max-width: 470px;
    color: var(--dm-muted);
    font-size: 15px;
    line-height: 1.6;
}

.tool-card strong {
    padding-top: 20px;
    color: var(--dm-accent);
    font-size: 14px;
}

/* TEXT / CONTENT */

.step h3,
.article-grid h3 {
    font-size: 17px;
}

.step p,
.article-grid p,
.content-text,
.about-grid > div:last-child,
details p {
    color: var(--dm-muted);
    font-size: 15px;
    line-height: 1.7;
}

summary {
    font-size: 15px;
}

.related-links a {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--dm-border);
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
}

.related-links a:hover {
    border-color: var(--dm-accent);
    color: var(--dm-accent);
}

.guide-card {
    min-height: 220px;
    padding: 25px;
    border: 1px solid var(--dm-border);
    border-radius: 9px;
}

.guide-card h2 {
    font-size: 21px;
}

.guide-card p {
    color: var(--dm-muted);
    font-size: 15px;
    line-height: 1.65;
}

.guide-card strong {
    color: var(--dm-accent);
    font-size: 14px;
}

/* ADS SHOULD STAY QUIET */

.ad-slot {
    background: #fbfcfe;
    border-color: #dfe5ec;
    color: #98a2b3;
}

/* BASIC PAGES */

.page-header h1 {
    font-size: 40px;
}

.page-header p:last-child,
.basic-page p {
    color: var(--dm-muted);
    font-size: 16px;
    line-height: 1.75;
}

.basic-page h2 {
    font-size: 24px;
}

/* FOOTER */

footer {
    background: #172033;
}

.footer-main p,
.footer-links {
    font-size: 13px;
}

.footer-bottom {
    font-size: 11px;
}

@media (max-width: 800px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 17px;
    }

    .tool-card {
        min-height: 0;
    }

    .tool-card h3 {
        font-size: 19px;
    }

    .tool-card p {
        font-size: 15px;
    }

    nav a {
        font-size: 16px;
    }
}


/* =========================================================
   DRIVEMATH COMPACT LAYOUT + CALCULATOR CAROUSEL
   ========================================================= */

/* Slightly tighter global rhythm */
.hero {
    padding: 44px 0 38px;
}

.hero-grid {
    gap: 38px;
}

.hero-text {
    margin-top: 14px;
}

.hero-buttons {
    margin-top: 18px;
}

.tools-section,
.info-section,
.content-section,
.article-section,
.about-section,
.faq-section,
.related-section {
    padding: 46px 0;
}

.section-heading {
    margin-bottom: 20px;
}

.content-grid,
.about-grid {
    gap: 42px;
}

.article-grid {
    gap: 24px;
}

/* Calculator carousel */
.tools-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 36%);
    grid-template-columns: none;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 14px;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.tools-grid::-webkit-scrollbar {
    height: 7px;
}

.tools-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tools-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.tool-card {
    min-height: 175px;
    padding: 22px;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.tool-number {
    margin-bottom: 18px;
}

.tool-card h3 {
    margin-bottom: 7px;
}

.tool-card strong {
    padding-top: 16px;
}

/* Make the first calculator feel featured without looking flashy */
.tools-grid .tool-card:first-child {
    border-color: #b9cdfa;
    background: #f8fbff;
}

.tools-grid .tool-card:first-child strong {
    color: var(--dm-accent);
}

/* Compact related links and guide cards */
.related-links {
    gap: 9px;
}

.related-links a {
    padding: 14px 15px;
}

.guide-grid {
    gap: 14px;
}

.guide-card {
    min-height: 205px;
    padding: 22px;
}

/* Tighter footer */
footer {
    margin-top: 18px;
    padding: 36px 0 18px;
}

.footer-bottom {
    margin-top: 26px;
}

/* Mobile carousel: almost one full card visible at a time */
@media (max-width: 800px) {
    .hero {
        padding: 34px 0 30px;
    }

    .tools-section,
    .info-section,
    .content-section,
    .article-section,
    .about-section,
    .faq-section,
    .related-section {
        padding: 38px 0;
    }

    .tools-grid {
        grid-auto-columns: minmax(270px, 88%);
        gap: 12px;
        padding-bottom: 12px;
    }

    .tool-card {
        min-height: 165px;
        padding: 20px;
    }

    .tool-number {
        margin-bottom: 16px;
    }
}

/* =========================================================
   DRIVEMATH HERO CALCULATOR CAROUSEL
   Add to the bottom of style.css
   ========================================================= */

.hero {
    padding: 38px 0 34px;
    background: #fff;
}

.hero-carousel {
    position: relative;
    padding: 0 54px 34px;
}

.hero-carousel-window {
    overflow: hidden;
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    transition: transform .38s ease;
    will-change: transform;
}

.hero-slide {
    min-width: 100%;

    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 42px;

    padding: 12px 0;
}

.hero-slide-copy {
    min-width: 0;
}

.hero-slide .label {
    margin-bottom: 10px;
}

.hero-slide h1 {
    max-width: 650px;
    margin: 0;

    color: #172033;

    font-size: clamp(38px, 4.7vw, 58px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.hero-slide .hero-text {
    max-width: 650px;
    margin-top: 16px;

    color: #5f6b7a;

    font-size: 17px;
    line-height: 1.65;
}

.hero-slide .hero-buttons {
    margin-top: 20px;
}

.hero-showcase-card {
    overflow: hidden;

    border: 1px solid #d9e0e8;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 5px 18px rgba(15, 23, 42, .05);
}

.hero-showcase-header {
    padding: 12px 16px;

    border-bottom: 1px solid #d9e0e8;

    background: #eef3f8;

    color: #526071;

    font-size: 12px;
    font-weight: 600;
}

.hero-showcase-main {
    padding: 30px 20px 26px;
}

.hero-showcase-main > span {
    color: #6b7280;
    font-size: 13px;
}

.hero-showcase-main h2 {
    margin: 5px 0 3px;

    color: #172033;

    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-showcase-main p {
    color: #7c8798;
    font-size: 13px;
}

.hero-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #d9e0e8;
}

.hero-showcase-stats div {
    padding: 14px 15px;
    border-right: 1px solid #d9e0e8;
}

.hero-showcase-stats div:last-child {
    border-right: 0;
}

.hero-showcase-stats span {
    display: block;
    margin-bottom: 3px;

    color: #8b96a7;
    font-size: 10px;
}

.hero-showcase-stats strong {
    color: #253047;
    font-size: 13px;
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-72%);

    border: 1px solid #d9e0e8;
    border-radius: 50%;

    background: #fff;
    color: #253047;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.hero-carousel-arrow:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.hero-carousel-arrow-left {
    left: 0;
}

.hero-carousel-arrow-right {
    right: 0;
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 2px;

    display: flex;
    align-items: center;
    gap: 7px;

    transform: translateX(-50%);
}

.hero-carousel-dots button {
    width: 8px;
    height: 8px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #cbd5e1;

    cursor: pointer;

    transition: width .2s ease, background .2s ease;
}

.hero-carousel-dots button.active {
    width: 24px;
    background: #2563eb;
}

/* Undo the calculator-card carousel below the hero */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: auto;

    gap: 15px;

    overflow: visible;

    padding: 0;

    scroll-snap-type: none;
}

.tool-card {
    scroll-snap-align: none;
}

@media (max-width: 800px) {

    .hero {
        padding: 24px 0 26px;
    }

    .hero-carousel {
        padding: 0 0 32px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 8px 0;
    }

    .hero-slide h1 {
        font-size: 38px;
        letter-spacing: -1.4px;
    }

    .hero-slide .hero-text {
        font-size: 16px;
    }

    .hero-showcase-main {
        padding: 24px 18px 22px;
    }

    .hero-showcase-main h2 {
        font-size: 34px;
    }

    .hero-carousel-arrow {
        top: auto;
        bottom: -2px;

        width: 34px;
        height: 34px;

        transform: none;

        font-size: 24px;
    }

    .hero-carousel-arrow-left {
        left: 0;
    }

    .hero-carousel-arrow-right {
        right: 0;
    }

    .hero-carousel-dots {
        bottom: 9px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {

    .hero-carousel-track {
        transition: none;
    }

}
#about + .container .ad-slot {
    min-height: 72px;

    margin: 18px 0;

    background: #fafbfd;

    border: 1px dashed #d8dee8;

    color: #a0a9b8;
}


/* FAQ */

.faq-section {
    padding: 32px 0 48px;

    background: #f6f8fb;
}

.faq-section .section-heading {
    margin-bottom: 18px;
}

.faq-section .section-heading .label {
    margin-bottom: 6px;
}

.faq-section .section-heading h2 {
    font-size: 30px;
    line-height: 1.2;

    color: #172033;
}


/* FAQ BOX */

.faq-list {
    overflow: hidden;

    border: 1px solid #d9e0e8;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.faq-list details {
    padding: 0 22px;

    border-bottom: 1px solid #e5eaf0;
}

.faq-list details:last-of-type {
    border-bottom: 0;
}

.faq-list summary {
    padding: 18px 0;

    color: #172033;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.faq-list details p {
    max-width: 760px;

    margin: -4px 0 18px;

    color: #5f6b7a;

    font-size: 14px;
    line-height: 1.7;
}


/* AD INSIDE FAQ */

.faq-list .ad-slot {
    margin: 0;

    min-height: 70px;

    border-left: 0;
    border-right: 0;

    background: #fafbfd;
}


/* MOBILE */

@media (max-width: 800px) {

    .about-section {
        padding: 30px 0 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        padding: 22px;
    }

    .about-grid > div:first-child {
        padding-right: 0;
        padding-bottom: 20px;

        border-right: 0;
        border-bottom: 1px solid #e3e8ef;
    }

    .about-grid > div:last-child {
        padding-left: 0;
        padding-top: 20px;
    }

    .about-grid h2 {
        font-size: 27px;
    }

    #about + .container .ad-slot {
        min-height: 60px;
        margin: 14px 0;
    }

    .faq-section {
        padding: 26px 0 38px;
    }

    .faq-section .section-heading h2 {
        font-size: 27px;
    }

    .faq-list details {
        padding: 0 18px;
    }

}


/* =========================================================
   GUIDE ARTICLE EXAMPLES
   Add to bottom of css/style.css
   ========================================================= */

.article-page .narrow-container {
    max-width: 820px;
}

.article-page h2 {
    margin-top: 44px;
    margin-bottom: 14px;
    color: #172033;
    font-size: 27px;
    line-height: 1.25;
}

.article-page p {
    margin: 0 0 16px;
    color: #5f6b7a;
    font-size: 16px;
    line-height: 1.75;
}

.example-callout {
    margin: 24px 0 30px;
    padding: 22px 24px;
    border: 1px solid #cddcfb;
    border-radius: 12px;
    background: #f7faff;
}

.example-callout span {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.example-callout strong {
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 19px;
    line-height: 1.45;
}

.example-callout p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.article-disclaimer,
.article-next {
    margin-top: 48px;
    padding: 26px;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    background: #fff;
}

.article-disclaimer h2,
.article-next h2 {
    margin-top: 0;
}

.article-next {
    margin-bottom: 24px;
    background: #f7faff;
    border-color: #cddcfb;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px;
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    border-color: #b9cdfa;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .06);
}

.guide-card > span {
    margin-bottom: 20px;
    color: #8a9abb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-card h3 {
    margin: 0 0 11px;
    color: #172033;
    font-size: 20px;
    line-height: 1.3;
}

.guide-card p {
    margin: 0 0 18px;
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.65;
}

.guide-card strong {
    margin-top: auto;
    color: #2563eb;
    font-size: 14px;
}

@media (max-width: 800px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-card {
        min-height: 190px;
    }

    .article-page h2 {
        margin-top: 36px;
        font-size: 24px;
    }

    .example-callout {
        padding: 19px;
    }

    .example-callout strong {
        font-size: 17px;
    }
}


/* =========================================================
   POLISHED ABOUT + CONTACT PAGES
   ========================================================= */

.about-page-header,
.contact-page-header {
    padding-bottom: 34px;
}

.about-page,
.contact-page {
    padding-top: 18px;
}

.about-intro-card,
.contact-main-card,
.about-principles,
.about-cta,
.contact-info-card {
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.about-intro-card {
    padding: 30px;
}

.about-intro-card h2,
.about-principles h2,
.about-cta h2,
.contact-main-card h2,
.contact-info-card h2 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
}

.about-intro-card p,
.about-story p,
.about-principles p,
.about-cta p,
.contact-main-card p,
.contact-topic-card p,
.contact-info-card p {
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.7;
}

.about-intro-card p:last-child,
.contact-main-card p:last-child {
    margin-bottom: 0;
}

.about-feature-grid,
.contact-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.about-feature-card,
.contact-topic-card {
    padding: 23px;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    background: #fff;
}

.about-feature-card > span,
.contact-topic-card > span {
    display: block;
    margin-bottom: 22px;
    color: #8a9abb;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.about-feature-card h3,
.contact-topic-card h3 {
    margin: 0 0 9px;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
}

.about-feature-card p,
.contact-topic-card p {
    margin: 0;
}

.about-story,
.contact-info-card {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    margin-top: 44px;
    padding: 30px 0;
    border-top: 1px solid #dfe5ec;
    border-bottom: 1px solid #dfe5ec;
}

.about-story h2,
.contact-info-card h2 {
    margin: 0;
    color: #172033;
    font-size: 28px;
    line-height: 1.25;
}

.about-story > div:last-child p:first-child,
.contact-info-card > div:last-child p:first-child {
    margin-top: 0;
}

.about-principles {
    margin-top: 44px;
    padding: 28px;
}

.about-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid #e3e8ef;
}

.about-principles-grid > div {
    padding: 22px 22px 0 0;
}

.about-principles-grid > div + div {
    padding-left: 22px;
    border-left: 1px solid #e3e8ef;
}

.about-principles-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 15px;
}

.about-principles-grid p {
    margin: 0;
}

.about-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
    margin-top: 14px;
    padding: 28px;
    background: #f7faff;
    border-color: #cddcfb;
}

.about-cta p {
    margin-bottom: 0;
}

.about-cta .hero-buttons {
    margin-top: 0;
    white-space: nowrap;
}

.contact-main-card {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    overflow: hidden;
}

.contact-main-copy {
    padding: 30px;
}

.contact-email {
    display: inline-block;
    margin-top: 8px;
    color: #2563eb;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-side-note {
    padding: 30px;
    border-left: 1px solid #d9e0e8;
    background: #f7faff;
}

.contact-side-note > span {
    display: block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.contact-side-note p {
    margin: 0;
}

.contact-info-card {
    padding: 28px;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    background: #fff;
}

.contact-info-card h2 {
    margin-top: 0;
}

@media (max-width: 800px) {

    .about-feature-grid,
    .contact-topic-grid,
    .contact-main-card,
    .about-story,
    .contact-info-card,
    .about-cta {
        grid-template-columns: 1fr;
    }

    .about-feature-grid,
    .contact-topic-grid {
        gap: 12px;
    }

    .about-intro-card,
    .about-principles,
    .about-cta,
    .contact-main-copy,
    .contact-side-note,
    .contact-info-card {
        padding: 21px;
    }

    .contact-side-note {
        border-left: 0;
        border-top: 1px solid #d9e0e8;
    }

    .about-story,
    .contact-info-card {
        gap: 18px;
        margin-top: 32px;
        padding: 24px 0;
    }

    .about-principles {
        margin-top: 32px;
    }

    .about-principles-grid {
        grid-template-columns: 1fr;
    }

    .about-principles-grid > div,
    .about-principles-grid > div + div {
        padding: 18px 0;
        border-left: 0;
        border-bottom: 1px solid #e3e8ef;
    }

    .about-principles-grid > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .about-cta {
        gap: 18px;
    }

    .about-cta .hero-buttons {
        white-space: normal;
    }

    .contact-email {
        font-size: 17px;
        word-break: break-word;
    }

}
