:root {
    --brand: #111111;
    --accent: #d71920;
    --light: #f5f5f5;
    --white: #ffffff;
    --muted: #666666;
    --border: #e5e7eb;
    --success: #047857;
    --danger: #b91c1c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: #111111;
    line-height: 1.5;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

a {
    color: var(--accent);
}

header {
    background: var(--brand);
    color: var(--white);
    border-bottom: 5px solid var(--accent);
    padding: 14px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    text-decoration: none;
    color: var(--white);
    font-weight: 800;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    width: 90px;
    max-width: 90px;
    height: 58px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: var(--white);
    font-size: 22px;
    letter-spacing: .5px;
}

.brand-text span {
    color: #cccccc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navlinks > a:not(.btn) {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.navlinks > a:not(.btn):hover {
    color: #ffb3b6;
}

.hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #111111 0%, #222222 70%, #5c0e12 100%);
    color: var(--white);
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 850px;
    color: var(--white);
    font-size: 46px;
    line-height: 1.08;
}

.hero p {
    max-width: 760px;
    font-size: 19px;
    color: #eeeeee;
}

section {
    padding: 45px 0;
}

h1,
h2,
h3 {
    color: var(--brand);
}

.hero h1,
.hero h2,
.hero h3 {
    color: var(--white);
}

h2 {
    font-size: 32px;
    margin-top: 0;
}

.btn,
button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: .2s ease;
}

.btn:hover,
button:hover {
    background: #a70f15;
    color: var(--white);
}

.btn.dark {
    background: #111111;
    color: var(--white);
}

.darkline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.darkline:hover {
    background: var(--white);
    color: var(--brand);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card {
    background: var(--white);
    padding: 22px;
    border-radius: 12px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.card h3 {
    margin-top: 0;
}

.price {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
}

.small {
    color: var(--muted);
    font-size: 14px;
}

form {
    display: grid;
    gap: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: var(--white);
    color: #111111;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, .12);
}

textarea {
    min-height: 130px;
}

fieldset {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px;
}

legend {
    font-weight: 700;
}

.checkgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.check {
    display: flex;
    gap: 8px;
    align-items: center;
}

.check input {
    width: auto;
}

.dashhead,
.leadtop,
.leadbottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.stat {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .07);
}

.stat b {
    display: block;
    font-size: 30px;
    color: var(--accent);
}

.stat span {
    font-size: 13px;
    color: var(--muted);
}

.leadlist {
    display: grid;
    gap: 16px;
}

.lead {
    border-top: 4px solid var(--accent);
}

.pill {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.locked,
.contactbox {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.contactbox {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 14px 0;
}

.alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid var(--success);
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--accent);
}

.tablewrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    background: var(--brand);
    color: var(--white);
}

tbody tr:hover td {
    background: #fff5f5;
}

.positive {
    color: var(--success);
    font-weight: 700;
}

.negative {
    color: var(--danger);
    font-weight: 700;
}

.inline {
    display: flex;
    gap: 6px;
}

.inline input {
    width: 90px;
    padding: 8px;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

footer {
    background: var(--brand);
    color: var(--white);
    padding: 35px 0;
    margin-top: 50px;
    border-top: 5px solid var(--accent);
}

footer a {
    color: var(--white);
}

footer a:hover {
    color: #ffb3b6;
}

.powered-by {
    color: #bbbbbb;
    font-size: 12px;
}

@media (max-width: 760px) {

    header {
        padding: 12px 0;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navlinks {
        width: 100%;
        flex-wrap: wrap;
    }

    .brand-logo img {
        width: 75px;
        max-width: 75px;
        height: 48px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text span {
        font-size: 9px;
    }

    .hero {
        padding: 45px 0;
    }

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

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

    .dashhead,
    .leadbottom {
        flex-direction: column;
        align-items: flex-start;
    }

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