:root {
    --kmd-primary: #1D4ED8;
    --kmd-primary-soft: #e3ecff;
    --kmd-bg: #020617;
    --kmd-surface: #0b1220;
    --kmd-surface-light: #f9fafb;
    --kmd-border-subtle: #e5e7eb;
    --kmd-text-main: #0f172a;
    --kmd-text-muted: #6b7280;
    --kmd-radius-lg: 18px;
    --kmd-radius-md: 12px;
    --kmd-radius-pill: 999px;
}

/* GLOBAL RESET / TYPE */

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

body.kmd-body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--kmd-text-main);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a {
    color: var(--kmd-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* NAVBAR / HEADER */

.kmd-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.kmd-header-scrolled {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.kmd-navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.kmd-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.kmd-nav-logo {
    height: 32px;
    width: auto;
    display: block;
}

.kmd-nav-wordmark {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--kmd-text-main);
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--kmd-text-muted);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--kmd-primary);
}

.kmd-nav-btn {
    border-radius: var(--kmd-radius-pill);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 0.45rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.kmd-nav-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    border-color: rgba(37, 99, 235, 0.4);
    text-decoration: none;
}

.navbar-toggler {
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.2rem 0.5rem;
}

.navbar-toggler-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--kmd-text-main);
}

/* MAIN LAYOUT */

.kmd-main {
    padding-top: 0; /* tighten gap between header and hero */
}

/* HERO */

.kmd-hero {
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.10), transparent 60%),
        #f5f7fb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.kmd-hero-logo .kmd-logo {
    height: 64px;
    width: auto;
}

.kmd-hero-eyebrow {
    font-size: 0.8rem;
}

.kmd-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 600;
}

.kmd-hero-title {
    font-size: 2.6rem;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.kmd-hero-text {
    font-size: 1rem;
    color: #4b5563;
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.kmd-hero-note {
    font-size: 0.9rem;
    color: var(--kmd-text-muted);
    display: inline-flex;
    align-items: center;
}

.kmd-hero-subfeature-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--kmd-primary);
    margin-right: 0.5rem;
}

.kmd-hero-subfeature-text {
    font-size: 0.9rem;
    color: var(--kmd-text-muted);
}

.kmd-hero-card {
    position: relative;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 1.75rem 1.6rem;
}

.kmd-hero-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* STEP LIST (How it works) */

.kmd-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kmd-step-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--kmd-text-muted);
}

.kmd-step-label {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--kmd-primary-soft);
    color: #1d4ed8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* INLINE LINK */

.kmd-link-inline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--kmd-primary);
    text-decoration: none;
}

.kmd-link-inline i {
    font-size: 0.8rem;
}

.kmd-link-inline:hover {
    text-decoration: underline;
}

/* SECTIONS */

.kmd-section {
    background-color: #ffffff;
}

.kmd-section-light {
    background-color: var(--kmd-surface-light);
}

.kmd-section-subtle {
    background-color: #f5f5ff;
}

.kmd-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--kmd-primary);
}

.kmd-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.kmd-section-text {
    font-size: 0.98rem;
    color: var(--kmd-text-muted);
    max-width: 34rem;
    margin: 0 auto;
}

/* BUTTONS */

.btn.kmd-btn-primary,
.btn.kmd-btn-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--kmd-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.35rem;
    line-height: 1.1;
    border-width: 1px;
}

.kmd-btn-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.kmd-btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.kmd-btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
}

.kmd-btn-outline {
    border-color: rgba(148, 163, 184, 0.9);
    background: #ffffff;
    color: var(--kmd-text-main);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.kmd-btn-outline:hover {
    border-color: rgba(148, 163, 184, 1);
    background: #f9fafb;
    color: var(--kmd-text-main);
    text-decoration: none;
}

.kmd-btn-lg {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-left: 1.7rem;
    padding-right: 1.7rem;
}

/* PLANS */

.kmd-plan-card {
    position: relative;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
    padding: 1.75rem 1.6rem;

    /* NEW: make card a flex column so footer can sit at the bottom */
    display: flex;
    flex-direction: column;
}

.kmd-plan-card-featured {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
        #ffffff;
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 22px 55px rgba(37, 99, 235, 0.18);
}

.kmd-plan-card-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 55%);
    pointer-events: none;
}

.kmd-plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;

    /* NEW: push footer to the bottom of the card */
    margin-top: auto;
}

.kmd-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.kmd-plan-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.kmd-plan-icon {
    font-size: 1.4rem;
    color: var(--kmd-primary);
}

.kmd-plan-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 0.18rem 0.55rem;
    border-radius: var(--kmd-radius-pill);
    margin-right: auto;
    margin-left: 0.2rem;
}

.kmd-plan-tagline {
    font-size: 0.93rem;
    color: var(--kmd-text-muted);
    margin-bottom: 0.5rem;
}

.kmd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
    color: var(--kmd-text-main);
}

.kmd-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.kmd-feature-list i {
    color: #22c55e;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.kmd-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.kmd-price-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

.kmd-price-sub {
    font-size: 0.85rem;
    color: var(--kmd-text-muted);
}

/* ADD-ONS */

.kmd-addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.kmd-addon-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.kmd-addon-card-accent {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), #f9fafb);
    border-color: rgba(37, 99, 235, 0.55);
}

.kmd-addon-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kmd-addon-section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.kmd-addon-section-text {
    font-size: 0.9rem;
    color: #4b5563;
}

