@import "/theme.css";

/* ===========================
   GLOBAL RESET / BASE
=========================== */

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

/* ===========================
   LANDING PAGE
=========================== */

.landing-page {
    background: var(--pm-bg);
    color: var(--pm-text);
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.92);
    color: var(--pm-white);
    box-shadow: 0 6px 18px var(--pm-shadow);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-tagline {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.72);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.landing-cta {
    padding: 6px 14px;
    border-radius: 999px;
}

.landing-menu {
    display: none;
    width: 44px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.landing-menu span {
    display: block;
    height: 2px;
    margin: 6px 8px;
    background: var(--pm-white);
    border-radius: 999px;
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 100px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.hero {
    position: relative;
    padding: 36px 0 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.25), transparent 55%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.04));
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 3vw, 3.6rem);
    margin-bottom: 12px;
    color: var(--pm-navy);
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pm-primary);
    margin: 0 0 12px 0;
}

.hero-subhead {
    font-size: 1.05rem;
    color: var(--pm-text-muted);
    max-width: 520px;
}

.hero-microproof {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--pm-text-subtle);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    align-items: center;
}

.hero-secondary {
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.hero-microcopy {
    font-size: 0.85rem;
    color: var(--pm-text-subtle);
}

.hero-bullets {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--pm-text-muted);
    font-size: 0.9rem;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet-icon {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pm-primary);
    display: inline-block;
}

.hero-mock {
    display: flex;
    justify-content: center;
}

.device-frame {
    position: relative;
    width: 100%;
    max-width: 460px;
    min-height: 360px;
    background: var(--pm-white);
    border-radius: 26px;
    border: 1px solid var(--pm-border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    padding: 18px;
}

.device-stack {
    display: grid;
    gap: 12px;
    position: relative;
}

.stack-card {
    background: var(--pm-bg);
    border-radius: 16px;
    border: 1px solid var(--pm-border);
    padding: 12px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 2;
    animation: floatIn 8s ease-in-out infinite;
}

.stack-calendar {
    animation-delay: 0.8s;
}

.stack-job {
    animation-delay: 1.6s;
}

.stack-inventory {
    animation-delay: 2.4s;
}

.stack-title {
    font-weight: 600;
    color: var(--pm-navy);
    margin-bottom: 8px;
}

.stack-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}

.stack-label {
    font-weight: 600;
    color: var(--pm-navy);
    font-size: 0.9rem;
}

.stack-meta {
    font-size: 0.75rem;
    color: var(--pm-text-subtle);
}

.stack-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pm-primary);
}

.stack-dot-success {
    background: var(--pm-success);
}

.stack-dot-warning {
    background: var(--pm-warning);
}

.stack-chip {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--pm-primary);
}

.stack-progress {
    height: 8px;
    background: var(--pm-surface);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.stack-progress span {
    display: block;
    height: 100%;
    background: var(--pm-primary);
}

.device-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

.device-glow-a {
    background: rgba(37, 99, 235, 0.25);
    top: -30px;
    right: -20px;
}

.device-glow-b {
    background: rgba(37, 99, 235, 0.15);
    bottom: -30px;
    left: -20px;
}

.trust-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--pm-border);
    background: var(--pm-white);
}

.trust-text {
    font-weight: 600;
    color: var(--pm-navy);
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-pill {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--pm-text-muted);
}

.dashboard-preview {
    background: var(--pm-white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.preview-frame {
    margin-top: 16px;
    border-radius: 20px;
    border: 1px solid var(--pm-border);
    padding: 18px;
    background: var(--pm-bg);
}

.preview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.preview-card {
    background: var(--pm-white);
    border-radius: 16px;
    border: 1px solid var(--pm-border);
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.preview-title {
    font-weight: 600;
    color: var(--pm-navy);
    margin-bottom: 8px;
}

.preview-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pm-primary);
}

.preview-dot-success {
    background: var(--pm-success);
}

.preview-dot-warning {
    background: var(--pm-warning);
}

.preview-label {
    font-weight: 600;
    color: var(--pm-navy);
    font-size: 0.9rem;
}

.preview-meta {
    font-size: 0.75rem;
    color: var(--pm-text-subtle);
}

.preview-chip {
    background: rgba(37, 99, 235, 0.12);
    color: var(--pm-primary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
}

.preview-chip-success {
    background: var(--pm-success);
    color: var(--pm-white);
}

.preview-caption {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--pm-text-subtle);
}

.feature-section {
    background: var(--pm-white);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.section-header h2 {
    margin: 0 0 8px 0;
    color: var(--pm-navy);
}

.section-header p {
    margin: 0;
    color: var(--pm-text-muted);
}

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

.feature-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    background: var(--pm-surface);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--pm-border);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--pm-navy);
}

