/* PitchPilot Website Styles — machinedogma.com/pitchpilot */

:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-bg: #fef3e2;
  --orange-border: #fed7aa;
  --black: #0f0f0f;
  --dark: #1a1a1a;
  --text: #374151;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #f0f0f0;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --purple: #7c3aed;
}

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

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 440px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.nav-name { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { background: none; border: none; color: var(--text-light); font-size: 14px; font-weight: 500; cursor: pointer; }
.nav-link:hover { color: var(--dark); }
.nav-link-strong { color: var(--dark); font-weight: 600; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 10px; padding: 12px 24px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn-primary { background: var(--dark); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-outline { background: #fff; border: 1px solid #d1d5db; color: var(--dark); }
.btn-danger { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── FORMS ────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1px solid #d1d5db;
  border-radius: 10px; font-size: 14px; outline: none;
  color: var(--dark); background: #fff; font-family: inherit;
}
.form-input:focus { border-color: var(--orange); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── CARDS ────────────────────────────────────────── */
.card {
  background: #fff; border-radius: 16px; border: 1px solid var(--border);
  padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.card-alt { background: var(--bg-alt); }
.card-bordered { border: 2px solid var(--orange); box-shadow: 0 8px 30px rgba(249,115,22,0.08); }

/* ── BADGES ───────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-orange { background: var(--orange-bg); color: #c2410c; }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-purple { background: #7c3aed10; color: var(--purple); border: 1px solid #7c3aed30; }
.badge-pill { border-radius: 100px; }

/* ── TABLES ───────────────────────────────────────── */
.table-wrap { border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: var(--bg-alt); }
th {
  text-align: left; padding: 12px 16px; font-weight: 600;
  color: var(--text-light); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
td { padding: 12px 16px; color: var(--text); }
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: var(--bg-alt); }

/* ── HERO ─────────────────────────────────────────── */
.hero { padding: 80px 24px 60px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-bg); border: 1px solid var(--orange-border);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 28px;
  font-size: 13px; font-weight: 600; color: #c2410c;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1;
  letter-spacing: -2px; margin-bottom: 20px; color: var(--black);
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero .gradient-text {
  background: linear-gradient(135deg, var(--orange), #c2410c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: var(--text-light); line-height: 1.6; max-width: 520px; margin: 0 auto 36px; }
.hero-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-sub { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ── STATS BAR ────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0; background: var(--bg-alt);
}
.stats-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; padding: 0 24px; }
.stat { text-align: center; }
.stat-value { font-size: 18px; font-weight: 700; color: var(--black); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── SECTIONS ─────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--black); color: #fff; }
.section-title { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; text-align: center; }
.section-sub { font-size: 16px; color: var(--text-light); text-align: center; margin-bottom: 56px; }

/* ── GRIDS ────────────────────────────────────────── */
.grid-3 { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.grid-3 > * { flex: 1 1 280px; max-width: 320px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 32px; }

/* ── STEP CARDS ───────────────────────────────────── */
.step-card { background: var(--bg-alt); border-radius: 14px; padding: 32px; border: 1px solid var(--border); }
.step-num {
  width: 40px; height: 40px; border-radius: 10px; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── FEATURE CARDS ────────────────────────────────── */
.feature-card { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid var(--border); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ── PRICING ──────────────────────────────────────── */
.pricing-card { position: relative; max-width: 420px; margin: 0 auto; }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 100px;
}
.pricing-amount { font-size: 48px; font-weight: 800; letter-spacing: -2px; }
.pricing-period { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.pricing-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pricing-features { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.pricing-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }

/* ── FAQ ──────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; padding: 20px 0; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
}
.faq-question span { font-size: 15px; font-weight: 600; color: var(--black); padding-right: 16px; }
.faq-toggle {
  font-size: 20px; color: var(--text-muted); flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-toggle.open { transform: rotate(45deg); }
.faq-answer { padding-bottom: 20px; font-size: 14px; color: var(--text-light); line-height: 1.7; display: none; }
.faq-answer.open { display: block; }

/* ── FOOTER ───────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .nav-logo { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }

/* ── DASHBOARD ────────────────────────────────────── */
.dash-header { margin-bottom: 32px; }
.dash-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.dash-header p { color: var(--text-light); font-size: 15px; }

.dash-tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.dash-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.dash-tab.active { color: var(--black); border-bottom-color: var(--orange); }

.stat-card { background: var(--bg-alt); border-radius: 12px; padding: 24px; border: 1px solid var(--border); }
.stat-card-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.stat-card-value { font-size: 24px; font-weight: 800; }

.trial-banner {
  background: var(--orange-bg); border: 1px solid var(--orange-border);
  border-radius: 12px; padding: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.trial-banner-title { font-size: 15px; font-weight: 700; color: #c2410c; }
.trial-banner-sub { font-size: 13px; color: var(--orange-dark); margin-top: 2px; }

/* ── DOWNLOAD BOX ─────────────────────────────────── */
.download-box { text-align: center; background: var(--bg-alt); border-radius: 16px; border: 1px solid var(--border); padding: 40px; }
.download-icon {
  width: 72px; height: 72px; border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(249,115,22,0.2);
  color: #fff; font-weight: 800; font-size: 32px;
}
.install-steps { text-align: left; max-width: 500px; margin: 32px auto 0; }
.install-step { display: flex; gap: 12px; margin-bottom: 14px; }
.install-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.install-step p { font-size: 14px; color: var(--text); line-height: 1.5; }

/* ── DANGER ZONE ──────────────────────────────────── */
.danger-zone { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.danger-zone h3 { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.danger-zone p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }

/* ── ADMIN ────────────────────────────────────────── */
.admin-header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.filter-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-input { flex: 1 1 240px; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; outline: none; color: var(--dark); }
.filter-buttons { display: flex; gap: 6px; }
.filter-btn {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; background: var(--bg-alt); color: var(--text-light);
}
.filter-btn.active { background: var(--dark); color: #fff; }

.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
}

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
}
.modal {
  background: #fff; border-radius: 16px; padding: 32px;
  width: 480px; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal p { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ── UTILITIES ────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  .stats-grid { gap: 24px; }
  .nav-links .nav-link { display: none; }
  .pricing-amount { font-size: 36px; }
}