.kmd-feature-list-compact {
    margin-top: 0.25rem;
}

.kmd-feature-list-compact li {
    margin-bottom: 0.2rem;
}

.kmd-addon-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.kmd-addon-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.55rem 0.9rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.kmd-addon-pill-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1d4ed8;
    line-height: 1.1;
}

.kmd-addon-pill-unit {
    font-size: 0.8rem;
    color: #4b5563;
}

.kmd-addon-pill-extra {
    font-size: 0.75rem;
    color: #9ca3af;
}

.kmd-addon-pill-blue {
    background: #eff4ff;
}

/* USE CASES */

.kmd-usecase-card {
    border-radius: var(--kmd-radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.4rem 1.4rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.kmd-usecase-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--kmd-radius-pill);
    background: rgba(37, 99, 235, 0.09);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: #1d4ed8;
}

.kmd-usecase-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.kmd-usecase-card p {
    font-size: 0.93rem;
    color: var(--kmd-text-muted);
    margin: 0;
}

/* TRUST */

.kmd-trust-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.kmd-trust-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.kmd-trust-item i {
    margin-top: 0.15rem;
    color: #1d4ed8;
}

.kmd-trust-item p {
    font-size: 0.93rem;
    color: var(--kmd-text-muted);
    margin: 0.15rem 0 0;
}

/* FAQ */

.kmd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kmd-faq-item {
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.1rem 1.2rem;
    background-color: #ffffff;
}

.kmd-faq-item h3 {
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
}

.kmd-faq-item p {
    font-size: 0.93rem;
    color: var(--kmd-text-muted);
    margin: 0;
}

/* FOOTER */

.kmd-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.1rem 0;
    background-color: #ffffff;
    font-size: 0.85rem;
    color: var(--kmd-text-muted);
}

.kmd-footer-link {
    color: var(--kmd-text-muted);
    text-decoration: none;
}

.kmd-footer-link:hover {
    color: var(--kmd-primary);
}

.kmd-footer-separator {
    margin: 0 0.4rem;
}

/* SIGNUP / FORM PAGES (lightweight, to avoid breaking other pages) */

.kmd-signup-page {
    min-height: 100vh;
    background: #f3f4f6;
    padding: 3rem 0;
}

.kmd-signup-card {
    max-width: 520px;
    margin: 0 auto;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    padding: 1.75rem 1.75rem 1.6rem;
}

.kmd-signup-card h1,
.kmd-signup-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.kmd-signup-card p {
    font-size: 0.9rem;
    color: var(--kmd-text-muted);
}

.kmd-form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.kmd-form-control {
    border-radius: 10px;
    border: 1px solid rgba(209, 213, 219, 1);
    font-size: 0.9rem;
    padding: 0.55rem 0.7rem;
}

.kmd-form-control:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* RESPONSIVE TWEAKS */

@media (max-width: 991.98px) {
    .kmd-nav-wordmark {
        font-size: 0.9rem;
    }

    .kmd-plan-card,
    .kmd-hero-card {
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 767.98px) {
    .kmd-hero-title {
        font-size: 2.1rem;
    }

    .kmd-hero-logo {
        justify-content: flex-start;
    }

    .kmd-hero {
        padding-top: 2.25rem;
    }

    .kmd-plan-footer {
        align-items: stretch;
    }

    .kmd-price {
        width: 100%;
        justify-content: flex-start;
    }
}

/* SIGNUP STATUS */

.kmd-signup-status {
    font-size: 0.9rem;
}

.kmd-signup-status-error {
    color: #b91c1c;
}

.kmd-signup-status-success {
    color: #15803d;
}

/* PLAN CHOICE CARDS ON SIGNUP */

.kmd-plan-choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.kmd-plan-choice {
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(209, 213, 219, 1);
    background-color: #ffffff;
    padding: 0.9rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease,
        background-color 0.16s ease;
}

.kmd-plan-choice input[type="radio"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.kmd-plan-choice-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.kmd-plan-choice-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.kmd-plan-choice-price-unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.1rem;
}

.kmd-plan-choice-caption {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.kmd-plan-choice-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
}

.kmd-plan-choice.is-selected {
    border-color: #1d4ed8;
    background-color: #f3f6ff;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.5),
        0 12px 24px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .kmd-plan-choice-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Make kmd-form-control behave like kmd-input */
.kmd-form-control.form-control,
.kmd-form-control.form-select {
    border-radius: 0.7rem;
    border-color: rgba(148, 163, 184, 0.7);
    font-size: 0.9rem;
}

.kmd-form-control.form-control:focus,
.kmd-form-control.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}

.kmd-form-control.is-invalid,
.is-invalid.kmd-form-control {
    border-color: #dc2626;
}

/* Signup wizard layout */

.kmd-step-pane {
    display: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.kmd-step-pane-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.kmd-step-subtitle {
    font-size: 0.9rem;
}

.kmd-wizard-nav {
    display: flex;
    align-items: center;
}

.kmd-wizard-back {
    font-size: 0.9rem;
}

.kmd-wizard-back i {
    font-size: 0.85rem;
}

.kmd-carrier-result {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    color: #6b7280;
}

.kmd-carrier-result-pending {
    color: #1d4ed8;
}

.kmd-carrier-result-ready {
    color: #059669;
}

.kmd-carrier-result-error {
    color: #b91c1c;
}
