/* DefensibleHR.ai — Global Styles */

:root {
  --brand: #1e293b;
  --brand-dark: #0f172a;
  --brand-light: #f1f5f9;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --critical: #dc2626;
  --critical-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #2563eb;
  --info-bg: #eff6ff;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --radius: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"] {
  --brand: #e2e8f0;
  --brand-dark: #0f172a;
  --brand-light: #1e293b;
  --accent: #3b82f6;
  --accent-light: rgba(59, 130, 246, 0.15);
  --critical: #f87171;
  --critical-bg: rgba(248, 113, 113, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.12);
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --bg: #0f172a;
  --bg-subtle: #0b1120;
}

[data-theme="dark"] .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #2563eb; border-color: #2563eb; }
[data-theme="dark"] .btn { border-color: #334155; background: #1e293b; color: var(--text); }
[data-theme="dark"] .btn:hover { background: #334155; }
[data-theme="dark"] .btn-outline { background: transparent; border-color: #334155; }
[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,0.05); }

[data-theme="dark"] .compare-without { background: rgba(248, 113, 113, 0.06); border-color: #334155; }
[data-theme="dark"] .compare-with { background: rgba(59, 130, 246, 0.08); border-color: var(--accent); }
[data-theme="dark"] .compare-card li { border-bottom-color: #1e293b; }

[data-theme="dark"] .price-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .price-card.featured { border-color: var(--accent); }

[data-theme="dark"] .role-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

[data-theme="dark"] .issue-severity.warning { color: var(--warning); }
[data-theme="dark"] .issue-severity.info { color: var(--info); }

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: #1e293b; color: var(--text); border-color: #334155;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #475569; }
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus { border-color: var(--accent); }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top banner */
.top-banner {
  background: var(--brand-dark); color: #fff; text-align: center;
  padding: 10px 24px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.top-banner-rotate { position: relative; }
.top-banner-msg { display: none; }
.top-banner-msg.active { display: inline; }
.top-banner-msg { animation: bannerFade 0.5s ease-in-out; }
@keyframes bannerFade { from { opacity: 0; } to { opacity: 1; } }
.top-banner a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.top-banner a:hover { opacity: 0.85; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.nav-icon { color: var(--accent); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius); font-size: 14px;
  font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); transition: all 0.15s;
}
.btn:hover { background: var(--bg-subtle); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* Hero */
.hero { max-width: 680px; margin: 0 auto; padding: 80px 24px 48px; text-align: center; }
.hero h1 { font-size: 32px; font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.hero-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; gap: 12px; }
.hero-trust { font-size: 12.5px; color: var(--text-muted); margin-top: 18px; }
.compare-link { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 28px; }
.compare-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.compare-link a:hover { text-decoration: underline; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--accent-light); color: var(--accent);
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-subtle); max-width: 1080px; margin: 0 auto;
}
.stat { padding: 24px; text-align: center; }
.stat:not(:last-child) { border-right: 1px solid var(--border); }
.stat-value { font-size: 24px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
.section h2 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 32px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 24px 16px; }
.step-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--accent);
  margin: 0 auto 16px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Checks */
.checks-section { background: var(--bg-subtle); max-width: 100%; padding-left: calc((100% - 1080px) / 2 + 24px); padding-right: calc((100% - 1080px) / 2 + 24px); }
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.check-card { background: var(--bg); padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.check-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.check-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.check-icon.critical { background: var(--critical-bg); color: var(--critical); }
.check-icon.warning { background: var(--warning-bg); color: var(--warning); }
.check-icon.info { background: var(--info-bg); color: var(--info); }
.check-icon.success { background: var(--success-bg); color: var(--success); }

/* Document types */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc-card {
  background: var(--bg); padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: border-color 0.15s;
}
.doc-card:hover { border-color: var(--accent); }
.doc-icon { color: var(--accent); margin-bottom: 12px; }
.doc-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.doc-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.doc-risk {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--critical-bg); color: var(--critical);
}
.doc-risk-med {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--warning-bg); color: var(--warning);
}

/* Who uses it */
.roles-section { background: var(--brand-dark); max-width: 100%; padding-left: calc((100% - 1080px) / 2 + 24px); padding-right: calc((100% - 1080px) / 2 + 24px); }
.roles-section h2, .roles-section .section-sub { color: #fff; }
.roles-section .section-sub { color: var(--text-muted); }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.role-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 24px;
}
.role-card h3 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.role-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Checks CTA */
.checks-cta { text-align: center; margin-top: 24px; }

/* Cost comparison */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.compare-card { border-radius: var(--radius-lg); padding: 28px 24px; }
.compare-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.compare-card ul { list-style: none; }
.compare-card li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.compare-card li:last-child { border-bottom: none; }
.compare-label { color: var(--text-secondary); }
.compare-value { font-weight: 600; text-align: right; }
.compare-without { background: var(--bg-subtle); border: 1px solid var(--border); }
.compare-without h3 { color: var(--critical); }
.compare-without .compare-value { color: var(--critical); }
.compare-with { background: var(--accent-light); border: 1px solid var(--accent); }
.compare-with h3 { color: var(--accent); }
.compare-with .compare-value { color: var(--accent); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--accent); }
.price-badge {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-light); color: var(--accent);
  font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: var(--radius);
}
.price-card.has-badge { padding-top: 56px; }
.price-name { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.price-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.price-features { list-style: none; text-align: left; margin-bottom: 24px; }
.price-features li { font-size: 14px; padding: 6px 0; color: var(--text-secondary); }
.price-features li::before { content: "\2713 "; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* CTA */
.cta-section { text-align: center; padding-bottom: 80px; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 24px; }
.disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* Product shot (landing page) */
.shot-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; max-width: 1080px; margin: 0 auto; }
.shot-copy h2 { text-align: left; margin-bottom: 18px; }
.shot-points { list-style: none; margin: 0 0 24px; padding: 0; }
.shot-points li { font-size: 15px; line-height: 1.6; color: var(--text-secondary); padding: 7px 0; }
.shot-points li strong { color: var(--text); }
.shot-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0f172a; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #1e293b; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-caption { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; text-align: center; }
@media (max-width: 860px) {
  .shot-grid { grid-template-columns: 1fr; gap: 28px; }
  .shot-copy h2 { text-align: center; }
  .shot-copy { text-align: center; }
  .shot-points li { text-align: left; }
}

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-subtle); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 480px) {
  .top-banner { flex-direction: column; gap: 6px; padding: 8px 16px; font-size: 12px; }
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 22px; }
  .hero-sub { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
  .badge { font-size: 11px; padding: 5px 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 12px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }
  .stat:not(:last-child) { border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .section { padding: 40px 16px; }
  .section h2 { font-size: 20px; }
  .section-sub { font-size: 13px; }
  .steps, .checks-grid, .pricing-grid, .compare-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .roles-section { padding-left: 16px; padding-right: 16px; }
  .checks-section { padding-left: 16px; padding-right: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { padding: 10px 16px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; font-size: 11px; }
  .price-amount { font-size: 28px; }
  .compare-card li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .compare-value { text-align: left; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .top-banner { font-size: 12px; gap: 8px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:not(:last-child) { border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .steps, .checks-grid, .pricing-grid, .compare-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: 1fr; }
  .roles-section { padding-left: 24px; padding-right: 24px; }
  .checks-section { padding-left: 24px; padding-right: 24px; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .checks-grid { grid-template-columns: repeat(2, 1fr); }
}