.feature-card p {
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 0.92rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.2);
    margin-bottom: 10px;
}

.social-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--pm-white);
    border: 1px solid var(--pm-border);
}

.social-proof strong {
    color: var(--pm-navy);
}

.proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.proof-chip {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--pm-text-muted);
}

.how-section {
    display: grid;
    gap: 18px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.how-step {
    background: var(--pm-white);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--pm-border);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.how-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--pm-primary);
    color: var(--pm-white);
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.feature-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--pm-white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.feature-detail-alt {
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
}

.detail-copy h2 {
    margin: 6px 0 10px;
    color: var(--pm-navy);
}

.detail-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--pm-primary);
    margin: 0 0 8px;
}

.detail-copy ul {
    margin: 0;
    padding-left: 18px;
    color: var(--pm-text-muted);
    display: grid;
    gap: 6px;
}

.detail-visual {
    display: flex;
    justify-content: center;
}

.detail-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 16px;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-card-header {
    font-weight: 600;
    color: var(--pm-navy);
    margin-bottom: 10px;
}

.detail-card-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--pm-border);
}

.detail-card-row:first-of-type {
    border-top: none;
}

.detail-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--pm-primary);
}

.detail-line {
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
}

.detail-title {
    font-weight: 600;
    color: var(--pm-navy);
}

.detail-meta {
    font-size: 0.75rem;
    color: var(--pm-text-subtle);
}

.detail-pill {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pm-surface);
    color: var(--pm-navy);
}

.detail-pill-success {
    background: var(--pm-success);
    color: var(--pm-white);
}

.detail-pill-warn {
    background: var(--pm-warning);
    color: var(--pm-white);
}

