/* ============================================================
   ERPKeeper – Enterprise Design System
   Clean, restrained, single-accent palette.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Neutrals (slate) */
    --c-bg:           #ffffff;
    --c-bg-subtle:    #f8fafc;
    --c-bg-muted:     #f1f5f9;
    --c-border:       #e2e8f0;
    --c-border-strong:#cbd5e1;
    --c-text:         #0a1628;
    --c-text-muted:   #475569;
    --c-text-subtle:  #64748b;
    /* Brand — softer corporate navy (trust, stability) */
    --c-navy-900:     #1e293b;  /* deep slate, not black */
    --c-navy-800:     #243349;
    --c-navy-700:     #334155;
    --c-navy-600:     #475569;
    /* Accent — corporate blue (replaces gold) */
    --c-gold:         #2563eb;  /* legacy alias kept for compat */
    --c-gold-hover:   #1d4ed8;
    --c-gold-soft:    #eff6ff;
    /* Primary action color — saturated trust blue */
    --c-accent:       #1d4ed8;
    --c-accent-hover: #1e40af;
    --c-accent-soft:  #eff6ff;
    --c-accent-ring:  rgba(29,78,216,.18);
    /* Semantic */
    --c-success:      #047857;
    --c-warning:      #b45309;
    --c-danger:       #b91c1c;
    /* Surface tokens (legacy aliases kept for back-compat) */
    --navy:           var(--c-text);
    --blue:           var(--c-accent);
    --slate-100:      var(--c-bg-muted);
    --slate-600:      var(--c-text-muted);
    /* Elevation — slightly stronger for "weight" */
    --shadow-xs: 0 1px 2px rgba(10,22,40,.06);
    --shadow-sm: 0 2px 4px rgba(10,22,40,.06), 0 1px 2px rgba(10,22,40,.04);
    --shadow-md: 0 8px 24px rgba(10,22,40,.08), 0 2px 6px rgba(10,22,40,.04);
    --shadow-lg: 0 24px 48px rgba(10,22,40,.12), 0 4px 12px rgba(10,22,40,.06);
    --radius-sm: .375rem;
    --radius:    .5rem;
    --radius-lg: .75rem;
}

/* ── Base ───────────────────────────────────────── */
* { -webkit-font-smoothing: antialiased; }
body {
    font-family: 'IBM Plex Sans','IBM Plex Sans Thai',-apple-system,BlinkMacSystemFont,sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    font-size: 15px;
    line-height: 1.55;
}
h1,h2,h3,h4,h5,h6 { color: var(--c-text); letter-spacing: -0.015em; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

/* ── Header ─────────────────────────────────────── */
.erp-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.erp-logo {
    font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em;
    color: var(--c-text); text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
}
.erp-logo .logo-img,
.footer-brand .logo-img {
    width: 28px; height: 28px; object-fit: contain;
}
.erp-logo span { color: var(--c-accent); }
.erp-nav { display: flex; align-items: center; gap: 1.75rem; }
.erp-nav .nav-link {
    color: var(--c-text-muted); font-size: .875rem; font-weight: 500;
    padding: 0; transition: color .15s;
}
.erp-nav .nav-link:hover { color: var(--c-text); }
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: .8rem;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.nav-dropdown-toggle i {
    font-size: .65rem;
    color: var(--c-text-subtle);
    transition: transform .15s ease;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + .15rem);
    left: 0;
    min-width: 210px;
    padding: .4rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 30;
}
.nav-dropdown-item {
    display: block;
    padding: .5rem .65rem;
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
}
.nav-dropdown-item:hover {
    background: var(--c-bg-subtle);
    color: var(--c-text);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown:focus-within .nav-dropdown-toggle i {
    transform: rotate(180deg);
}
.lang-btn {
    font-size: .75rem; font-weight: 500;
    border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    padding: .3rem .6rem; cursor: pointer; background: var(--c-bg);
    color: var(--c-text-muted); transition: all .15s;
}
.lang-btn:hover { border-color: var(--c-text-muted); color: var(--c-text); }

/* ── Buttons ────────────────────────────────────── */
.btn-primary-erp {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--c-accent); color: #fff;
    border: 1px solid var(--c-accent);
    border-radius: var(--radius); padding: .55rem 1.1rem;
    font-weight: 500; font-size: .875rem; text-decoration: none;
    transition: all .15s; box-shadow: var(--shadow-xs);
}
.btn-primary-erp:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #fff; }
.btn-secondary-erp {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--c-bg); color: var(--c-text);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius); padding: .55rem 1.1rem;
    font-weight: 500; font-size: .875rem; text-decoration: none;
    transition: all .15s;
}
.btn-secondary-erp:hover { border-color: var(--c-text-muted); color: var(--c-text); background: var(--c-bg-subtle); }
/* Legacy alias for old markup */
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--c-accent); color: #fff;
    border: 1px solid var(--c-accent);
    border-radius: var(--radius); padding: .55rem 1.1rem;
    font-weight: 500; font-size: .875rem; text-decoration: none;
    transition: all .15s; box-shadow: var(--shadow-xs);
}
.hero-btn-primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #fff; }

