/* PalmGuru marketing site — shared styles */

:root {
  --deep-purple: #1a0b3d;
  --royal-purple: #6b3faf;
  --metallic-gold: #d4af37;
  --champagne-gold: #f4d88a;
  --midnight-purple: #0f0625;
  --ivory: #f7f0d0;

  --bg: var(--midnight-purple);
  --bg-elevated: #170b35;
  --bg-card: #1d0f42;
  --text: var(--ivory);
  --text-muted: #c9bfe0;
  --border: rgba(212, 175, 55, 0.25);

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1180px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--champagne-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: #ffffff;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--metallic-gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
}

.lead.center { margin: 0 auto 2.5em; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--metallic-gold), var(--champagne-gold));
  color: var(--deep-purple);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 240, 208, 0.35);
}

.btn-outline:hover { border-color: var(--metallic-gold); color: var(--metallic-gold); }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 6, 37, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active { color: var(--metallic-gold); text-decoration: none; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--midnight-purple);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 80% 0%, rgba(107, 63, 175, 0.35), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.12), transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border);
  color: var(--champagne-gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--metallic-gold);
}

.hero-stats div span { font-size: 0.85rem; color: var(--text-muted); }

.hero-art {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}

.hero-art img { margin: 0 auto; width: 220px; }

/* Cards */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--royal-purple), var(--deep-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Steps (How It Works) */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--metallic-gold), var(--champagne-gold));
  color: var(--deep-purple);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--metallic-gold);
  background: linear-gradient(160deg, #251250, var(--bg-card));
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--metallic-gold);
  color: var(--deep-purple);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: #fff;
  margin: 14px 0;
}

.price span { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-list li {
  padding: 8px 0;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--metallic-gold);
  font-weight: 700;
}

.feature-list li.muted::before { content: "—"; color: var(--text-muted); }
.feature-list li.muted { color: #7d7494; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--metallic-gold);
  font-size: 1.4rem;
  margin-left: 12px;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--royal-purple), var(--deep-purple));
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  margin: 0 auto;
}

.cta-band h2 { margin-bottom: 14px; }

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
}

.store-badge small { display: block; font-size: 0.7rem; color: #bbb; }

/* Footer */
footer {
  background: var(--midnight-purple);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

footer h4 {
  color: var(--metallic-gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a { color: var(--text-muted); font-size: 0.92rem; }
footer a:hover { color: var(--metallic-gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #837a9b;
}

.disclaimer-banner {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Blog */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-card .blog-card-body { padding: 26px; }

.blog-meta {
  font-size: 0.82rem;
  color: var(--metallic-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: var(--champagne-gold); }
.prose p, .prose li { color: var(--text-muted); font-size: 1.05rem; }
.prose blockquote {
  border-left: 3px solid var(--metallic-gold);
  margin: 1.6em 0;
  padding-left: 20px;
  color: var(--champagne-gold);
  font-style: italic;
}

/* Tables (pricing comparison, changelog) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

th { color: #fff; font-family: var(--font-heading); font-weight: 600; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--metallic-gold); }

/* Page hero (simpler than home hero) */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(107, 63, 175, 0.3), transparent 60%);
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--metallic-gold);
}

.changelog-entry {
  border-left: 2px solid var(--border);
  padding: 4px 0 36px 28px;
  position: relative;
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--metallic-gold);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.tag-new { background: rgba(212, 175, 55, 0.18); color: var(--metallic-gold); }
.tag-improved { background: rgba(107, 63, 175, 0.25); color: #c8aef0; }
.tag-fixed { background: rgba(247, 240, 208, 0.12); color: var(--text-muted); }
