:root {
    --primary: #0D7377;
    --primary-dark: #0A5C5F;
    --primary-light: #E6F7F7;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 44px;
    width: auto;
}

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

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: white; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover { background: var(--primary-light); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero {
    background: linear-gradient(135deg, #0D7377 0%, #0A4F6B 100%);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-sub {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

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

.hero-actions .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--gray-50);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.hero-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

.discover-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  display: inline-block;
  text-align: left;
}

.discover-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 1.1rem;
  color: var(--gray-700);
}

.discover-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: 700;
  line-height: 1.6;
  flex: 0 0 12px;      /* ensures consistent bullet column */
  margin-top: 2px;     /* tiny nudge to align to first line */
}

.auth-container {
    padding: 60px 24px;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.auth-footer a { color: var(--primary); }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FECACA;
}

.alert-success {
    background: #ECFDF5;
    color: var(--success);
    border: 1px solid #A7F3D0;
}

.alert-warning {
    background: #FFFBEB;
    color: var(--warning);
    border: 1px solid #FDE68A;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #B2DFDB;
}

.alert-sm { padding: 8px 12px; font-size: 0.8rem; }

.dashboard-container { padding: 40px 24px; }

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.75rem;
}

.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.8rem; }
.text-success { color: var(--success); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.priority-p0 { border-left: 4px solid var(--danger); }
.priority-p1 { border-left: 4px solid var(--warning); }
.priority-p2 { border-left: 4px solid var(--primary); }
/* --- Priority card accents (add P3) --- */
.priority-p3 { border-left: 4px solid var(--gray-500); }

.section { margin-bottom: 40px; }

.section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.table-container {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover { background: var(--gray-50); }

.badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #ECFDF5; color: var(--success); }
.badge-warning { background: #FFFBEB; color: var(--warning); }
.badge-danger { background: #FEF2F2; color: var(--danger); }
.badge-tier-p0 { background: #FEF2F2; color: var(--danger); }
.badge-tier-p1 { background: #FFFBEB; color: var(--warning); }
.badge-tier-p2 { background: var(--primary-light); color: var(--primary); }
.badge-tier-p3 { background: var(--gray-100); color: var(--gray-700); }
.badge-tier-none { background: var(--gray-100); color: var(--gray-500); }

.risk-bar {
    width: 60px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.risk-fill {
    height: 100%;
    border-radius: 3px;
}

.risk-high { background: var(--danger); }
.risk-medium { background: var(--warning); }
.risk-low { background: var(--success); }

.empty-state {
    background: white;
    border-radius: var(--radius);
    border: 2px dashed var(--gray-200);
    padding: 48px;
    text-align: center;
    color: var(--gray-500);
}

.empty-state .btn { margin-top: 16px; }

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s;
}

.link-card:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.upload-container { padding: 40px 24px; max-width: 700px; margin: 0 auto; }

.upload-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--gray-200);
    margin-top: 24px;
}

.requirements {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.requirements h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.column-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: monospace;
}

.file-drop-zone {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.2s;
    cursor: pointer;
}

.file-drop-zone:hover, .file-drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-icon { font-size: 2.5rem; margin-bottom: 12px; }

.pricing-container { padding: 60px 24px; }

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

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

.pricing-header p { color: var(--gray-500); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--gray-200);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-plan {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.pricing-price { margin-bottom: 24px; }

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.price-period {
    font-size: 1rem;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
}

.pricing-features li.disabled {
    color: var(--gray-300);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✗ ';
    color: var(--gray-300);
}

.billing-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--gray-200);
}

.billing-card h2 {
    margin-bottom: 24px;
}

.billing-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.upgrade-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.upgrade-section p {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.btn-group {
    display: flex;
    gap: 12px;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.integration-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--gray-200);
}

.integration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.integration-header h3 { font-size: 1.1rem; }

.watermark-notice {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 12px;
}

.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 24px 0;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .link-grid { grid-template-columns: 1fr; }
    .integration-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 12px; }
}