/* ── Hero (light, professional, with subtle blue tint) ── */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(29,78,216,.08), transparent 65%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(29,78,216,.05), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--c-text);
    padding: 6rem 0 5rem;
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
}
/* dot grid texture (subtle blue dots) */
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(29,78,216,.10) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    opacity: .55;
    pointer-events: none;
}
/* soft glow */
.hero::after {
    content: ""; position: absolute; left: 50%; top: -100px;
    width: 900px; height: 500px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(29,78,216,.10), transparent);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 600;
    color: var(--c-accent-hover);
    background: var(--c-accent-soft);
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: .35rem .85rem;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 0 4px rgba(4,120,87,.18);
}
.hero h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    font-weight: 700; line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--c-text);
    margin: 1.5rem 0 1.25rem;
    max-width: 820px;
}
.hero h1 .accent {
    color: var(--c-accent);
    background: linear-gradient(135deg, var(--c-accent) 0%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    color: var(--c-text-muted); font-size: 1.0625rem;
    max-width: 640px; margin: 0;
    line-height: 1.6;
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta {
    margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.75rem;
    font-size: .8125rem; color: var(--c-text-subtle);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta-item i { color: var(--c-success); font-size: .85rem; }

/* Hero stat panel — solid white card with strong shadow */
.hero-panel {
    margin-top: 4.5rem;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-panel-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-panel-cell {
    padding: 1.6rem 1.85rem;
    border-right: 1px solid var(--c-border);
}
.hero-panel-cell:last-child { border-right: 0; }
.hero-panel-cell .label {
    font-size: .7rem; font-weight: 600; color: var(--c-text-subtle);
    text-transform: uppercase; letter-spacing: .08em;
    display: flex; align-items: center; gap: .4rem;
}
.hero-panel-cell .label i { color: var(--c-accent); }
.hero-panel-cell .value {
    font-size: 1.6rem; font-weight: 700; color: var(--c-text);
    margin-top: .45rem; letter-spacing: -.02em;
}
.hero-panel-cell .value small { font-size: .75rem; color: var(--c-success); font-weight: 600; margin-left: .4rem; }
@media (max-width: 768px) {
    .hero-panel-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-panel-cell:nth-child(2) { border-right: 0; }
    .hero-panel-cell:nth-child(-n+2) { border-bottom: 1px solid var(--c-border); }
}

/* ── Sections ───────────────────────────────────── */
section { padding: 5rem 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-label {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 600;
    color: var(--c-accent-hover);
    letter-spacing: .14em; text-transform: uppercase;
}
.section-label::before, .section-label::after {
    content: ""; width: 24px; height: 1px; background: var(--c-accent); opacity: .4;
}
.section-title {
    font-size: clamp(1.625rem, 2.6vw, 2.125rem);
    font-weight: 700; color: var(--c-text);
    letter-spacing: -.025em;
    margin: .75rem 0 .75rem;
}
.section-sub {
    color: var(--c-text-muted); font-size: 1rem;
    max-width: 600px; margin: 0 auto;
}
.compare-cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--c-accent);
}
.compare-cta i {
    font-size: .75rem;
}

/* ── Feature Cards (no icon box, just bold icon) ── */
.feat-card {
    position: relative;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.85rem;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    overflow: hidden;
}
.feat-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.feat-icon {
    color: var(--c-accent);
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.feat-card h5 {
    font-size: 1.0625rem; font-weight: 600;
    color: var(--c-text); margin: 0 0 .5rem;
    letter-spacing: -.015em;
}
.feat-card p {
    font-size: .9rem; color: var(--c-text-muted);
    margin: 0; line-height: 1.6;
}

/* ── Trust / Stats (soft tinted background) ─────── */
.trust-section {
    position: relative;
    background:
        radial-gradient(ellipse 60% 80% at 0% 50%, rgba(29,78,216,.05), transparent 60%),
        linear-gradient(180deg, var(--c-bg-subtle) 0%, var(--c-bg-muted) 100%);
    color: var(--c-text);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    overflow: hidden;
}
.trust-section::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(29,78,216,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .6;
    pointer-events: none;
}
.trust-section > .container { position: relative; z-index: 1; }
.trust-card {
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.85rem 1.6rem;
    text-align: left;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.trust-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.trust-icon {
    color: var(--c-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    line-height: 1;
}
.trust-card h6 {
    font-size: .9375rem; font-weight: 600;
    color: var(--c-text); margin: 0 0 .4rem;
}
.trust-card p {
    font-size: .85rem; color: var(--c-text-muted);
    margin: 0; line-height: 1.55;
}

/* ── Module Cards (strong, with gold accent border) ── */
.module-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.85rem 1.75rem;
    height: 100%;
    color: var(--c-text);
    position: relative;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    overflow: hidden;
}
.module-card:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.module-card .module-head {
    display: flex; align-items: center; gap: .85rem;
    margin-bottom: 1rem;
}
.module-card .module-icon {
    color: var(--c-navy-700);
    font-size: 1.5rem;
    line-height: 1;
}
.module-card.hr .module-icon  { color: var(--c-success); }
.module-card.crm .module-icon { color: #6d28d9; }
.module-card h4 {
    font-size: 1.125rem; font-weight: 700; margin: 0;
    color: var(--c-text); letter-spacing: -.015em;
}
.module-card ul {
    list-style: none; padding: 0; margin: 0 0 1.4rem;
    font-size: .875rem; color: var(--c-text-muted);
}
.module-card ul li {
    padding: .5rem 0; border-bottom: 1px dashed var(--c-border);
    display: flex; align-items: center; gap: .65rem;
}
.module-card ul li:last-child { border-bottom: 0; }
.module-card ul li i {
    color: var(--c-accent);
    font-size: .7rem;
    flex-shrink: 0;
}
.module-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--c-navy-700); font-size: .8125rem; font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--c-border);
    padding-top: 1rem;
    width: 100%;
    transition: gap .15s, color .15s;
}
.module-link:hover { color: var(--c-accent-hover); gap: .65rem; }

/* ── Footer (light, professional) ───────────────── */
.erp-footer {
    position: relative;
    background: var(--c-bg-subtle);
    border-top: 1px solid var(--c-border);
    color: var(--c-text-muted);
    padding: 4rem 0 1.75rem;
    overflow: hidden;
}
.erp-footer::before { display: none; }
.erp-footer > .container { position: relative; z-index: 1; }
.erp-footer a {
    color: var(--c-text-muted); text-decoration: none;
    font-size: .875rem; transition: color .15s;
}
.erp-footer a:hover { color: var(--c-accent); }
.erp-footer ul { list-style: none; padding: 0; margin: 0; }
.erp-footer ul li { padding: .3rem 0; }
.footer-brand {
    color: var(--c-text); font-weight: 700; font-size: 1.0625rem;
    letter-spacing: -.02em;
    display: inline-flex; align-items: center; gap: .55rem;
}
.footer-brand span { color: var(--c-accent); }
.footer-heading {
    font-size: .7rem; font-weight: 700; color: var(--c-text);
    text-transform: uppercase; letter-spacing: .12em;
    margin-bottom: 1rem;
}
.footer-bottom {
    border-top: 1px solid var(--c-border);
    margin-top: 3rem; padding-top: 1.5rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-size: .8125rem; color: var(--c-text-subtle);
}

/* ── App shell (Org / Hub dashboards) ───────────── */
.app-shell { min-height: 100vh; background: var(--c-bg-subtle); }
.app-topbar {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    height: 56px;
    display: flex; align-items: center;
    padding: 0 1.25rem;
    position: sticky; top: 0; z-index: 50;
}
.app-topbar .area-badge {
    font-size: .7rem; font-weight: 500;
    padding: .2rem .55rem; border-radius: var(--radius-sm);
    background: var(--c-bg-muted); color: var(--c-text-muted);
    border: 1px solid var(--c-border);
}
.app-topbar .area-badge.org { background: #ecfdf5; color: var(--c-success); border-color: #d1fae5; }
.app-topbar .area-badge.hub { background: var(--c-accent-soft); color: var(--c-accent); border-color: #dbeafe; }

.app-body { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 56px); }
.app-sidebar {
    background: var(--c-bg);
    border-right: 1px solid var(--c-border);
    padding: 1.25rem .75rem;
}
.app-sidebar .sidebar-section {
    font-size: .7rem; font-weight: 600; color: var(--c-text-subtle);
    text-transform: uppercase; letter-spacing: .08em;
    padding: .5rem .75rem; margin-top: .5rem;
}
.app-sidebar .sidebar-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem .75rem; border-radius: var(--radius-sm);
    color: var(--c-text-muted); font-size: .875rem; font-weight: 500;
    text-decoration: none; transition: all .12s;
}
.app-sidebar .sidebar-link:hover { background: var(--c-bg-muted); color: var(--c-text); }
.app-sidebar .sidebar-link.active {
    background: var(--c-navy-700);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--c-accent);
}
.app-sidebar .sidebar-link.active i { color: #93c5fd; }
.app-sidebar .sidebar-link i {
    width: 16px; text-align: center;
    font-size: .875rem;
    color: var(--c-text-subtle);
}
.app-sidebar .sidebar-link:hover i { color: var(--c-text); }
.app-content { padding: 2rem 2.25rem; }

.page-header { margin-bottom: 1.75rem; }
.page-header h1 {
    font-size: 1.375rem; font-weight: 600; margin: 0;
    color: var(--c-text); letter-spacing: -.02em;
}
.page-header p { font-size: .875rem; color: var(--c-text-muted); margin: .25rem 0 0; }

.stat-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.4rem;
}
.stat-card .stat-label {
    font-size: .75rem; font-weight: 500; color: var(--c-text-subtle);
    text-transform: uppercase; letter-spacing: .06em;
}
.stat-card .stat-value {
    font-size: 1.625rem; font-weight: 600; color: var(--c-text);
    letter-spacing: -.02em; margin-top: .35rem;
}
.stat-card .stat-trend {
    font-size: .8125rem; font-weight: 500; margin-top: .25rem;
    display: inline-flex; align-items: center; gap: .25rem;
}
.stat-trend.up   { color: var(--c-success); }
.stat-trend.down { color: var(--c-danger); }

@media (max-width: 768px) {
    .app-body { grid-template-columns: 1fr; }
    .app-sidebar { display: none; }
    .app-content { padding: 1.25rem; }
}

/* ── Contact Page ──────────────────────────────── */
.contact-hero {
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(29,78,216,.07), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--c-bg-subtle) 100%);
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--c-border);
}
.contact-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; letter-spacing: -.03em;
    color: var(--c-text); margin: 1.25rem 0 1rem;
    max-width: 700px;
}
.contact-body { padding: 4rem 0; }
.contact-info-card,
.contact-form-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%;
}
.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.25rem; font-weight: 600;
    color: var(--c-text); margin: 0 0 .35rem;
}
.contact-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-item-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.contact-item-label {
    font-size: .75rem; font-weight: 600; color: var(--c-text-subtle);
    text-transform: uppercase; letter-spacing: .06em;
}
.contact-item-value {
    font-size: .9375rem; font-weight: 500; color: var(--c-text);
    text-decoration: none; display: block; margin-top: .15rem;
}
a.contact-item-value:hover { color: var(--c-accent); }
.contact-social {
    display: flex; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--c-border);
}
.contact-social a {
    width: 38px; height: 38px; border-radius: var(--radius);
    border: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-text-muted); font-size: .9rem;
    text-decoration: none; transition: all .15s;
}
.contact-social a:hover {
    border-color: var(--c-accent); color: var(--c-accent);
    background: var(--c-accent-soft);
}

