/* SomTMS — clean SaaS style (industry standard)
   - neutral palette
   - subtle borders/shadows
   - readable spacing
*/

:root {
    --bg: #ffffff;
    --muted: #f7f8fa;
    --muted2: #f2f4f7;
    --text: #0f172a;
    --sub: #475569;
    --line: #e5e7eb;
    --line2: #eef2f7;
    --brand: #2563eb;
    --brand2: #1d4ed8;
    --good: #16a34a;
    --warn: #f59e0b;
    --bad: #ef4444;
    --shadow: 0 10px 25px rgba(15, 23, 42, .06);
    --shadow2: 0 6px 18px rgba(15, 23, 42, .08);
    --radius: 14px;
    --radius2: 18px;
    --max: 1120px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
}

p {
    line-height: 1.6;
    color: var(--sub);
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line2);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--text);
    display: grid;
    place-items: center;
    color: white;
    font-size: 14px;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--sub);
    font-weight: 600;
    font-size: 14px;
}

.navlinks a:hover {
    color: var(--text);
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: 1px solid var(--line);
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 1px 0 rgba(15, 23, 42, .05);
}

.btn-primary {
    border: 1px solid var(--brand2);
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand2);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 12px 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line2);
    color: var(--sub);
    font-weight: 600;
}

.mobile-menu a:first-child {
    border-top: none;
}

.mobile-menu .row {
    display: flex;
    gap: 10px;
    padding-top: 12px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--muted);
    border: 1px solid var(--line2);
    color: var(--sub);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--good);
}

.hgrid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: start;
    margin-top: 18px;
}

.h1 {
    font-size: 52px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 12px 0 10px;
}

.lead {
    font-size: 18px;
    color: var(--sub);
    max-width: 54ch;
}

.cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.small {
    font-size: 13px;
    color: var(--sub);
}

.kpis {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    padding: 16px;
}

.kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 12px;
}

.kpi-title {
    font-weight: 800;
}

.kpi-pill {
    background: var(--muted);
    border: 1px solid var(--line2);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--sub);
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kpi {
    border: 1px solid var(--line2);
    background: var(--muted);
    border-radius: 14px;
    padding: 14px;
}

.kpi label {
    display: block;
    font-size: 12px;
    color: var(--sub);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kpi .val {
    font-size: 22px;
    font-weight: 900;
    margin-top: 6px;
    color: var(--text);
}

.kpi .hint {
    font-size: 12px;
    color: var(--sub);
    margin-top: 4px;
}

.section {
    padding: 40px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.subhead {
    margin: 6px 0 0;
    max-width: 70ch;
}

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    padding: 18px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, .02);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0;
    font-size: 14px;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line2);
    background: var(--muted);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.note {
    background: var(--muted);
    border: 1px solid var(--line2);
    border-radius: var(--radius);
    padding: 16px;
}

.note h4 {
    margin: 0 0 6px;
}

.note li {
    margin: 6px 0;
}

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

.plan {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: white;
    padding: 20px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, .02);
    display: flex;
    flex-direction: column;
}

.plan .name {
    font-weight: 900;
    font-size: 16px;
}

.plan .price {
    margin-top: 10px;
    font-size: 38px;
    letter-spacing: -0.03em;
    font-weight: 950;
}

.plan .per {
    color: var(--sub);
    font-size: 14px;
    font-weight: 700;
}

.plan .desc {
    margin-top: 8px;
    font-size: 14px;
}

.plan ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--sub);
    font-size: 14px;
}

.plan li {
    margin: 8px 0;
}

.plan .cta {
    margin-top: auto;
}

.plan.pop {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: var(--shadow2);
}

.tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .25);
    background: rgba(37, 99, 235, .06);
    color: var(--brand2);
    font-weight: 900;
    font-size: 12px;
    margin-left: auto;
}

.form {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: white;
    padding: 18px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, .02);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.field label {
    font-size: 13px;
    font-weight: 800;
    color: var(--sub);
}

.input,
.textarea {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 12px;
    font-size: 14px;
    outline: none;
}

.input:focus,
.textarea:focus {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.footer {
    padding: 28px 0;
    border-top: 1px solid var(--line2);
    margin-top: 36px;
}

.footgrid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 14px;
}

.footcol h5 {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footcol a {
    display: block;
    color: var(--sub);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 0;
}

.footcol a:hover {
    color: var(--text);
}

.copy {
    margin-top: 16px;
    color: var(--sub);
    font-size: 13px;
}

.hr {
    height: 1px;
    background: var(--line2);
    margin: 22px 0;
}

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

    .h1 {
        font-size: 42px;
    }

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

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

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

    .navlinks {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .mobile-menu.show {
        display: block;
    }

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