.trust-section {
    background: var(--pm-white);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.trust-card {
    background: var(--pm-surface);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--pm-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-card h3 {
    margin: 0 0 8px 0;
    color: var(--pm-navy);
}

.trust-card p {
    margin: 0;
    color: var(--pm-text-muted);
}

.detail-card:hover,
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.cta-section {
    padding: 10px 0 20px;
}

.cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.cta-card h2 {
    margin: 0 0 6px 0;
    color: var(--pm-navy);
}

.cta-card p {
    margin: 0;
    color: var(--pm-text-muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pricing-section {
    background: var(--pm-white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.pricing-card {
    background: var(--pm-bg);
    border-radius: 18px;
    border: 1px solid var(--pm-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.pricing-card-highlight {
    border: 2px solid var(--pm-primary);
    position: relative;
    background: rgba(37, 99, 235, 0.05);
}

.pricing-pill {
    position: absolute;
    top: -12px;
    right: 14px;
    background: var(--pm-primary);
    color: var(--pm-white);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.pricing-title {
    font-weight: 700;
    color: var(--pm-navy);
}

.pricing-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pm-navy);
}

.pricing-card ul {
    padding-left: 18px;
    margin: 0;
    color: var(--pm-text-muted);
    display: grid;
    gap: 6px;
}

.testimonials {
    background: var(--pm-white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.testimonial-card {
    background: var(--pm-bg);
    border-radius: 16px;
    border: 1px solid var(--pm-border);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.testimonial-card p {
    margin: 0 0 10px 0;
    color: var(--pm-text);
}

.testimonial-meta {
    font-size: 0.8rem;
    color: var(--pm-text-subtle);
}

.faq-section {
    background: var(--pm-white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faq-grid {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.faq-grid details {
    background: var(--pm-bg);
    border-radius: 14px;
    border: 1px solid var(--pm-border);
    padding: 12px 14px;
}

.faq-grid summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--pm-navy);
}

.faq-grid p {
    margin: 8px 0 0;
    color: var(--pm-text-muted);
}

.final-cta {
    padding: 10px 0 20px;
}

.final-cta-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.7));
    border-radius: 24px;
    padding: 24px;
    color: var(--pm-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.final-cta-card h2 {
    margin: 0 0 6px 0;
}

.final-cta-card p {
    margin: 0;
    color: rgba(248, 250, 252, 0.85);
}

.final-cta-btn {
    background: var(--pm-white);
    color: var(--pm-navy);
}

@keyframes floatIn {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .visual-card {
        animation: none;
    }
}

.landing-footer {
    background: var(--pm-navy);
    color: var(--pm-white);
    padding: 28px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.footer-grid a {
    color: rgba(248, 250, 252, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-grid p {
    margin: 8px 0 0;
    color: rgba(248, 250, 252, 0.75);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .landing-nav {
        position: absolute;
        right: 16px;
        top: 64px;
        background: var(--pm-navy);
        border-radius: 14px;
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
        display: none;
    }

    .landing-header.nav-open .landing-nav {
        display: flex;
    }

    .landing-menu {
        display: block;
    }

    .landing-cta {
        width: 100%;
        text-align: center;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", "Trebuchet MS", sans-serif;
    background: var(--pm-bg);
    color: var(--pm-text);
}

body {
    min-height: 100vh;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* ===========================
   HEADER / NAV
=========================== */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--pm-navy);
    color: var(--pm-white);
    box-shadow: 0 1px 4px var(--pm-shadow);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
    color: inherit;
}

.logo img {
    width: 28px;
    height: 28px;
    display: block;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-logo img {
    width: 60px;
    height: 60px;
}

.auth-logo span {
    font-weight: 600;
    color: var(--pm-navy);
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--pm-white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link:focus-visible,
.btn-main:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--pm-primary);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--pm-white);
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--pm-white);
    border-radius: 999px;
}

@media (max-width: 820px) {
    header {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 8px;
    }

    header.nav-open nav {
        display: flex;
    }
}

.auditor-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.auditor-value {
    font-weight: 600;
}

/* ===========================
   PASSWORD RESET BANNER
=========================== */

.pw-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: var(--pm-warning-bg);
    border-bottom: 1px solid var(--pm-warning-border);
    color: var(--pm-warning);
    font-size: 0.85rem;
}

/* ===========================
   USER MENU
=========================== */
.user-menu {
    margin-left: auto;
    position: relative;
}

.user-menu .btn {
    white-space: nowrap;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: var(--pm-white);
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 24px var(--pm-shadow);
    z-index: 20;
}

.user-menu-item {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--pm-navy);
    padding: 10px 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.user-menu-item:hover {
    background: rgba(37, 99, 235, 0.2);
}

@media (max-width: 820px) {
    .user-menu {
        margin-left: 0;
        width: 100%;
    }

    .user-menu .btn {
        width: 100%;
        justify-content: center;
    }

    .user-menu-dropdown {
        position: static;
        width: 100%;
        margin-top: 6px;
    }
}

/* ===========================
   PAGE TITLES
=========================== */

.page-title {
    font-size: 1.6rem;
    margin: 0 0 16px;
}

/* ===========================
   PANELS / GROUPS
=========================== */

.panel-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel {
    background: var(--pm-white);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px var(--pm-shadow);
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

/* Two-column layout for inventory main content */
.layout-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
}

/* Three-column panel (Item Type / Room / Size) */
.three-column-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===========================
   FORMS / FIELDS
=========================== */

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.field {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field.full {
    flex-basis: 100%;
}

.field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pm-text-muted);
}

.field input,
.field select,
.field textarea,
.room-input,
.textarea-full {
    border-radius: 8px;
    border: 1px solid var(--pm-border);
    padding: 6px 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.textarea-full {
    width: 100%;
}

/* ===========================
   OPTION GROUPS (RADIOS)
=========================== */

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--pm-border);
    background: var(--pm-bg);
    font-size: 0.85rem;
    cursor: pointer;
}

.option-item input {
    margin: 0;
}

/* ===========================
   BUTTONS
=========================== */

.btn-main {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--pm-primary);
    color: var(--pm-white);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.05s ease, box-shadow 0.05s ease, background 0.15s ease;
}

.btn-main:hover {
    background: var(--pm-primary-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.btn-secondary {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: var(--pm-white);
    color: var(--pm-primary);
    cursor: pointer;
}

.btn-small {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    border: 1px solid var(--pm-border);
    background: var(--pm-white);
    cursor: pointer;
}

.full-width {
    width: 100%;
}

/* Dashboard / main menu buttons */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.main-btn,
.link-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--pm-white);
    text-decoration: none;
    color: var(--pm-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--pm-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.15s ease, transform 0.05s ease, background 0.15s ease;
}

.main-btn:hover,
.link-btn:hover {
    background: var(--pm-bg);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

/* ===========================
   CREATE JOB PAGE
=========================== */

.create-job-main {
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===========================
   JOBS LIST PAGE
=========================== */

.jobs-main {
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jobs-list {
    margin-top: 10px;
}

.jobs-empty {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--pm-text-muted);
}

.job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6px;
    border-bottom: 1px solid var(--pm-border);
}

.job-sub {
    color: var(--pm-text-subtle);
    font-size: 0.85rem;
}

.job-row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.job-open-btn {
    min-width: 70px;
}

/* ===========================
   INVENTORY PAGE
=========================== */

.inventory-main {
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.current-job-banner {
    background: var(--pm-white);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px var(--pm-shadow);
}

/* Items for this job panel */

.item-save-message {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--pm-text);
}

.items-list {
    margin-top: 12px;
    border-top: 1px solid var(--pm-border);
    padding-top: 10px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.items-list-empty {
    color: var(--pm-text-subtle);
    font-style: italic;
}

.item-row {
    padding: 6px 0;
    border-bottom: 1px solid var(--pm-border);
}

.item-row strong {
    font-weight: 600;
}

/* ===========================
   CAMERA / IMAGE SECTION
=========================== */

.camera-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.camera-button-row {
    display: flex;
    gap: 8px;
}

.camera-preview {
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--pm-border);
    background: var(--pm-black);
}

.camera-preview video {
    width: 100%;
    max-height: 320px;
    display: block;
    object-fit: cover;
}

.camera-actions {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    background: var(--pm-bg);
}

.image-thumbs {
    margin-top: 8px;
}

.image-thumbs h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.image-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.image-thumb-item {
    width: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--pm-border);
    background: var(--pm-bg);
}

.image-thumb-item img {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.image-thumb-label {
    font-size: 0.7rem;
    text-align: center;
    padding: 2px 0;
}

/* ===========================
   JOB DETAILS PAGE
=========================== */

.job-detail-main {
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 20px;
    font-size: 0.95rem;
}

.job-summary>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.job-notes {
    margin-top: 12px;
    font-size: 0.9rem;
}

.job-actions-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-actions-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.job-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.job-item-row {
    border-bottom: 1px solid var(--pm-border);
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.job-item-main {
    font-size: 0.9rem;
}

.job-item-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.job-item-text {
    margin-top: 4px;
}

.job-item-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.job-item-images {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
    .layout-two-column {
        grid-template-columns: 1fr;
    }

    .three-column-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    main {
        padding: 16px 12px 24px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .form-row {
        flex-direction: column;
    }

    .field {
        flex-basis: 100%;
    }

    .job-summary {
        grid-template-columns: 1fr !important;
    }

    .job-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .job-row-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .job-actions-buttons {
        flex-direction: column;
    }

    .camera-preview video {
        width: 100%;
        max-height: 260px;
        object-fit: cover;
    }

    .highlight-item {
        outline: 2px solid var(--pm-primary);
        background-color: var(--pm-bg);
    }

}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--pm-border);
    background: var(--pm-bg);
    font-size: 0.78rem;
    color: var(--pm-text);
}

.company-copy-btn {
    border: 1px solid var(--pm-border);
    background: var(--pm-white);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    cursor: pointer;
}

.company-copy-btn:hover {
    background: var(--pm-surface);
}

/* ===========================
   LANDING POP
=========================== */

.landing-hero-pop {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(248, 250, 252, 0.92));
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.45;
    z-index: 0;
}

.hero-glow-a {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), rgba(37, 99, 235, 0));
}

.hero-glow-b {
    width: 360px;
    height: 360px;
    bottom: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(37, 99, 235, 0));
}

.landing-hero-pop .hero-grid {
    position: relative;
    z-index: 1;
}

.landing-hero-pop h1 {
    font-size: clamp(2.3rem, 3.6vw, 3.6rem);
    line-height: 1.08;
    max-width: 560px;
}

.landing-hero-pop .hero-subhead {
    max-width: 520px;
}

.hero-primary {
    background: linear-gradient(135deg, var(--pm-primary), var(--pm-primary-dark));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    padding: 12px 20px;
}

.hero-secondary {
    border-color: rgba(122, 77, 255, 0.4);
}

.hero-tertiary {
    color: var(--pm-primary);
    font-weight: 600;
    text-decoration: none;
}

.hero-microcopy {
    font-size: 0.85rem;
    color: var(--pm-text-subtle);
    margin-top: 8px;
}

.mock-dashboard {
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--pm-border);
}

.mock-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
}

.mock-thumb {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.35);
}

.mock-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-chip {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--pm-surface);
    color: var(--pm-navy);
}

.mock-chip-restore {
    background: var(--pm-success-bg);
    color: var(--pm-success);
}

.mock-chip-return {
    background: rgba(37, 99, 235, 0.16);
    color: var(--pm-primary);
}

.mock-chip-salvage {
    background: var(--pm-warning-bg);
    color: var(--pm-warning);
}

.mock-chip-loss {
    background: var(--pm-danger-bg);
    color: var(--pm-danger);
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 0 24px 32px;
    margin-top: -12px;
}

.metric-tile {
    background: var(--pm-white);
    border-radius: 14px;
    border: 1px solid var(--pm-border);
    padding: 14px 16px;
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-value {
    font-weight: 700;
    color: var(--pm-primary);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--pm-text-subtle);
    margin-top: 2px;
}

.feature-card ul {
    margin: 10px 0 0;
    padding-left: 16px;
    color: var(--pm-text-muted);
    font-size: 0.85rem;
    display: grid;
    gap: 6px;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(37, 99, 235, 0.35);
    margin-bottom: 10px;
}

.testimonial-block {
    margin: 40px auto 20px;
    padding: 24px;
    border-radius: 18px;
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    max-width: 920px;
    text-align: center;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.testimonial-quote {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pm-navy);
}

.testimonial-meta {
    margin-top: 8px;
    color: var(--pm-text-subtle);
    font-size: 0.85rem;
}

.landing-header .nav-link,
.landing-header .btn-main,
.feature-card,
.metric-tile,
.mock-dashboard,
.cta-block,
.trust-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.metric-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
}

.hero-primary:hover {
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.35);
}

.btn-secondary:hover {
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

@media (max-width: 900px) {
    .landing-hero-pop h1 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .metrics-strip {
        padding: 0 16px 24px;
    }

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

    .hero-tertiary {
        margin-top: 4px;
    }
}

.system-notice-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 2px solid var(--pm-primary);
    background: #e0ecff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.system-notice-banner.warning {
    background: #fff4e5;
    border-color: #f1c980;
}

.system-notice-banner.critical {
    background: #fee2e2;
    border-color: #fecaca;
}

.system-notice-banner strong {
    font-size: 1rem;
}

.system-notice-meta {
    font-size: 0.8rem;
    color: var(--pm-text-muted);
}

.system-notice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.system-notice-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: var(--pm-navy);
    color: var(--pm-white);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    font-size: 0.85rem;
    max-width: 320px;
}

.system-notice-toast.warning {
    background: #f59e0b;
}

.system-notice-toast.critical {
    background: #dc2626;
}

.system-notice-toast button {
    border: none;
    background: transparent;
    color: inherit;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
}