.contact-form-card .form-label {
    font-size: .8125rem; font-weight: 500; color: var(--c-text);
    margin-bottom: .35rem;
}
.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font-size: .875rem; padding: .6rem .85rem;
    color: var(--c-text); background: var(--c-bg);
    transition: border-color .15s, box-shadow .15s;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-ring);
    outline: none;
}
.contact-form-card .form-control::placeholder { color: var(--c-text-subtle); }

.contact-cta {
    background: var(--c-bg-subtle);
    border-top: 1px solid var(--c-border);
    padding: 5rem 0;
}
.cta-card {
    display: block; text-align: center; text-decoration: none;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cta-card:hover {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.cta-icon {
    width: 52px; height: 52px; border-radius: var(--radius-lg);
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 1.1rem;
}
.cta-card h5 {
    font-size: 1.0625rem; font-weight: 600; color: var(--c-text);
    margin: 0 0 .4rem;
}
.cta-card p {
    font-size: .875rem; color: var(--c-text-muted);
    margin: 0; line-height: 1.55;
}

/* ── Pricing ───────────────────────────────────── */
.pricing-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%; display: flex; flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}
.pricing-card.featured {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--c-accent);
}
.pricing-badge {
    font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--c-accent);
}
.pricing-price {
    font-size: 2.25rem; font-weight: 700; color: var(--c-text);
    margin: .5rem 0 .5rem; line-height: 1.1;
}
.pricing-price span { font-size: .875rem; font-weight: 400; color: var(--c-text-muted); }
.pricing-features {
    list-style: none; padding: 0; margin: 1.25rem 0 1.5rem;
    flex: 1;
}
.pricing-features li {
    padding: .45rem 0; font-size: .875rem; color: var(--c-text-muted);
    display: flex; align-items: center; gap: .6rem;
}
.pricing-features li i { color: var(--c-accent); font-size: .7rem; }

