/* === Global Reset & Base === */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  margin: 0;
  padding: 0;
  background: #fff;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: bold;
}

p {
  margin: 0 0 1em;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* === Hero Section === */
header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0b5fff, #7b2ff7); /* blue → purple gradient */
  color: #fff; /* make text stand out */
}

header img {
  max-width: 240px;
  margin: 20px auto;
  display: block;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  color: #ff7f2a;
}

.hero p {
  max-width: 650px;
  margin: 10px auto;
  font-size: 1.1rem;
  color: #f5f5f5;
}

.highlight {
  font-weight: bold;
  color: #ffd166; /* soft yellow highlight for contrast */
}

/* === Call-to-Action Buttons === */
.cta-button,
.signup button {
  display: inline-block;
  background: #ff7f2a; /* orange buttons */
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cta-button:hover,
.signup button:hover {
  background: #e56710; /* darker orange on hover */
  transform: translateY(-2px);
}

/* === Features & Testimonials === */
.features,
.testimonials,
.signup {
  padding: 40px 20px;
  text-align: center;
}

.features h2,
.testimonials h2,
.signup h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Always 3 across */
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr; /* Mobile: stack vertically */
  }
}


.card {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  text-align: left;
}

.testimonial {
  max-width: 600px;
  margin: 0 auto 20px;
  font-style: italic;
}

/* === Signup Form === */
.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 600px;
  margin: 20px auto;
}

.signup input[type="email"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* === Container Section === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Footer === */
footer {
  margin-top: 48px;
  padding: 16px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  color: #666;
  font-size: 14px;
  background: #fafafa;
}

footer a {
  color: #ff7f2a; /* orange links to match buttons */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
o match buttons */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

<?php
// ===== FILE: page-landing.php =====
// Template Name: AI Lead Generator Landing Page

get_header(); ?>

    <!-- Hero section -->
    <header>
        <div class="hero">
            <?php while (have_posts()) : the_post(); ?>
            <h1><?php echo get_post_meta(get_the_ID(), 'hero_title', true) ?: get_the_title(); ?></h1>
            <?php 
            $hero_image = get_post_meta(get_the_ID(), 'hero_image', true);
            if ($hero_image) : 
            ?>
            <img src="<?php echo $hero_image; ?>" alt="<?php echo get_post_meta(get_the_ID(), 'hero_image_alt', true) ?: 'Hero image'; ?>">
            <?php else : ?>
            <img src="<?php echo get_template_directory_uri(); ?>/BusinessMan.png" alt="Business man in a blue suit by a laptop">
            <?php endif; ?>
            
            <p><?php echo get_post_meta(get_the_ID(), 'hero_subtitle', true) ?: get_the_excerpt(); ?></p>
            
            <?php 
            $regular_price = get_post_meta(get_the_ID(), '_regular_price', true) ?: '$147';
            $sale_price = get_post_meta(get_the_ID(), '_sale_price', true) ?: '$97';
            ?>
            <p style="font-weight:bold;color:#d9534f;">💰 Normally <?php echo $regular_price; ?>, today only <?php echo $sale_price; ?>!</p>
            <a href="#buy" class="cta-button">Get Instant Access — <?php echo $sale_price; ?></a>
            <?php endwhile; ?>
        </div>
    </header>

    <!-- Rest of content similar to index.php but pulling from custom fields -->

<?php get_footer(); ?>