/* Blog styles — Pactly dark theme */

:root {
  --bg:        #0c0c0e;
  --surface:   #18181b;
  --border:    #2c2c30;
  --ink:      #e5e5e3;
  --muted:    #8a8a8e;
  --accent:   #34d87a;
  --accent-dim: #162e20;
  --gold:     #e8b84c;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w:    760px;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.btn-nav {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.2s !important;
}
.btn-nav:hover { opacity: 0.85; }

/* ── Main content ─────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

/* ── Blog List ────────────────────────────────────────────────────── */
.blog-header { margin-bottom: 48px; }

.blog-title {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}

.blog-subtitle {
  color: var(--muted);
  font-size: 17px;
  max-width: 500px;
}

.posts-grid { display: flex; flex-direction: column; gap: 2px; }

.post-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-card-link {
  display: block;
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-card-meta time {
  color: var(--muted);
  font-size: 13px;
}

.post-tag {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-card-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
}

/* ── Article Layout ───────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 60px;
  align-items: start;
}

.article-header { margin-bottom: 40px; }

.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-meta time { color: var(--muted); font-size: 13px; }

.article-tag {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.article-lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 8px;
}

/* ── Article Content ──────────────────────────────────────────────── */
.article-content h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  letter-spacing: -0.3px;
}

.article-content p {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-content p strong {
  color: var(--ink);
  font-weight: 600;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
}

.article-content a:hover { text-decoration: underline; }

.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ── CTA Box ──────────────────────────────────────────────────────── */
.article-cta { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }

.cta-box {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 32px;
}

.cta-box-continue { margin-top: 20px; }

.cta-box h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.cta-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 32px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.sidebar-widget h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.sidebar-widget p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }

.btn-outline {
  display: block;
  text-align: center;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--accent-dim); }

.cta-tertiary { margin-top: 16px; color: var(--muted); font-size: 14px; }
.cta-tertiary a { color: var(--accent); text-decoration: none; }
.cta-tertiary a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand { max-width: 280px; }

.footer-logo {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 360px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 24px 24px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .blog-title { font-size: 32px; }
  .article-title { font-size: 28px; }
  main { padding: 40px 20px; }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar { position: static; }

  .footer-inner { flex-direction: column; }
  .footer-links { max-width: 100%; }
}

/* ── How It Works page ─────────────────────────────────────────────── */
.hiw-hero { margin-bottom: 56px; }

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 56px;
}

.hiw-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
}

.hiw-step-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.hiw-step-body h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.hiw-step-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 700px) {
  .hiw-step { grid-template-columns: 40px 1fr; gap: 16px; padding: 20px; }
  .hiw-step-num { font-size: 22px; }
}

/* ── Pricing page ────────────────────────────────────────────────── */
main.pricing-page { max-width: 1080px; }

.pricing-hero { margin-bottom: 48px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  align-items: stretch;
}

.pricing-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-tier:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pricing-tier-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.pricing-tier-price {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1.1;
}

.pricing-tier-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: -8px;
}

.pricing-tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-tier-features li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
  margin: 0;
}

.pricing-tier-features li::before {
  content: '\2713';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pricing-tier .btn-primary { align-self: flex-start; margin-top: 8px; }

/* ── Pricing FAQ ──────────────────────────────────────────────────── */
.pricing-faq { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }

.pricing-faq h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.pricing-faq-item,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.pricing-faq-item summary,
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.pricing-faq-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item summary::after,
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.pricing-faq-item[open] summary::after,
.faq-item[open] summary::after { content: '\2212'; }

.pricing-faq-item p,
.faq-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-tier { padding: 24px 20px; }
  .pricing-tier-price { font-size: 26px; }
}

/* ── FAQ page ─────────────────────────────────────────────────────── */
main.faq-page { max-width: 880px; }

.faq-hero { margin-bottom: 32px; }

.faq-section { padding-top: 32px; }
.faq-section:first-of-type { padding-top: 0; }

.faq-section h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}