/* =====================================================================
   Glass ERP - SaaS pages: super admin panel + marketing website.
   Builds on the tokens in app.css (brand lime, neutrals, radius, shadows).
   ===================================================================== */

/* ---------- super admin ---------- */
.admin-tag {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 12px 16px 8px; padding: 5px 10px; border-radius: 999px; justify-content: center;
    background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.auth-form .admin-tag { margin: 0 0 8px; }

.pill-alert {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    font-size: .8rem; font-weight: 500; text-decoration: none; border: 1px solid transparent;
}
.pa-blue { background: #eaf2ff; color: #1d4ed8; border-color: #d5e3ff; }
.pa-amber { background: #fff6e0; color: #92600a; border-color: #fde9b8; }
.pa-red { background: #fdecec; color: #b42318; border-color: #f9d3d0; }
.pa-green { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-100); }
.pill-alert:hover { filter: brightness(.97); }

dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
dl.kv dt { font-weight: 500; color: var(--muted); font-size: .8rem; }
dl.kv dd { margin: 0; min-width: 0; }
@media (max-width: 480px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 8px; } }

.activity-row { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.activity-row:last-child { border-bottom: 0; }

/* 6-month bar chart */
.mini-chart { display: flex; gap: 12px; align-items: stretch; height: 220px; }
.mc-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mc-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--line); }
.mc-bar { width: 38%; max-width: 26px; min-height: 2px; border-radius: 4px 4px 0 0; }
.mc-rev { background: var(--brand); }
.mc-sign { background: var(--grey-logo); opacity: .55; }
.mc-val { font-size: .7rem; text-align: center; margin-top: 6px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-label { font-size: .75rem; font-weight: 600; text-align: center; color: var(--ink-2); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.ld-brand { background: var(--brand); }
.ld-grey { background: var(--grey-logo); opacity: .55; }

/* ---------- marketing website ---------- */
body.site { background: var(--surface); font-size: .95rem; }
.site a { text-decoration: none; }
.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; padding: 12px 0; }
.site-nav .nav-link { color: var(--ink-2); font-weight: 500; padding: 8px 14px !important; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--brand-700); }

.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%); }
.hero-kicker { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--brand-100); color: var(--brand-800); font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin-bottom: 16px; }
.hero-sub { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 26px; max-width: 560px; }

.hero-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.hm-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hm-url { margin-left: 10px; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-body { padding: 20px; }
.hm-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); gap: 12px; }
.hm-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.page-hero { padding: 56px 0 32px; background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 100%); }
.cta { background: var(--brand-50); }

.feature-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow .15s, transform .15s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.tenant-tile { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-700); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.price-amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.price-amount small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-features { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; font-size: .9rem; }
.price-features i { color: var(--brand-700); margin-right: 4px; }

.plan-pick { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.btn-check:checked + .plan-pick { border-color: var(--brand-700); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(30, 155, 224, .2); }

.login-url { display: inline-block; max-width: 100%; padding: 10px 16px; background: var(--bg); border: 1px dashed var(--brand-400); border-radius: var(--radius-sm); font-weight: 600; color: var(--brand-800); word-break: break-all; }

.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--brand-700); }

@media (max-width: 575.98px) {
    .hero { padding: 40px 0 32px; }
    .section { padding: 48px 0; }
    .mini-chart { gap: 6px; height: 200px; }
    .mc-val { display: none; }
}
