:root {
  --qp-ink: #0f1420;
  --qp-blue: #2563eb;
  --qp-blue-dark: #1d4ed8;
  --qp-accent: #fb7185;
  --qp-accent-dark: #e11d48;
  --qp-bg: #f7f8fb;
  --qp-card: #ffffff;
  --qp-border: #e5e7eb;
  --qp-text: #1f2430;
  --qp-muted: #667085;
  --qp-radius: 14px;
  --qp-shadow: 0 4px 24px rgba(15, 20, 32, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--qp-bg);
  color: var(--qp-text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.qp-container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.qp-nav { background: var(--qp-ink); position: sticky; top: 0; z-index: 50; }
.qp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.qp-logo { font-size: 1.4rem; font-weight: 800; color: #fff; }
.qp-logo span { color: var(--qp-accent); }
.qp-nav-links { display: flex; align-items: center; gap: 20px; }
.qp-nav-links a { color: #cbd5e1; font-weight: 500; font-size: 0.95rem; }
.qp-nav-links a:hover { color: #fff; }

.qp-btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; border: none; cursor: pointer;
}
.qp-btn-primary { background: var(--qp-accent); color: #2a0a10; }
.qp-btn-primary:hover { background: var(--qp-accent-dark); color: #fff; }
.qp-btn-ghost { background: transparent; border: 1px solid #475569; color: #e2e8f0 !important; }
.qp-btn-outline { background: transparent; border: 2px solid var(--qp-blue); color: var(--qp-blue); }
.qp-btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.qp-btn-block { display: block; width: 100%; text-align: center; }

/* Hero */
.qp-hero { background: linear-gradient(135deg, var(--qp-ink) 0%, #1e1b4b 100%); color: #fff; padding: 70px 0 90px; }
.qp-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.qp-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(251,113,133,0.15); color: var(--qp-accent);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.qp-hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 18px; }
.qp-hero h1 .accent { color: var(--qp-accent); }
.qp-hero p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 28px; max-width: 520px; }
.qp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.qp-hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--qp-radius); padding: 24px; }
.qp-hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.qp-hero-card li { display: flex; align-items: center; gap: 10px; color: #e2e8f0; font-size: 0.95rem; }
.qp-hero-card li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--qp-accent); flex-shrink: 0; }

/* Sections */
.qp-section { padding: 70px 0; }
.qp-section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.qp-eyebrow { color: var(--qp-blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.qp-section-head h2 { font-size: 2rem; margin: 10px 0; }
.qp-section-head p { color: var(--qp-muted); }

/* Feature grid */
.qp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qp-card {
  background: var(--qp-card); border: 1px solid var(--qp-border); border-radius: var(--qp-radius);
  padding: 22px; box-shadow: var(--qp-shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.qp-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,20,32,0.1); }
.qp-card .qp-icon { font-size: 1.8rem; margin-bottom: 12px; }
.qp-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.qp-card p { margin: 0; color: var(--qp-muted); font-size: 0.9rem; }
.qp-card .qp-tag { display: inline-block; margin-top: 10px; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.qp-tag-limited { background: #fef3c7; color: #92400e; }

/* Pricing */
.qp-pricing-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 34px; }
.qp-pricing-toggle button {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--qp-border); background: #fff;
  font-weight: 600; cursor: pointer; color: var(--qp-muted);
}
.qp-pricing-toggle button.active { background: var(--qp-ink); color: #fff; border-color: var(--qp-ink); }
.qp-pricing-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.qp-price-card {
  background: var(--qp-ink); color: #fff; border-radius: 20px; padding: 34px; text-align: center;
}
.qp-price-card.qp-price-alt { background: #fff; color: var(--qp-text); border: 1px solid var(--qp-border); }
.qp-price { font-size: 2.6rem; font-weight: 800; margin: 10px 0; }
.qp-price span { font-size: 1rem; font-weight: 500; color: #94a3b8; }
.qp-price-card ul { list-style: none; padding: 0; margin: 20px 0; text-align: left; display: grid; gap: 10px; }
.qp-price-card li::before { content: "✓ "; color: var(--qp-accent); font-weight: 700; }

/* FAQ */
.qp-faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.qp-faq details { background: var(--qp-card); border: 1px solid var(--qp-border); border-radius: 10px; padding: 16px 20px; }
.qp-faq summary { cursor: pointer; font-weight: 600; }

/* Footer */
.qp-footer { background: var(--qp-ink); color: #94a3b8; padding: 50px 0 20px; }
.qp-footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.qp-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 10px; }
.qp-footer a { display: block; color: #94a3b8; padding: 4px 0; font-size: 0.9rem; }
.qp-footer p { font-size: 0.85rem; }
.qp-copyright { text-align: center; border-top: 1px solid #1f2937; padding-top: 18px; font-size: 0.8rem; }

/* Auth forms */
.qp-auth-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 60px 16px; }
.qp-auth-card { width: 100%; max-width: 420px; background: var(--qp-card); border: 1px solid var(--qp-border); border-radius: var(--qp-radius); box-shadow: var(--qp-shadow); padding: 34px; }
.qp-auth-card h1 { font-size: 1.5rem; margin-top: 0; }
.qp-field { margin-bottom: 16px; }
.qp-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.qp-field input, .qp-field select, .qp-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--qp-border); border-radius: 8px; font-size: 0.95rem;
}
.qp-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.qp-success { background: #f0fdf4; color: #15803d; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.qp-auth-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--qp-muted); }
.qp-auth-switch a { color: var(--qp-blue); font-weight: 600; }

/* Dashboard / module pages */
.qp-module-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 30px 0 20px; }
.qp-module-head h1 { margin: 0; font-size: 1.6rem; }
.qp-panel { background: var(--qp-card); border: 1px solid var(--qp-border); border-radius: var(--qp-radius); box-shadow: var(--qp-shadow); padding: 24px; margin-bottom: 24px; }
.qp-pill { background: #eef2ff; color: var(--qp-blue); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.qp-pill-warn { background: #fef3c7; color: #92400e; }

/* Composer requirement panel + scheduling */
.qp-req-panel { margin: 14px 0; }
.qp-req-empty { color: var(--qp-muted); font-size: 0.85rem; font-style: italic; }
.qp-req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; background: #f8fafc; border: 1px solid var(--qp-border); border-radius: 10px; padding: 12px 16px; }
.qp-req-list li { font-size: 0.85rem; color: var(--qp-text); }
.qp-char-counter { font-size: 0.8rem; color: var(--qp-muted); margin-top: 6px; text-align: right; }
.qp-schedule-row { display: flex; gap: 14px; margin: 10px 0 16px; }

/* Platform checkboxes */
.qp-platform-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.qp-platform-check {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--qp-border); border-radius: 10px;
  padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.qp-platform-check input { width: 16px; height: 16px; }
.qp-platform-check.qp-disabled { opacity: 0.5; cursor: not-allowed; }

/* Connect cards */
.qp-connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qp-connect-card { background: var(--qp-card); border: 1px solid var(--qp-border); border-radius: var(--qp-radius); padding: 24px; text-align: center; }
.qp-connect-card .qp-icon { font-size: 2.2rem; margin-bottom: 10px; }
.qp-connect-card h3 { margin: 0 0 6px; }
.qp-connect-card p { color: var(--qp-muted); font-size: 0.85rem; margin: 0 0 16px; }
.qp-connected-badge { display: inline-block; background: #f0fdf4; color: #15803d; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }

/* Tables */
.qp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.qp-table th, .qp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--qp-border); }
.qp-table th { color: var(--qp-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.qp-empty { text-align: center; color: var(--qp-muted); padding: 30px; }
.qp-status-published { background: #f0fdf4; color: #15803d; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.qp-status-failed { background: #fef2f2; color: #b91c1c; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.qp-status-pending { background: #f1f5f9; color: var(--qp-muted); padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.qp-stat-na { color: var(--qp-muted); font-style: italic; font-size: 0.85rem; }

/* Stat cards */
.qp-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.qp-stat { background: var(--qp-card); border: 1px solid var(--qp-border); border-radius: var(--qp-radius); padding: 18px; }
.qp-stat .qp-stat-label { color: var(--qp-muted); font-size: 0.82rem; margin-bottom: 6px; }
.qp-stat .qp-stat-value { font-size: 1.6rem; font-weight: 800; }

@media (max-width: 900px) {
  .qp-hero-inner { grid-template-columns: 1fr; }
  .qp-grid { grid-template-columns: repeat(2, 1fr); }
  .qp-connect-grid { grid-template-columns: 1fr; }
  .qp-footer-inner { grid-template-columns: 1fr; }
  .qp-pricing-cards { grid-template-columns: 1fr; }
  .qp-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .qp-grid { grid-template-columns: 1fr; }
  .qp-hero h1 { font-size: 2rem; }
  .qp-nav-links { gap: 10px; }
  .qp-nav-links a, .qp-btn { font-size: 0.85rem; padding: 8px 14px; }
  .qp-stats-row { grid-template-columns: 1fr; }
}
