/* CanaryQ Marketing Site — Global Styles */
:root {
  --primary: #0B1F3A;
  --primary-light: #132d4f;
  --secondary: #14B8A6;
  --secondary-dark: #0d9488;
  --accent: #FBBF24;
  --accent-dark: #d97706;
  --navy: #0B1F3A;
  --navy-light: #132d4f;
  --slate: #334155;
  --slate-muted: #64748b;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --border: #e2e8f0;
  --green: #16A34A;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { color: var(--slate-muted); font-size: 1.125rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  p { font-size: 1rem; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--secondary-dark); text-decoration: none; }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-light); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #E2E8F0; padding: 1rem 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--slate-muted); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }
.nav-cta { display: flex; gap: 0.75rem; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 4rem; text-align: center;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}
.hero h1 { margin-bottom: 1.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid #E2E8F0;
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.hero-stat .label { font-size: 0.875rem; color: var(--slate); }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 600px; margin: 1rem auto 0; }

/* ── Feature Grid ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--white); border: 1px solid #E2E8F0;
  border-radius: var(--radius); padding: 2rem;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 0.75rem;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9375rem; }

/* ── How It Works ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 2rem; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; }

/* ── Comparison Table ───────────────────────────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.comparison-table th, .comparison-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #E2E8F0; }
.comparison-table th { background: var(--light); font-weight: 600; color: var(--primary); }
.comparison-table td:last-child { color: var(--green); font-weight: 500; }
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid #E2E8F0; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card {
  background: var(--white); border: 2px solid #E2E8F0;
  border-radius: var(--radius); padding: 2rem; position: relative;
}
.pricing-card.featured { border-color: var(--secondary); }
.pricing-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--secondary); color: var(--white); padding: 0.25rem 1rem;
  border-radius: 1rem; font-size: 0.75rem; font-weight: 600;
}
.pricing-card h3 { margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 1rem 0; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--slate); }
.pricing-features { list-style: none; margin: 1.5rem 0; }
.pricing-features li { padding: 0.5rem 0; font-size: 0.9375rem; color: var(--slate); display: flex; align-items: flex-start; gap: 0.5rem; }
.pricing-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
  background: var(--white); border: 1px solid #E2E8F0;
  border-radius: var(--radius); padding: 2rem;
}
.testimonial-card blockquote { font-style: italic; font-size: 1rem; color: var(--primary); margin-bottom: 1rem; line-height: 1.6; }
.testimonial-author { font-size: 0.875rem; color: var(--slate); font-weight: 500; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E2E8F0; padding: 1.5rem 0; }
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 1rem; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--slate); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 0.75rem; font-size: 0.9375rem; }

/* ── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  padding: 5rem 0; text-align: center;
  background: var(--primary); color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: #94A3B8; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { padding: 3rem 0; border-top: 1px solid #E2E8F0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { font-size: 0.875rem; color: var(--slate); margin-top: 0.5rem; max-width: 280px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--slate); padding: 0.25rem 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #E2E8F0; font-size: 0.8125rem; color: var(--slate); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Help Centre Content Styles ─────────────────────────────────────────── */

.section-subtitle {
  color: var(--slate-muted);
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.help-section { margin-bottom: 3rem; }
.help-section h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }

.content h2 {
  font-size: 1.25rem; font-weight: 600;
  margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content p { margin-bottom: 0.75rem; }
.content ul, .content ol { margin-bottom: 0.75rem; padding-left: 1.5rem; }
.content li { margin-bottom: 0.35rem; }
.content a { color: var(--secondary); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content code {
  background: var(--light); border: 1px solid var(--border);
  border-radius: 3px; padding: 0.1rem 0.35rem;
  font-size: 0.85em; font-family: 'SF Mono', 'Fira Code', monospace;
}
.content strong { font-weight: 600; }

.matrix { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin-bottom: 1.5rem; }
.matrix th, .matrix td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.matrix th { background: var(--light); font-weight: 600; white-space: nowrap; }
.matrix td:not(:first-child) { text-align: center; }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-admin { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-qm { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-qe { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-approver { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-readonly { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.callout { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.callout p { margin-bottom: 0; color: #92400e; font-size: 0.875rem; }

.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--slate-muted); text-decoration: none; font-size: 0.875rem; }
.back-link:hover { color: var(--primary); text-decoration: none; }