/* ── Feature comparison ───────────────────────── */
.feature-compare-body {
    background: var(--c-bg-subtle);
    border-top: 1px solid var(--c-border);
}
.compare-legend {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.compare-plan {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 999px;
    padding: .35rem .75rem;
}
.compare-plan.basic { background: #e2e8f0; color: #334155; }
.compare-plan.pro { background: #dbeafe; color: #1e40af; }
.compare-plan.premium { background: #dcfce7; color: #166534; }

.feature-group-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.1rem .45rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-xs);
}
.feature-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: .15rem .2rem .8rem;
    color: var(--c-text);
}
.feature-table {
    margin-bottom: .4rem;
    font-size: .88rem;
}
.feature-table thead th {
    background: var(--c-bg-subtle);
    color: var(--c-text);
    font-size: .77rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    border-bottom: 1px solid var(--c-border);
}
.feature-table th,
.feature-table td {
    padding: .65rem .75rem;
    vertical-align: middle;
    border-color: var(--c-border);
}
.feature-table td:not(.feature-name),
.feature-table th:not(:first-child) {
    text-align: center;
    width: 110px;
}
.feature-name {
    min-width: 420px;
    color: var(--c-text-muted);
    line-height: 1.45;
}
.feature-table .yes { color: var(--c-success); }
.feature-table .no { color: var(--c-text-subtle); }

@media (max-width: 768px) {
    .feature-name { min-width: 300px; }
    .feature-table td:not(.feature-name),
    .feature-table th:not(:first-child) {
        width: 78px;
    }
}

/* ── Content cards (About, API, Security) ──────── */
.content-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem;
    margin-bottom: 1.25rem;
}
.content-card h3, .content-card h5 {
    font-size: 1.0625rem; font-weight: 600; color: var(--c-text);
    margin: 0 0 .5rem;
}
.content-card p { font-size: .9rem; color: var(--c-text-muted); line-height: 1.65; margin: 0; }

