/*
Theme Name: Morphpost
Theme URI: https://morphpost.com
Author: Morphpost
Author URI: https://morphpost.com
Description: Official WordPress theme for Morphpost AI Content Repurposing SaaS. Clean, fast, fully responsive marketing site with Pricing, Features, FAQ, Blog, and legal pages.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
License: Proprietary
Text Domain: morphpost
*/

/* ═══════════════════════
   TOKENS
═══════════════════════ */
:root {
  --brand: #6c47ff;
  --brand-dark: #4f2fe0;
  --brand-light: #ede9ff;
  --accent: #ff6b35;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --border: #e2e4ee;
  --text: #1a1b2e;
  --text-muted: #6b7099;
  --text-light: #9499bd;
  --success: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(108,71,255,0.09);
  --shadow-lg: 0 8px 40px rgba(108,71,255,0.13);
  --max-w: 1100px;
  --header-h: 68px;
}

/* ═══════════════════════
   RESET & BASE
═══════════════════════ */
*, *::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; background: #fff; color: var(--text); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; line-height: 1.25; color: var(--text); }

/* ═══════════════════════
   LAYOUT
═══════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-bg { background: var(--bg); }
.section-dark { background: #1a1b2e; color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* ═══════════════════════
   HEADER / NAV
═══════════════════════ */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; height: var(--header-h);
  gap: 32px;
}
.site-logo { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: var(--brand); text-decoration: none; flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  padding: 8px 14px; color: var(--text-muted); font-size: 14px;
  font-weight: 600; border-radius: 8px; transition: all .15s; text-decoration: none;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-light); }
.site-nav a.current-menu-item { color: var(--brand); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid transparent; font-family: inherit; transition: all .15s; text-decoration: none; line-height: 1; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { opacity: 0.9; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; font-size: 22px; color: var(--text); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: var(--header-h);
  background: #fff; z-index: 999; padding: 20px 24px;
  flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; font-size: 16px; font-weight: 600; color: var(--text); border-radius: 8px; display: block; }
.mobile-nav a:hover { background: var(--brand-light); color: var(--brand); }
.mobile-nav .mobile-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ═══════════════════════
   HERO
═══════════════════════ */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #1a1b2e 0%, #2d1f6e 60%, #1a1b2e 100%);
  text-align: center; color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(108,71,255,0.3) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,71,255,0.3); border: 1px solid rgba(108,71,255,0.5);
  color: #c4b5fd; padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 5vw, 68px); font-weight: 800; color: #fff; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 span { color: #a78bfa; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-social-proof { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hero-social-proof span { font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }

/* ═══════════════════════
   PLATFORM LOGOS
═══════════════════════ */
.platforms-bar { padding: 32px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.platforms-bar .label { text-align: center; font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.platform-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.platform-icon-pill { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.platform-icon-pill span { font-size: 18px; }

/* ═══════════════════════
   SECTION HEADER
═══════════════════════ */
.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); background: var(--brand-light); padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ═══════════════════════
   FEATURES
═══════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════
   PRICING
═══════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.pricing-card { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 32px; position: relative; transition: all .2s; }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108,71,255,0.1); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.plan-price { font-size: 48px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; color: var(--text); line-height: 1; margin-bottom: 4px; }
.plan-price .per { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; min-height: 40px; }
.plan-features { margin-bottom: 28px; }
.plan-features li { font-size: 14px; padding: 6px 0; display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.plan-features li .check { color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-features li.muted { color: var(--text-muted); }
.plan-features li.muted .check { color: var(--text-light); }
.pricing-card .btn { width: 100%; }

/* ═══════════════════════
   FAQ
═══════════════════════ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-question .faq-icon { font-size: 20px; color: var(--brand); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { font-size: 15px; color: var(--text-muted); line-height: 1.7; display: none; padding-bottom: 20px; }
.faq-item.open .faq-answer { display: block; }

/* ═══════════════════════
   TESTIMONIALS
═══════════════════════ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════
   CTA BANNER
═══════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 20px; padding: 60px 48px; text-align: center; color: #fff; margin: 0 24px;
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 12px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-banner .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-banner .btn:hover { background: rgba(255,255,255,0.9); }

/* ═══════════════════════
   FOOTER
═══════════════════════ */
#site-footer { background: #1a1b2e; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .logo span { color: #a78bfa; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════
   INNER PAGES
═══════════════════════ */
.page-hero { padding: 64px 0 48px; background: var(--bg); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 17px; color: var(--text-muted); }
.page-content { padding: 56px 0; max-width: 780px; }
.page-content h2 { font-size: 26px; margin: 36px 0 12px; }
.page-content h3 { font-size: 20px; margin: 28px 0 10px; }
.page-content p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 20px; }
.page-content ul li { font-size: 15px; color: var(--text-muted); margin-bottom: 6px; list-style: disc; }

/* ═══════════════════════
   BLOG
═══════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-thumb { width: 100%; height: 180px; object-fit: cover; background: var(--bg); }
.blog-card-body { padding: 20px; }
.blog-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.blog-card-body h3 a { color: var(--text); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--brand); }
.blog-card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.blog-read-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--brand); }

/* ═══════════════════════
   CONTACT FORM
═══════════════════════ */
.contact-form { max-width: 560px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  color: var(--text); transition: border-color .2s; outline: none; background: var(--surface);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); }
.contact-form textarea { resize: vertical; min-height: 140px; }

/* ═══════════════════════
   MISC UTILITIES
═══════════════════════ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.highlight { color: var(--brand); }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Cookie banner */
#cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 520px;
  background: #1a1b2e; color: #fff; border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3); z-index: 9999; display: none;
}
#cookie-banner p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
#cookie-banner p a { color: #a78bfa; }
.cookie-btns { display: flex; gap: 8px; }

/* ═══════════════════════
   RESPONSIVE
═══════════════════════ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 56px; }
  .site-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 40px 24px; margin: 0; border-radius: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
</style>
