/* Oplix site — colors aligned with app Theme.swift (skyBlue / cloudBlue) */
:root {
    --sky-blue: #80ccff;
    --cloud-blue: #4db3ff;
    --deep-blue: #1a6bb5;
    --text: #1f2937;
    --text-muted: #4b5563;
    --bg-soft: #f0f7ff;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(26, 107, 181, 0.15);
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-soft);
}

a {
    color: var(--deep-blue);
}

/* Nav */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(77, 179, 255, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span,
.logo-mark {
    background: linear-gradient(135deg, var(--sky-blue), var(--cloud-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.logo.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1.15;
}

/* Name left, tagline right — split header row */
.brand-header {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 20px;
}

.brand-header .logo {
    flex-shrink: 0;
}

.brand-header .logo-mark {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.brand-header .logo-tagline {
    margin-left: auto;
    text-align: right;
    padding-left: 20px;
    border-left: 1px solid rgba(26, 107, 181, 0.22);
}

.logo-mark {
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    -webkit-text-fill-color: transparent;
    padding-right: 14px;
    margin-right: 14px;
    border-right: 1px solid rgba(26, 107, 181, 0.22);
}

.logo-tagline {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 0.8125rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    max-width: 14rem;
    line-height: 1.3;
}

/* Brand tagline variants — add one class beside brand-lockup to preview:
   brand-lockup--editorial (default) | brand-lockup--modern | brand-lockup--minimal */
.brand-lockup--modern .logo-tagline {
    font-family: inherit;
    font-style: normal;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-lockup--minimal .logo-tagline {
    font-family: inherit;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .brand-header .logo-tagline {
        display: none;
    }

    .logo-tagline {
        display: none;
    }

    .logo-mark {
        padding-right: 0;
        margin-right: 0;
        border-right: none;
    }

    .logo.brand-lockup .logo-mark {
        font-size: 1.35rem;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--deep-blue);
    background: rgba(77, 179, 255, 0.12);
}

.nav-login {
    margin-left: 4px;
}

.btn-nav {
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    background: linear-gradient(135deg, var(--cloud-blue), var(--deep-blue)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(26, 107, 181, 0.25);
}

.btn-nav:hover {
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cloud-blue), var(--deep-blue));
    color: white;
    box-shadow: 0 4px 16px rgba(26, 107, 181, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 107, 181, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--deep-blue);
    border: 2px solid var(--cloud-blue);
}

.btn-secondary:hover {
    background: rgba(77, 179, 255, 0.08);
}

/* Hero (landing) */
.hero {
    background: linear-gradient(145deg, var(--sky-blue) 0%, var(--cloud-blue) 45%, var(--deep-blue) 100%);
    color: white;
    padding: 80px 24px 100px;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero .tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    color: var(--deep-blue);
}

.hero-large {
    padding: 96px 24px 108px;
}

.hero-eyebrow,
.section-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 16px;
}

.hero-accent {
    color: #fff8dc;
}

.section-eyebrow {
    color: var(--cloud-blue);
    margin-bottom: 10px;
}

.challenges-section {
    background: var(--white);
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.challenges-copy h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--deep-blue);
    margin-bottom: 16px;
    line-height: 1.2;
}

.challenges-copy p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.compare-grid {
    display: grid;
    gap: 16px;
}

.compare-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(77, 179, 255, 0.15);
}

.compare-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--deep-blue);
}

.compare-card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.compare-card li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.compare-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cloud-blue);
}

.compare-problem {
    background: #fef2f2;
}

.compare-solution {
    background: #ecfdf5;
}

.platform-tabs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.platform-tab {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(77, 179, 255, 0.35);
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.platform-tab:hover,
.platform-tab.active {
    background: var(--deep-blue);
    color: white;
    border-color: var(--deep-blue);
}

.platform-panel {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 179, 255, 0.12);
    padding: 8px;
}

.platform-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
    align-items: center;
}

.platform-panel-copy h3 {
    color: var(--deep-blue);
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.platform-panel-copy p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.platform-panel-copy ul {
    list-style: none;
    color: var(--text-muted);
}

.platform-panel-copy li {
    padding: 6px 0 6px 22px;
    position: relative;
}

.platform-panel-copy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cloud-blue);
    font-weight: 700;
}

.platform-panel-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.mock-screen {
    background: linear-gradient(160deg, #e8f4ff, #f8fbff);
    border-radius: 20px;
    border: 1px solid rgba(77, 179, 255, 0.25);
    padding: 14px;
    max-width: 280px;
    margin: 0 auto;
}

.mock-screen-bar {
    height: 8px;
    width: 40%;
    background: rgba(26, 107, 181, 0.2);
    border-radius: 4px;
    margin-bottom: 14px;
}

.mock-line {
    height: 10px;
    background: rgba(26, 107, 181, 0.12);
    border-radius: 4px;
    margin-bottom: 10px;
}

.mock-line.wide { width: 90%; }
.mock-line.short { width: 55%; }

.mock-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0;
}