.code-block {
    background: var(--c-navy-900); color: #e2e8f0;
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: .8125rem;
    line-height: 1.7; overflow-x: auto; margin-top: 1rem;
}

/* ── Stat highlights (About page) ──────────────── */
.stat-highlight {
    text-align: center; padding: 1.75rem 1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
}
.stat-number {
    font-size: 2rem; font-weight: 700; color: var(--c-accent);
    line-height: 1;
}
.stat-label {
    font-size: .8125rem; color: var(--c-text-muted);
    margin-top: .35rem;
}

/* ── Value items (About page) ──────────────────── */
.value-item {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: 1rem; border: 1px solid var(--c-border);
    border-radius: var(--radius); font-size: .875rem;
}
.value-item i {
    color: var(--c-accent); font-size: 1rem;
    margin-top: .15rem; flex-shrink: 0;
}

/* ── Status page ───────────────────────────────── */
.status-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: .5rem;
}
.status-service {
    display: flex; align-items: center; gap: .75rem;
    font-size: .9375rem; font-weight: 500; color: var(--c-text);
}
.status-badge {
    font-size: .75rem; font-weight: 600; padding: .25rem .75rem;
    border-radius: 9999px;
}
.status-badge.operational {
    background: #ecfdf5; color: var(--c-success);
}

/* ── Legal pages ───────────────────────────────── */
.legal-content h3 {
    font-size: 1.0625rem; font-weight: 600; color: var(--c-text);
    margin: 2rem 0 .75rem;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
    font-size: .9rem; color: var(--c-text-muted);
    line-height: 1.75;
}

/* ── Coming Soon ───────────────────────────────── */
.coming-soon-page {
    display: flex; align-items: center; justify-content: center;
    min-height: calc(100vh - 64px - 200px);
    padding: 4rem 0;
}
.coming-soon-icon {
    width: 80px; height: 80px; border-radius: var(--radius-lg);
    background: var(--c-accent-soft);
    color: var(--c-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 1.5rem;
}
.coming-soon-page h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700; color: var(--c-text);
    margin: 0 0 .75rem;
}
.coming-soon-sub {
    font-size: 1.0625rem; color: var(--c-text-muted);
    max-width: 480px; margin: 0 auto; line-height: 1.65;
}
