/* PhilCollective — Dark theme, purple/blue accents */

:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #1c2333;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-blue: #3b82f6;
  --border: #30363d;
  --green: #3fb950;
  --red: #f85149;
  --radius: 8px;
  --max-w: 960px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ── Header ────────────────────────────────── */

header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
  flex-wrap: wrap;
}

.site-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}
.site-logo:hover { color: var(--accent-light); text-decoration: none; }

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 640px) { .tagline { display: inline; } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  z-index: 200;
}
.dropdown-menu li a { display: block; padding: 0.4rem 1rem; font-size: 0.85rem; }
.dropdown-menu li a:hover { background: var(--bg-surface); }
.dropdown:hover .dropdown-menu { display: block; }

@media (max-width: 639px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; border: none; padding-left: 1rem; }
  .dropdown:hover .dropdown-menu { display: block; }
}

/* ── Main ──────────────────────────────────── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.25; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }

.meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }

/* ── TLDR / Quick Answer ───────────────────── */

.tldr {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0 1.5rem;
}
.tldr h2 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--accent-light); }
.tldr p { margin: 0; }

/* ── Tables ────────────────────────────────── */

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead { background: var(--bg-elevated); }
th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
tr:hover { background: rgba(124, 58, 237, 0.04); }

td.check { color: var(--green); }
td.cross { color: var(--red); }

/* ── Pricing Cards ─────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-name { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.price { font-size: 2rem; font-weight: 700; color: var(--text); }
.price-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.price-note { font-size: 0.75rem; color: var(--accent-light); margin-bottom: 0.75rem; }

.pricing-card ul {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  text-align: left;
  font-size: 0.85rem;
}
.pricing-card li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border: none; }

/* ── CTA Buttons ───────────────────────────── */

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  transition: background 0.15s;
}
.cta:hover { background: var(--accent-light); color: #fff; text-decoration: none; }

.cta-inline {
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}
.cta-inline:hover { background: var(--accent-light); color: #fff; text-decoration: none; }

/* ── Verdict / Cards ───────────────────────── */

.verdict {
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.verdict h2 { margin-top: 0; color: var(--accent-light); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color 0.15s;
  color: var(--text);
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card strong { font-size: 0.95rem; }
.card span { font-size: 0.8rem; color: var(--text-muted); }

/* ── Hero ──────────────────────────────────── */

.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.hero h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0.75rem auto 0; }

/* ── FAQ ───────────────────────────────────── */

.faq-list { margin: 1rem 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item:last-child { border: none; }
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* ── Roundup entries ───────────────────────── */

.roundup-entry {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.roundup-entry:last-child { border: none; }

/* ── Author ────────────────────────────────── */

.author-title {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ── Footer ────────────────────────────────── */

footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-links h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent-light); }

.ftc-disclosure {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ftc-disclosure p { margin: 0; }

.copyright { color: var(--text-muted); font-size: 0.8rem; }

/* ── Guide body ────────────────────────────── */

.guide-body h2 { color: var(--accent-light); }
.guide-body h3 { color: var(--text); }