.mock-card {
    height: 48px;
    background: rgba(77, 179, 255, 0.2);
    border-radius: 8px;
}

.steps-section {
    background: var(--bg-soft);
}

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

.step-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(77, 179, 255, 0.15);
    box-shadow: 0 4px 14px rgba(26, 107, 181, 0.06);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--deep-blue);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cloud-blue);
    margin-bottom: 8px;
}

.step-card h3 {
    color: var(--deep-blue);
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.step-card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-card li {
    padding: 4px 0;
}

.industry-section {
    padding-top: 0;
}

.industry-card {
    background: linear-gradient(135deg, var(--sky-blue), var(--deep-blue));
    color: white;
    padding: 48px 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.industry-card h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 12px;
}

.industry-card > p {
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 24px;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.industry-tags span {
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.industry-card .btn-secondary {
    color: var(--deep-blue);
}

.cta-sub {
    margin-top: 20px;
    font-size: 0.9rem;
}

.cta-sub a {
    color: white;
    text-decoration: underline;
}

.site-footer-columns {
    text-align: left;
    padding: 48px 24px 32px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 260px;
}

.footer-grid h4 {
    color: var(--deep-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.footer-grid a {
    display: block;
    margin: 0 0 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-grid a:hover {
    color: var(--deep-blue);
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

.login-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 179, 255, 0.15);
}

.login-card h1 {
    color: var(--deep-blue);
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.login-lead {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--deep-blue);
    margin-bottom: 16px;
}

.login-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(77, 179, 255, 0.35);
    border-radius: 8px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

.login-note {
    margin-top: 24px;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -12px 0 20px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border-radius: 8px;
}

.login-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.9rem;
}

.login-error.login-message-info {
    background: #ecfdf5;
    color: #065f46;
}

.login-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Web app dashboard */
.dashboard-body {
    background: var(--bg-soft);
    min-height: 100vh;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: white;
    border-bottom: 1px solid rgba(77, 179, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-topbar .logo {
    font-size: 1.25rem;
}

.app-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 48px;
}

.app-error {
    color: #991b1b;
}

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.dashboard-sidebar {
    width: 168px;
    flex-shrink: 0;
    background: #fafcfe;
    border-right: 1px solid rgba(77, 179, 255, 0.12);
    padding: 16px 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.01em;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sidebar-btn:hover {
    background: rgba(77, 179, 255, 0.08);
    color: var(--deep-blue);
}

.sidebar-btn.active {
    background: white;
    color: var(--deep-blue);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(26, 107, 181, 0.1);
}

.dashboard-main {
    flex: 1;
    padding: 32px 28px 48px;
    overflow: auto;
}

.dashboard-panel {
    max-width: 900px;
}

.dashboard-panel--home {
    max-width: 1120px;
}

.home-loading {
    color: var(--text-muted);
    padding: 24px 0;
}

.home-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-greeting-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.home-greeting-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.home-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(77, 179, 255, 0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--cloud-blue);
}

.home-chip strong {
    font-weight: 600;
}

.home-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-section-label span {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.home-section-label--plain {
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #111;
}

.home-section-date {
    float: right;
    font-size: 0.7rem;
    font-weight: 500;
}

.home-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 179, 255, 0.12);
    overflow: hidden;
}

.home-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 12px;
}

.home-card-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    flex: 1;
}

.home-badge {
    background: #dc2626;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.home-alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-alert-item {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #f0f0f0;
}

.home-alert-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.home-alert-main:hover {
    background: #f8fafc;
}

.home-severity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-severity--critical { background: #dc2626; }
.home-severity--warning { background: #ea580c; }
.home-severity--info { background: #ca8a04; }

.home-alert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.home-alert-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111;
}

.home-alert-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-alert-ack {
    border: none;
    background: transparent;
    color: var(--cloud-blue);
    font-size: 1.25rem;
    padding: 0 14px;
    cursor: pointer;
    border-left: 1px solid #f0f0f0;
}

.home-alert-chevron {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
    padding-right: 4px;
}

.home-alert-main:disabled {
    cursor: default;
    opacity: 1;
}

.home-alert-more {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-top: 1px solid #f0f0f0;
    background: transparent;
    color: var(--cloud-blue);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.home-alert-more:hover {
    background: #f8fafc;
}

.home-empty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.home-empty-icon {
    font-size: 1.5rem;
    color: #16a34a;
}

.home-empty-title {
    font-weight: 600;
    color: #111;
    font-size: 0.9rem;
}

.home-empty-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.home-more-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 16px 14px;
}

.home-today-revenue {
    padding: 18px;
    margin-bottom: 12px;
}

.home-today-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

.home-today-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.home-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.home-trend--up { color: #16a34a; }
.home-trend--down { color: #dc2626; }
.home-trend--flat { color: var(--text-muted); }

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

.home-tile {
    padding: 14px;
}

.home-tile-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.home-tile-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
}

.home-tile-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.home-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 8px 0 4px;
    overflow: hidden;
}

.home-progress-fill {
    height: 100%;
    border-radius: 2px;
}

.home-progress-fill--blue { background: #2563eb; }
.home-progress-fill--orange { background: #ea580c; }

.home-stack .home-stack-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid #f0f0f0;
}

.home-stack .home-stack-row:first-child {
    border-top: none;
}

.home-stack-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
}

.home-stack-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.home-stack-amount {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.home-amount--pos { color: #16a34a; }
.home-amount--neg { color: #dc2626; }

.home-stack-row--net {
    background: #fafcfe;
}

.home-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.home-pill--pos { color: #16a34a; background: rgba(22, 163, 74, 0.12); }
.home-pill--neg { color: #dc2626; background: rgba(220, 38, 38, 0.12); }
.home-pill--even { color: #2563eb; background: rgba(37, 99, 235, 0.12); }
.home-pill--muted { color: #6b7280; background: #f3f4f6; }

.home-pad { padding: 14px; }

.home-shortcut {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 8px;
    border: 1px solid rgba(77, 179, 255, 0.15);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.home-shortcut:hover {
    border-color: var(--cloud-blue);
}

.home-shortcut-icon {
    font-size: 1.25rem;
}

.home-mtd-card {
    margin-bottom: 10px;
}

.home-mtd-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    list-style: none;
}

.home-mtd-summary::-webkit-details-marker {
    display: none;
}

.home-mtd-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

.home-mtd-body {
    padding: 0 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.home-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.88rem;
}

.home-stat-row span:first-child {
    color: var(--text-muted);
}

.home-stat-row span:last-child {
    font-weight: 600;
    color: #111;
}

.home-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 8px 0;
}

@media (max-width: 520px) {
    .home-tiles {
        grid-template-columns: 1fr;
    }
}

/* Facilities (Locations tab) */
.dashboard-panel--facilities {
    max-width: 560px;
}

.facilities-loading {
    color: var(--text-muted);
    padding: 20px 0;
}

.facilities-empty {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 179, 255, 0.12);
}

.facilities-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.facilities-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 8px;
}

.facilities-empty-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.facilities-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fac-card {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    font-family: inherit;
    color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.fac-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.fac-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fac-card-text {
    flex: 1;
    min-width: 0;
}

.fac-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fac-card-address {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.35;
}

.fac-card-chevron {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 600;
    line-height: 1;
}

.fac-recurring-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc2626;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
}

.fac-card-scores {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fac-score-track {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 8px;
}

.fac-score-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.fac-score-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.fac-score-fill {
    height: 100%;
    background: white;
    border-radius: 999px;
    min-width: 4px;
}

.fac-score-meta {
    font-size: 0.62rem;
    font-weight: 600;
    white-space: nowrap;
}

.fac-gradient-0 { background: linear-gradient(135deg, #3399ff, #994dff, #ff66cc); }
.fac-gradient-1 { background: linear-gradient(135deg, #ff9933, #ff4d4d, #ff80b3); }
.fac-gradient-2 { background: linear-gradient(135deg, #33e680, #33ccff, #4d80ff); }
.fac-gradient-3 { background: linear-gradient(135deg, #ffe633, #ffb333, #ff664d); }
.fac-gradient-4 { background: linear-gradient(135deg, #b34dff, #4d80ff, #33ccff); }
.fac-gradient-5 { background: linear-gradient(135deg, #ff66cc, #cc4dff, #6680ff); }
.fac-gradient-6 { background: linear-gradient(135deg, #33e6ff, #4dff80, #e6ff4d); }
.fac-gradient-7 { background: linear-gradient(135deg, #ff3333, #ff8033, #ffcc33); }

.location-detail-view {
    max-width: 640px;
}

.fac-detail-back {
    border: none;
    background: transparent;
    color: var(--cloud-blue);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 0 0 16px;
}

.fac-detail-back:hover {
    text-decoration: underline;
}

.fac-detail-header {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(77, 179, 255, 0.12);
    box-shadow: var(--shadow);
}

.fac-detail-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.fac-detail-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.location-detail-main .loc-attention {
    margin-bottom: 16px;
}

.location-detail-main .home-section {
    padding: 0;
}

.fac-section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
}

.fac-section-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 4px;
    border-radius: 12px;
    transition: background 0.15s;
}

.fac-section-tile:hover {
    background: rgba(77, 179, 255, 0.08);
}

.fac-section-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.fac-section-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fac-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #111;
    line-height: 1.25;
}

.loc-section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.loc-subheading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin: 20px 0 10px;
}

.loc-subhint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 16px;
}

.loc-row-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loc-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 179, 255, 0.12);
    box-shadow: var(--shadow);
}

.loc-row-card strong {
    display: block;
    color: #111;
    margin-bottom: 2px;
}

.loc-row-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.loc-emp-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}

.loc-emp-badge--done {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
}

.loc-emp-badge--partial {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.12);
}

.loc-emp-badge--none {
    color: #6b7280;
    background: #f3f4f6;
}

.loc-shift-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    white-space: nowrap;
}

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

.loc-category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 179, 255, 0.12);
    box-shadow: var(--shadow);
}

.loc-category-card--green .loc-category-icon {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.loc-category-card--blue .loc-category-icon {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.loc-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.loc-total-banner {
    background: rgba(77, 179, 255, 0.85);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.loc-total-banner span {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.loc-total-banner strong {
    font-size: 2rem;
    font-weight: 700;
}

.location-section-panel {
    padding-top: 4px;
}

@media (max-width: 520px) {
    .fac-section-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fac-score-track {
        grid-template-columns: 48px 1fr;
    }

    .fac-score-meta {
        grid-column: 2;
        justify-self: start;
    }
}

.panel-title {
    color: var(--deep-blue);
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.panel-lead {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.panel-sub {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.panel-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 179, 255, 0.12);
}

.data-list {
    list-style: none;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 179, 255, 0.12);
    overflow: hidden;
}

.data-list-item {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.data-list-item:last-child {
    border-bottom: none;
}

.data-list-item h3 {
    color: var(--deep-blue);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.data-list-meta {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.data-list-empty,
.panel-placeholder .data-list-empty {
    color: var(--text-muted);
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(77, 179, 255, 0.12);
}

.btn-nav-outline {
    background: white !important;
    color: var(--deep-blue) !important;
    border: 2px solid var(--cloud-blue) !important;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(77, 179, 255, 0.12);
        padding: 8px 10px;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .sidebar-btn {
        width: auto;
        padding: 7px 11px;
        font-size: 0.75rem;
    }
}

/* Sections */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(77, 179, 255, 0.15);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: var(--deep-blue);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--cloud-blue), var(--deep-blue));
    color: white;
    text-align: center;
    padding: 56px 24px;
    margin: 0;
}

.cta-band h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.cta-band p {
    opacity: 0.92;
    margin-bottom: 24px;
}

/* Page layout (support / privacy) */
.page-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.page-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(77, 179, 255, 0.12);
}

.page-header {
    background: linear-gradient(135deg, var(--sky-blue), var(--deep-blue));
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-header p {
    opacity: 0.9;
}

.page-body {
    padding: 40px 32px;
}

.page-body .block {
    margin-bottom: 36px;
}

.page-body .block h2 {
    color: var(--deep-blue);
    font-size: 1.5rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.page-body .block h3 {
    color: var(--deep-blue);
    font-size: 1.15rem;
    margin: 20px 0 10px;
}

.page-body p,
.page-body li {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.page-body ul {
    margin-left: 20px;
}

.faq-item {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border-left: 4px solid var(--cloud-blue);
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--deep-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-box {
    background: var(--bg-soft);
    padding: 20px;
    border-radius: 8px;
    margin-top: 12px;
}

.last-updated {
    background: var(--bg-soft);
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(77, 179, 255, 0.2);
    background: white;
}

.site-footer a {
    color: var(--deep-blue);
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .links {
    margin-bottom: 12px;
}

.coming-soon {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-left: 8px;
    vertical-align: middle;
}

/* Feature categories */
.platform-section {
    background: var(--white);
    border-top: 1px solid rgba(77, 179, 255, 0.15);
    border-bottom: 1px solid rgba(77, 179, 255, 0.15);
}

.section-cta {
    text-align: center;
    margin-top: 24px;
}

.section-cta a {
    font-weight: 600;
    color: var(--deep-blue);
    text-decoration: none;
}

.section-cta a:hover {
    text-decoration: underline;
}

#features-root,
#home-features-root {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    min-height: 118px;
    padding: 18px 12px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(77, 179, 255, 0.2);
    box-shadow: 0 4px 14px rgba(26, 107, 181, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: var(--cloud-blue);
    box-shadow: 0 8px 20px rgba(26, 107, 181, 0.14);
}

.category-card-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.category-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--deep-blue);
    line-height: 1.25;
    margin: 0;
}

@media (max-width: 900px) {
    .challenges-grid,
    .platform-panel-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .platform-panel-visual {
        order: -1;
    }
}

@media (max-width: 600px) {
    .site-nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-body {
        padding: 28px 20px;
    }
}
