/* EU PID Check (eupidcheck.com) — Clean B2B Compliance & Workbench Stylesheet */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #475569;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --accent: #0284c7;
    --ok: #15803d;
    --ok-bg: #dcfce7;
    --warn: #b45309;
    --warn-bg: #fef3c7;
    --err: #b91c1c;
    --err-bg: #fee2e2;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Reg Alert Banner */
.reg-alert-bar {
    background: #0f172a;
    color: #f8fafc;
    font-size: 13px;
    padding: 8px 16px;
    text-align: center;
}
.reg-alert-bar strong {
    color: #38bdf8;
}
.reg-alert-bar a {
    color: #7dd3fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.reg-alert-bar a:hover {
    color: #e0f2fe;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    height: auto;
    gap: 12px;
    padding: 8px 0;
    flex-wrap: wrap;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
}
.brand-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: 14px;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
}
.main-nav a {
    color: var(--text-muted);
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}
#license-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (max-width: 980px) {
    .main-nav {
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
    }
}

/* Hero Section */
.hero-section {
    padding: 36px 0 24px;
    text-align: center;
}
.hero-pill {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    font-size: 12.5px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.hero-section h1 {
    font-size: 32px;
    line-height: 1.22;
    margin: 0 auto 12px;
    max-width: 880px;
    letter-spacing: -0.02em;
}
.hero-sub {
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 20px;
    font-size: 16px;
}
.trust-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.trust-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-muted);
}
.trust-chip strong {
    color: var(--text);
}

/* Workbench Card */
.workbench-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 32px;
}

.workbench-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}
.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 13px;
}
.options-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 500;
}
.options-row input[type="text"],
.options-row select {
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--primary);
    background: #eff6ff;
}
.dropzone-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.dropzone-desc {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 14px;
}
.sample-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
}
.btn-outline {
    background: #fff;
    border-color: #cbd5e1;
    color: var(--text);
}
.btn-outline:hover {
    background: var(--surface-alt);
    text-decoration: none;
}
.btn-success {
    background: var(--ok);
    color: #fff;
}
.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.kpi-box {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
}
.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.kpi-val {
    font-size: 22px;
    font-weight: 800;
}
.kpi-val.text-ok { color: var(--ok); }
.kpi-val.text-warn { color: var(--warn); }

/* Quota Banner */
.quota-banner {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}
.quota-free {
    background: var(--ok-bg);
    border: 1px solid #86efac;
    color: #14532d;
}
.quota-upsell {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
}
.quota-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Export Bar */
.export-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    align-items: center;
}
.export-bar-label {
    font-weight: 700;
    font-size: 13.5px;
    margin-right: 6px;
}

/* Audit Table */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.audit-table th {
    background: var(--surface-alt);
    padding: 10px 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.audit-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.cell-title {
    font-weight: 600;
    color: var(--text);
}
.cell-sub {
    font-size: 11.5px;
    color: var(--text-muted);
}
.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 4px;
}
.status-ok {
    background: var(--ok-bg);
    color: var(--ok);
}
.status-fixed {
    background: #dbeafe;
    color: #1e40af;
}
.status-bad {
    background: var(--err-bg);
    color: var(--err);
}
.issue-line {
    color: var(--warn);
    font-size: 12px;
}
.fix-line {
    color: var(--ok);
    font-size: 12px;
}
.tol-line {
    color: #0369a1;
    font-size: 11.5px;
    font-weight: 600;
}
.code-y081 {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}
.mini-tag {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Calculator & Pricing Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}
.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}
.section-card h2 {
    margin-top: 0;
    font-size: 20px;
}
.form-row {
    margin-bottom: 12px;
}
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.form-row input,
.form-row select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}
.calc-summary {
    background: var(--surface-alt);
    border-radius: 8px;
    padding: 14px;
    margin-top: 14px;
}
.calc-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 14px;
}
.calc-line.calc-total {
    border-bottom: none;
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 10px;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    margin: 24px 0 36px;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
}
.price-badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.price-amount {
    font-size: 34px;
    font-weight: 800;
    margin: 6px 0;
}
.price-amount span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.feature-list {
    padding-left: 18px;
    margin: 14px 0 20px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.feature-list li {
    margin-bottom: 7px;
}

/* Modals */
.eupid-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.eupid-modal-backdrop[hidden] {
    display: none !important;
}
.eupid-modal {
    background: var(--surface);
    border-radius: 12px;
    max-width: 540px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.modal-header h3 {
    margin: 0;
    font-size: 19px;
}
.modal-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.msg-ok { background: var(--ok-bg); color: var(--ok); }
.msg-err { background: var(--err-bg); color: var(--err); }

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    margin-top: 48px;
    font-size: 13.5px;
}
.site-footer a {
    color: #cbd5e1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.footer-col h4 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 6px;
}
.badge-free {
    background: var(--ok-bg);
    color: var(--ok);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-pro {
    background: #dbeafe;
    color: var(--primary);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
