/* =============================================
   AIWritingPal 2026 Redesign — pal-2026.css
   Warm modern SaaS · DM Sans + Fraunces
   Load via overall_header.php on landing page
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&display=swap');

/* ========== TOKENS ========== */
:root {
  --pal-blue-50: #F0F4FF;
  --pal-blue-100: #E0EAFF;
  --pal-blue-200: #C2D4FF;
  --pal-blue-400: #6B8AFF;
  --pal-blue-500: #4F6FF5;
  --pal-blue-600: #3B5BDB;
  --pal-blue-700: #2B4ACB;
  --pal-sand-0: #FFFFFF;
  --pal-sand-50: #FAFAF8;
  --pal-sand-100: #F5F4F1;
  --pal-sand-150: #EFEEE9;
  --pal-sand-200: #E8E6E1;
  --pal-sand-300: #D5D3CC;
  --pal-sand-400: #A8A59E;
  --pal-sand-500: #7A7770;
  --pal-sand-600: #5C5A54;
  --pal-sand-700: #3D3C38;
  --pal-sand-800: #2A2926;
  --pal-sand-900: #1A1918;
  --pal-green: #22C55E;
  --pal-r-sm: 10px;
  --pal-r-md: 14px;
  --pal-r-lg: 20px;
  --pal-r-xl: 24px;
  --pal-r-full: 9999px;
  --pal-sh-soft: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.03);
  --pal-sh-card: 0 2px 8px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --pal-ease: 180ms cubic-bezier(.25,.46,.45,.94);
}

/* ========== LANDING SCOPE RESET ========== */
.pal-landing,
.pal-landing * { box-sizing: border-box; }

.pal-landing {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pal-sand-800);
  background: var(--pal-sand-50);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ========== UTILITY ========== */
.pal-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.pal-section { padding: 100px 0; }
.pal-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--pal-blue-500); display: block; }
.pal-highlight { color: var(--pal-blue-500); font-style: italic; }

/* ========== TYPOGRAPHY ========== */
.pal-display-xl { font-family: 'Fraunces', Georgia, serif; font-size: clamp(42px,5.5vw,72px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--pal-sand-900); }
.pal-heading-lg { font-family: 'Fraunces', Georgia, serif; font-size: clamp(32px,3.5vw,48px); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; color: var(--pal-sand-900); }
.pal-heading-md { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px,2.5vw,36px); font-weight: 500; line-height: 1.2; color: var(--pal-sand-900); }
.pal-body-lg { font-size: 19px; line-height: 1.7; color: var(--pal-sand-600); }
.pal-body-md { font-size: 17px; line-height: 1.65; color: var(--pal-sand-600); }

/* ========== BUTTONS ========== */
.pal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: 'DM Sans', sans-serif; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: var(--pal-ease); white-space: nowrap; }
.pal-btn-primary { background: var(--pal-blue-500); color: #fff; padding: 12px 28px; border-radius: var(--pal-r-full); font-size: 16px; }
.pal-btn-primary:hover { background: var(--pal-blue-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,111,245,.3); color: #fff; text-decoration: none; }
.pal-btn-secondary { background: var(--pal-sand-0); color: var(--pal-sand-700); padding: 12px 28px; border-radius: var(--pal-r-full); font-size: 16px; border: 1px solid var(--pal-sand-300); }
.pal-btn-secondary:hover { background: var(--pal-sand-100); border-color: var(--pal-sand-400); text-decoration: none; }
.pal-btn-large { padding: 16px 36px; font-size: 17px; }
.pal-btn-google { display: inline-flex; align-items: center; gap: 10px; background: var(--pal-sand-0); border: 1px solid var(--pal-sand-300); padding: 14px 28px; border-radius: var(--pal-r-full); font-size: 16px; font-weight: 600; color: var(--pal-sand-700); cursor: pointer; transition: var(--pal-ease); text-decoration: none; }
.pal-btn-google:hover { background: var(--pal-sand-100); border-color: var(--pal-sand-400); transform: translateY(-1px); text-decoration: none; }
.pal-btn-google svg { width: 20px; height: 20px; }

/* ========== ANNOUNCEMENT ========== */
.pal-announcement { margin-top: 20px; text-align: center; padding: 20px 0 0; }
.pal-announcement-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; background: var(--pal-blue-50); border: 1px solid var(--pal-blue-200); border-radius: var(--pal-r-full); font-size: 14px; font-weight: 500; color: var(--pal-blue-700); text-decoration: none; transition: var(--pal-ease); }
.pal-announcement-pill:hover { background: var(--pal-blue-100); border-color: var(--pal-blue-400); text-decoration: none; }
.pal-announcement-pill .pill-new { background: var(--pal-blue-500); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--pal-r-full); text-transform: uppercase; letter-spacing: .05em; }
.pal-announcement-pill .arrow { font-size: 16px; transition: var(--pal-ease); }
.pal-announcement-pill:hover .arrow { transform: translateX(2px); }

/* ========== HERO ========== */
.pal-hero { padding: 40px 0 80px; text-align: center; background: var(--pal-sand-50); position: relative; overflow: hidden; }
.pal-hero::before { content: ''; position: absolute; top: -20%; left: -10%; width: 60%; height: 120%; background: radial-gradient(ellipse, rgba(79,111,245,.05) 0%, transparent 70%); pointer-events: none; }
.pal-hero::after { content: ''; position: absolute; top: 10%; right: -15%; width: 50%; height: 100%; background: radial-gradient(ellipse, rgba(255,107,53,.04) 0%, transparent 70%); pointer-events: none; }
.pal-hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.pal-hero-title { margin: 32px 0 24px; }
.pal-hero-subtitle { font-size: 20px; line-height: 1.6; color: var(--pal-sand-500); max-width: 600px; margin: 0 auto 40px; }

/* Hero input */
.pal-hero-input-area { max-width: 640px; margin: 0 auto 28px; }
.pal-hero-input-box { display: flex; align-items: center; background: var(--pal-sand-0); border: 2px solid var(--pal-sand-200); border-radius: 16px; padding: 8px 8px 8px 24px; box-shadow: var(--pal-sh-card); transition: var(--pal-ease); }
.pal-hero-input-box:focus-within { border-color: var(--pal-blue-400); box-shadow: var(--pal-sh-card), 0 0 0 4px rgba(79,111,245,.1); }
.pal-hero-input-box input { flex: 1; border: none; outline: none; font-size: 17px; font-family: 'DM Sans', sans-serif; color: var(--pal-sand-800); background: transparent; padding: 12px 0; }
.pal-hero-input-box input::placeholder { color: var(--pal-sand-400); }
.pal-hero-input-box .pal-btn-primary { flex-shrink: 0; }

/* Chips */
.pal-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.pal-hero-chip { font-size: 14px; font-weight: 500; color: var(--pal-sand-600); background: var(--pal-sand-0); border: 1px solid var(--pal-sand-200); padding: 7px 16px; border-radius: var(--pal-r-full); cursor: pointer; transition: var(--pal-ease); text-decoration: none; display: inline-block; }
.pal-hero-chip:hover { background: var(--pal-blue-50); border-color: var(--pal-blue-200); color: var(--pal-blue-600); text-decoration: none; }

/* CTA & Proof */
.pal-hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pal-hero-proof { margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.pal-proof-item { text-align: center; }
.pal-proof-number { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--pal-sand-900); }
.pal-proof-label { font-size: 14px; color: var(--pal-sand-500); margin-top: 2px; }
.pal-proof-divider { width: 1px; height: 36px; background: var(--pal-sand-200); }

/* ========== MARQUEE ========== */
.pal-marquee { padding: 0; overflow: hidden; background: var(--pal-sand-100); border-top: 1px solid var(--pal-sand-200); border-bottom: 1px solid var(--pal-sand-200); }
.pal-marquee-track { display: flex; animation: palMarquee 40s linear infinite; width: max-content; }
.pal-marquee-track:hover { animation-play-state: paused; }
@keyframes palMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.pal-marquee-item { display: flex; align-items: center; gap: 8px; padding: 18px 32px; font-size: 15px; font-weight: 500; color: var(--pal-sand-600); white-space: nowrap; }
.pal-marquee-item .dot { width: 6px; height: 6px; background: var(--pal-blue-400); border-radius: 50%; opacity: .6; }

/* ========== SECTION HEADER ========== */
.pal-section-header { text-align: center; margin-bottom: 72px; }
.pal-section-header .pal-label { margin-bottom: 16px; }
.pal-section-header .pal-heading-lg { margin-bottom: 16px; }
.pal-section-header .pal-body-lg { max-width: 560px; margin: 0 auto; }

/* ========== HOW IT WORKS ========== */
.pal-how { background: var(--pal-sand-0); }
.pal-how-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0; max-width: 1000px; margin: 0 auto; }
.pal-how-step { text-align: center; padding: 40px 24px; }
.pal-how-step-num { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 400; color: var(--pal-blue-100); line-height: 1; margin-bottom: 20px; }
.pal-how-step-title { font-size: 20px; font-weight: 600; color: var(--pal-sand-800); margin-bottom: 12px; }
.pal-how-step-desc { font-size: 16px; color: var(--pal-sand-500); line-height: 1.6; }
.pal-how-connector { display: flex; align-items: center; padding-top: 60px; color: var(--pal-sand-300); }
.pal-how-connector svg { width: 40px; height: 40px; }

/* ========== BENTO CAPABILITIES ========== */
.pal-capabilities { background: var(--pal-sand-50); }
.pal-bento { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: auto auto; gap: 16px; }
.pal-bento-card { background: var(--pal-sand-0); border-radius: var(--pal-r-lg); border: 1px solid var(--pal-sand-200); padding: 40px; transition: var(--pal-ease); overflow: hidden; }
.pal-bento-card:hover { border-color: var(--pal-sand-300); box-shadow: var(--pal-sh-soft); transform: translateY(-2px); }
.pal-bento-card.card-main { grid-row: 1/3; }
.pal-bento-card .card-icon { width: 48px; height: 48px; background: var(--pal-blue-50); border-radius: var(--pal-r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 22px; }
.pal-bento-card .card-title { font-size: 22px; font-weight: 600; color: var(--pal-sand-800); margin-bottom: 12px; }
.pal-bento-card .card-desc { font-size: 16px; color: var(--pal-sand-500); line-height: 1.65; margin-bottom: 24px; }
.pal-bento-card .card-preview { background: var(--pal-sand-100); border-radius: var(--pal-r-md); padding: 24px; }
.pal-bento-card .card-preview .preview-bar { height: 10px; background: var(--pal-sand-200); border-radius: 5px; margin-bottom: 10px; }
.pal-bento-card .card-preview .preview-bar.accent { background: var(--pal-blue-200); }

/* ========== TEMPLATES ========== */
.pal-templates { background: var(--pal-sand-0); }

.pal-templates .template-categories.home-templates { margin-bottom: 32px; }
.pal-templates .template-categories ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.pal-templates .template-categories ul li a { display: block; padding: 10px 18px; font-size: 15px; font-weight: 500; color: var(--pal-sand-500); border-radius: var(--pal-r-sm); text-decoration: none; transition: var(--pal-ease); }
.pal-templates .template-categories ul li a:hover { color: var(--pal-sand-700); background: var(--pal-sand-100); }
.pal-templates .template-categories ul li.active a { color: var(--pal-blue-600); background: var(--pal-blue-50); font-weight: 600; }

.pal-templates .ai-template-blocks .dashboard-box.ai-templates { background: var(--pal-sand-0); border: 1px solid var(--pal-sand-200); border-radius: var(--pal-r-md); padding: 24px; transition: var(--pal-ease); margin-bottom: 16px; box-shadow: none; }
.pal-templates .ai-template-blocks .dashboard-box.ai-templates:hover { border-color: var(--pal-sand-300); background: var(--pal-sand-50); transform: translateY(-2px); }
.pal-templates .ai-template-blocks .dashboard-box.ai-templates .content h4 { font-size: 17px; font-weight: 600; color: var(--pal-sand-800); margin-bottom: 4px; }
.pal-templates .ai-template-blocks .dashboard-box.ai-templates .content p { font-size: 14px; color: var(--pal-sand-500); margin: 0; }
.pal-templates .ai-template-blocks-toggle-button a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--pal-r-full); border: 1px solid var(--pal-sand-300); color: var(--pal-sand-600); font-size: 15px; font-weight: 500; text-decoration: none; transition: var(--pal-ease); }
.pal-templates .ai-template-blocks-toggle-button a:hover { background: var(--pal-sand-100); border-color: var(--pal-sand-400); }
.pal-templates .ai-templates-category-title h4 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 600; color: var(--pal-sand-700); padding: 16px 0 8px; border-bottom: 1px solid var(--pal-sand-150); margin-bottom: 16px; }

/* ========== AI IMAGES ========== */
.pal-images { background: var(--pal-sand-50); }
.pal-images .image-lightbox img { border-radius: var(--pal-r-md); transition: var(--pal-ease); }
.pal-images .image-lightbox img:hover { transform: scale(1.03); }

/* ========== AI CHAT ========== */
.pal-chat { background: var(--pal-sand-0); }
.pal-chat .ud-about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pal-chat .ud-about-content .tag { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--pal-blue-500); display: inline-block; margin-bottom: 12px; }
.pal-chat .ud-about-content h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(28px,3vw,40px); font-weight: 500; color: var(--pal-sand-900); margin-bottom: 20px; }
.pal-chat .ud-about-content p { font-size: 17px; color: var(--pal-sand-600); line-height: 1.7; margin-bottom: 16px; }
.pal-chat .ud-about-image img { border-radius: var(--pal-r-lg); box-shadow: var(--pal-sh-card); }
.pal-chat .ud-main-btn { background: var(--pal-blue-500); color: #fff; padding: 12px 28px; border-radius: var(--pal-r-full); font-size: 16px; font-weight: 600; text-decoration: none; display: inline-flex; transition: var(--pal-ease); margin-top: 8px; }
.pal-chat .ud-main-btn:hover { background: var(--pal-blue-600); transform: translateY(-1px); color: #fff; }

/* ========== PRICING ========== */
.pal-pricing { background: var(--pal-sand-100); border-top: 1px solid var(--pal-sand-200); border-bottom: 1px solid var(--pal-sand-200); }

.pal-pricing .billing-cycle-radios { display: flex !important; align-items: center; justify-content: center; gap: 0; background: var(--pal-sand-200); border-radius: var(--pal-r-full); padding: 4px; width: fit-content; margin: 0 auto 56px !important; }
.pal-pricing .billing-cycle-radios .radio { margin: 0; }
.pal-pricing .billing-cycle-radios .radio label { padding: 10px 28px; font-size: 15px; font-weight: 600; color: var(--pal-sand-500); background: transparent; border-radius: var(--pal-r-full); cursor: pointer; transition: var(--pal-ease); margin: 0; display: block; }
.pal-pricing .billing-cycle-radios .radio input:checked + label { background: var(--pal-sand-0); color: var(--pal-sand-800); box-shadow: var(--pal-sh-soft); }
.pal-pricing .billing-cycle-radios .radio input { display: none; }
.pal-pricing .billing-cycle-radios .radio .radio-label { display: none; }

.pal-pricing .tabs-header ul { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--pal-sand-200); border-radius: var(--pal-r-full); padding: 4px; width: fit-content; margin: 0 auto 32px; list-style: none; }
.pal-pricing .tabs-header ul li a { display: block; padding: 10px 24px; font-size: 15px; font-weight: 600; color: var(--pal-sand-500); border-radius: var(--pal-r-full); text-decoration: none; transition: var(--pal-ease); }
.pal-pricing .tabs-header ul li.active a { background: var(--pal-sand-0); color: var(--pal-sand-800); box-shadow: var(--pal-sh-soft); }

.pal-pricing .pricing-plans-container { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 0 auto; max-width: 900px; }
.pal-pricing .pricing-plan { background: var(--pal-sand-0); border-radius: var(--pal-r-xl); padding: 44px; border: 1px solid var(--pal-sand-200); flex: 1; min-width: 280px; max-width: 420px; transition: var(--pal-ease); position: relative; }
.pal-pricing .pricing-plan.recommended { border-color: var(--pal-blue-400); box-shadow: 0 0 0 1px var(--pal-blue-400); transform: translateY(-4px); }
.pal-pricing .pricing-plan.recommended::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--pal-blue-400), var(--pal-blue-600)); border-radius: var(--pal-r-xl) var(--pal-r-xl) 0 0; }
.pal-pricing .pricing-plan .recommended-badge { background: var(--pal-blue-500); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: var(--pal-r-full); position: absolute; top: -12px; right: 24px; text-transform: uppercase; letter-spacing: .04em; }
.pal-pricing .pricing-plan h3 { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 600; color: var(--pal-sand-700); margin-bottom: 8px; }
.pal-pricing .pricing-plan .pricing-plan-label { margin-bottom: 24px; }
.pal-pricing .pricing-plan .pricing-plan-label strong { font-family: 'Fraunces', serif; font-size: 48px; font-weight: 500; color: var(--pal-sand-900); line-height: 1; }
.pal-pricing .pricing-plan-features { border-top: 1px solid var(--pal-sand-200); padding-top: 24px; }
.pal-pricing .pricing-plan-features ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pal-pricing .pricing-plan-features ul li { font-size: 15px; color: var(--pal-sand-700); line-height: 1.5; display: flex; align-items: center; gap: 8px; }
.pal-pricing .pricing-plan .button.full-width { display: block; width: 100%; padding: 14px 24px; text-align: center; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; border-radius: var(--pal-r-full); transition: var(--pal-ease); border: none; cursor: pointer; }
.pal-pricing .pricing-plan.recommended .button.full-width { background: var(--pal-blue-500); color: #fff; }
.pal-pricing .pricing-plan.recommended .button.full-width:hover { background: var(--pal-blue-600); transform: translateY(-1px); }
.pal-pricing .pricing-plan:not(.recommended) .button.full-width { background: var(--pal-sand-0); color: var(--pal-sand-700); border: 1px solid var(--pal-sand-300); }
.pal-pricing .pricing-plan:not(.recommended) .button.full-width:hover { background: var(--pal-sand-100); }

/* ========== FAQ ========== */
.pal-faq { background: var(--pal-sand-50); }
.pal-faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.pal-faq-left .pal-heading-lg { margin-bottom: 16px; }
.pal-faq-left a { color: var(--pal-blue-500); text-decoration: none; font-weight: 600; }
.pal-faq-left a:hover { text-decoration: underline; }
.pal-faq .ud-single-faq { border-bottom: 1px solid var(--pal-sand-200); padding: 0; margin: 0; background: transparent; box-shadow: none; }
.pal-faq .ud-faq-btn { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 17px; font-weight: 600; color: var(--pal-sand-800); background: transparent; border: none; width: 100%; text-align: left; cursor: pointer; transition: var(--pal-ease); }
.pal-faq .ud-faq-btn:hover { color: var(--pal-blue-600); }
.pal-faq .ud-faq-body { padding: 0 0 24px; font-size: 16px; line-height: 1.7; color: var(--pal-sand-500); }

/* ========== TESTIMONIALS ========== */
.pal-testimonials { background: var(--pal-sand-0); }
.pal-testimonials .testimonial-box { background: var(--pal-sand-50); border-radius: var(--pal-r-lg); padding: 32px; border: 1px solid var(--pal-sand-150); }
.pal-testimonials .testimonial-box:hover { border-color: var(--pal-sand-300); }
.pal-testimonials .testimonial-author h4 { font-size: 15px; font-weight: 600; color: var(--pal-sand-800); }
.pal-testimonials .testimonial-author span { font-size: 13px; color: var(--pal-sand-500); }
.pal-testimonials .testimonial { font-size: 16px; color: var(--pal-sand-700); line-height: 1.7; font-style: italic; }

/* ========== PARTNERS ========== */
.pal-partners { padding: 60px 0; background: var(--pal-sand-0); border-top: 1px solid var(--pal-sand-200); }
.pal-partners img { opacity: .4; transition: var(--pal-ease); filter: grayscale(1); }
.pal-partners img:hover { opacity: .7; }

/* ========== BLOG ========== */
.pal-blog { background: var(--pal-sand-0); padding: 80px 0; }
.pal-blog .blog-compact-item-container { display: block; border-radius: var(--pal-r-lg); overflow: hidden; border: 1px solid var(--pal-sand-200); transition: var(--pal-ease); text-decoration: none; margin-bottom: 24px; }
.pal-blog .blog-compact-item-container:hover { border-color: var(--pal-sand-300); transform: translateY(-3px); box-shadow: var(--pal-sh-card); }
.pal-blog .blog-compact-item-content h3 { font-size: 18px; font-weight: 600; color: var(--pal-sand-800); line-height: 1.4; }
.pal-blog .blog-compact-item-content p { font-size: 15px; color: var(--pal-sand-500); }
.pal-blog .section-headline h3 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px,2.5vw,36px); font-weight: 500; color: var(--pal-sand-900); }
.pal-blog .headline-link { font-size: 15px; font-weight: 500; color: var(--pal-blue-500); text-decoration: none; }

/* ========== NEWSLETTER ========== */
.pal-newsletter { background: var(--pal-sand-50); padding: 80px 0; }
.pal-newsletter .inner-content { max-width: 700px; margin: 0 auto; text-align: center; }
.pal-newsletter .title h3 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(24px,2.5vw,36px); font-weight: 500; color: var(--pal-sand-900); margin-bottom: 12px; }
.pal-newsletter .title p { font-size: 17px; color: var(--pal-sand-500); margin-bottom: 32px; }
.pal-newsletter .newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.pal-newsletter .newsletter-form input { flex: 1; padding: 14px 20px; font-size: 16px; font-family: 'DM Sans', sans-serif; border: 1px solid var(--pal-sand-300); border-radius: var(--pal-r-full); background: var(--pal-sand-0); color: var(--pal-sand-800); outline: none; transition: var(--pal-ease); }
.pal-newsletter .newsletter-form input:focus { border-color: var(--pal-blue-400); box-shadow: 0 0 0 3px rgba(79,111,245,.1); }
.pal-newsletter .newsletter-form .button,
.pal-newsletter .newsletter-form .btn { background: var(--pal-blue-500); color: #fff; padding: 14px 28px; border-radius: var(--pal-r-full); font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: var(--pal-ease); }
.pal-newsletter .newsletter-form .button:hover,
.pal-newsletter .newsletter-form .btn:hover { background: var(--pal-blue-600); }

/* ========== CTA BANNER ========== */
.pal-cta-banner { background: var(--pal-blue-500); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.pal-cta-banner::before { content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%; background: radial-gradient(ellipse, rgba(255,255,255,.08) 0%, transparent 60%); pointer-events: none; }
.pal-cta-banner .pal-heading-lg { color: #fff; margin-bottom: 16px; }
.pal-cta-banner .pal-body-lg { color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 36px; }
.pal-cta-banner .pal-btn-white { background: #fff; color: var(--pal-blue-600); padding: 16px 40px; border-radius: var(--pal-r-full); font-size: 17px; font-weight: 700; border: none; cursor: pointer; transition: var(--pal-ease); display: inline-flex; text-decoration: none; }
.pal-cta-banner .pal-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* ========== AD SPACE ========== */
.pal-ad-space { padding: 16px 0; text-align: center; }

/* ========== RESPONSIVE ========== */
@media (max-width:1024px) {
  .pal-bento { grid-template-columns: 1fr; }
  .pal-bento-card.card-main { grid-row: auto; }
  .pal-faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .pal-chat .ud-about-wrapper { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width:768px) {
  .pal-section { padding: 72px 0; }
  .pal-container { padding: 0 20px; }
  .pal-how-flow { grid-template-columns: 1fr; }
  .pal-how-connector { display: none; }
  .pal-hero-cta { flex-direction: column; }
  .pal-hero-proof { gap: 24px; }
  .pal-proof-divider { display: none; }
  .pal-pricing .pricing-plans-container { flex-direction: column; align-items: center; }
  .pal-pricing .pricing-plan { max-width: 100%; }
  .pal-newsletter .newsletter-form { flex-direction: column; }
}

/* ========== NEW STRUCTURE STYLES (matching HTML preview) ========== */

/* FAQ new structure */
.pal-faq-item { border-bottom: 1px solid var(--pal-sand-200); }
.pal-faq-question { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--pal-sand-800); background: transparent; border: none; width: 100%; text-align: left; transition: var(--pal-ease); font-family: 'DM Sans', sans-serif; }
.pal-faq-question:hover { color: var(--pal-blue-600); }
.pal-faq-question .icon { font-size: 22px; color: var(--pal-sand-400); transition: var(--pal-ease); flex-shrink: 0; margin-left: 16px; }
.pal-faq-item.open .pal-faq-question .icon { transform: rotate(45deg); color: var(--pal-blue-500); }
.pal-faq-answer { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.pal-faq-item.open .pal-faq-answer { max-height: 300px; }
.pal-faq-answer-inner { padding: 0 0 24px; font-size: 16px; line-height: 1.7; color: var(--pal-sand-500); }

/* Testimonials new grid */
.pal-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pal-testimonial-card { background: var(--pal-sand-50); border-radius: var(--pal-r-lg); padding: 32px; border: 1px solid var(--pal-sand-150); transition: var(--pal-ease); }
.pal-testimonial-card:hover { border-color: var(--pal-sand-300); }
.pal-testimonial-stars { color: #F59E0B; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.pal-testimonial-text { font-size: 16px; color: var(--pal-sand-700); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.pal-testimonial-author { display: flex; align-items: center; gap: 12px; }
.pal-testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pal-testimonial-name { font-size: 15px; font-weight: 600; color: var(--pal-sand-800); }
.pal-testimonial-role { font-size: 13px; color: var(--pal-sand-500); }

/* Chat new wrapper */
.pal-chat-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pal-chat-content .pal-label { margin-bottom: 12px; }
.pal-chat-content .pal-heading-lg { margin-bottom: 20px; }
.pal-chat-content p { font-size: 17px; color: var(--pal-sand-600); line-height: 1.7; margin-bottom: 16px; }
.pal-chat-image img { border-radius: var(--pal-r-lg); box-shadow: var(--pal-sh-card); }

/* Blog new grid */
.pal-blog-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.pal-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pal-blog-card { display: block; border-radius: var(--pal-r-lg); overflow: hidden; border: 1px solid var(--pal-sand-200); transition: var(--pal-ease); text-decoration: none; color: inherit; }
.pal-blog-card:hover { border-color: var(--pal-sand-300); transform: translateY(-3px); box-shadow: var(--pal-sh-card); text-decoration: none; }
.pal-blog-card-img { height: 200px; overflow: hidden; background: var(--pal-sand-100); }
.pal-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pal-blog-card-body { padding: 24px; }
.pal-blog-card-date { font-size: 13px; color: var(--pal-sand-400); margin-bottom: 8px; }
.pal-blog-card-title { font-size: 18px; font-weight: 600; color: var(--pal-sand-800); line-height: 1.4; margin-bottom: 8px; }
.pal-blog-card-desc { font-size: 14px; color: var(--pal-sand-500); line-height: 1.6; margin: 0; }

/* Newsletter new structure */
.pal-newsletter-box { max-width: 600px; margin: 0 auto; text-align: center; }
.pal-newsletter-box .pal-heading-md { margin-bottom: 12px; }
.pal-newsletter-box .pal-body-md { margin-bottom: 32px; }
.pal-newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.pal-newsletter-form input { flex: 1; padding: 14px 20px; font-size: 16px; font-family: 'DM Sans', sans-serif; border: 1px solid var(--pal-sand-300); border-radius: var(--pal-r-full); background: var(--pal-sand-0); color: var(--pal-sand-800); outline: none; transition: var(--pal-ease); }
.pal-newsletter-form input:focus { border-color: var(--pal-blue-400); box-shadow: 0 0 0 3px rgba(79,111,245,.1); }

/* Partners new row */
.pal-partners-row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.pal-partner-item img { height: 40px; opacity: 0.4; filter: grayscale(1); transition: var(--pal-ease); }
.pal-partner-item img:hover { opacity: 0.7; filter: grayscale(0); }

/* Responsive additions */
@media (max-width:1024px) {
  .pal-chat-wrapper { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width:768px) {
  .pal-testimonials-grid { grid-template-columns: 1fr; }
  .pal-blog-grid { grid-template-columns: 1fr; }
  .pal-faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .pal-blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pal-newsletter-form { flex-direction: column; }
}


/* =================================================================
   OVERRIDE SECTION — Fix conflicts with style.css and styles.css
   Using .pal-landing scope for higher specificity
   ================================================================= */

/* --- Blog: override .blog-compact-item hard-coded styles --- */
.pal-landing .pal-blog .pal-blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}

.pal-landing .pal-blog .pal-blog-card {
    display: block !important;
    height: auto !important;
    margin-bottom: 0 !important;
    transform: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid var(--pal-sand-200) !important;
    text-decoration: none !important;
    transition: var(--pal-ease) !important;
    background: var(--pal-sand-0) !important;
    box-shadow: none !important;
}

.pal-landing .pal-blog .pal-blog-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--pal-sh-card) !important;
    border-color: var(--pal-sand-300) !important;
}

.pal-landing .pal-blog .pal-blog-card-img {
    height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
    background: var(--pal-sand-100) !important;
}

.pal-landing .pal-blog .pal-blog-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.pal-landing .pal-blog .pal-blog-card-body {
    padding: 24px !important;
    position: relative !important;
    z-index: 1 !important;
    background: var(--pal-sand-0) !important;
}

.pal-landing .pal-blog .pal-blog-card-date {
    font-size: 13px !important;
    color: var(--pal-sand-400) !important;
    margin-bottom: 8px !important;
}

.pal-landing .pal-blog .pal-blog-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--pal-sand-800) !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

.pal-landing .pal-blog .pal-blog-card-desc {
    font-size: 14px !important;
    color: var(--pal-sand-500) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.pal-landing .pal-blog .pal-blog-header {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    margin-bottom: 40px !important;
}

/* --- Testimonials: override slick carousel & force grid --- */
.pal-landing .pal-testimonials .pal-testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

.pal-landing .pal-testimonials .pal-testimonial-card {
    background: var(--pal-sand-50) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    border: 1px solid var(--pal-sand-150) !important;
    box-shadow: none !important;
}

.pal-landing .pal-testimonials .pal-testimonial-stars {
    color: #F59E0B !important;
    font-size: 16px !important;
    margin-bottom: 16px !important;
    letter-spacing: 2px !important;
}

.pal-landing .pal-testimonials .pal-testimonial-text {
    font-size: 16px !important;
    color: var(--pal-sand-700) !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    font-style: italic !important;
}

.pal-landing .pal-testimonials .pal-testimonial-author {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.pal-landing .pal-testimonials .pal-testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.pal-landing .pal-testimonials .pal-testimonial-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--pal-sand-800) !important;
}

.pal-landing .pal-testimonials .pal-testimonial-role {
    font-size: 13px !important;
    color: var(--pal-sand-500) !important;
}

/* --- FAQ: force left-right layout + accordion behavior --- */
.pal-landing .pal-faq .pal-faq-layout {
    display: grid !important;
    grid-template-columns: 1fr 1.4fr !important;
    gap: 80px !important;
    align-items: start !important;
}

.pal-landing .pal-faq .pal-faq-item {
    border-bottom: 1px solid var(--pal-sand-200) !important;
}

.pal-landing .pal-faq .pal-faq-question {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 0 !important;
    cursor: pointer !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--pal-sand-800) !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    font-family: 'DM Sans', sans-serif !important;
    transition: var(--pal-ease) !important;
}

.pal-landing .pal-faq .pal-faq-question:hover {
    color: var(--pal-blue-600) !important;
}

.pal-landing .pal-faq .pal-faq-question .icon {
    font-size: 22px !important;
    color: var(--pal-sand-400) !important;
    transition: var(--pal-ease) !important;
    flex-shrink: 0 !important;
    margin-left: 16px !important;
}

.pal-landing .pal-faq .pal-faq-item.open .pal-faq-question .icon {
    transform: rotate(45deg) !important;
    color: var(--pal-blue-500) !important;
}

.pal-landing .pal-faq .pal-faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 300ms ease !important;
}

.pal-landing .pal-faq .pal-faq-item.open .pal-faq-answer {
    max-height: 500px !important;
}

.pal-landing .pal-faq .pal-faq-answer-inner {
    padding: 0 0 24px !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--pal-sand-500) !important;
}

/* --- Chat: force two-column layout --- */
.pal-landing .pal-chat .pal-chat-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 64px !important;
    align-items: center !important;
}

.pal-landing .pal-chat .pal-chat-content .pal-label {
    margin-bottom: 12px !important;
    display: block !important;
}

.pal-landing .pal-chat .pal-chat-content .pal-heading-lg {
    margin-bottom: 20px !important;
}

.pal-landing .pal-chat .pal-chat-content p {
    font-size: 17px !important;
    color: var(--pal-sand-600) !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
}

.pal-landing .pal-chat .pal-chat-image img {
    border-radius: 20px !important;
    box-shadow: var(--pal-sh-card) !important;
    max-width: 100% !important;
}

/* --- Pricing overrides --- */
.pal-landing .pal-pricing .billing-cycle-radios {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: var(--pal-sand-200) !important;
    border-radius: var(--pal-r-full) !important;
    padding: 4px !important;
    width: auto !important;
    margin: 0 auto 56px !important;
}

.pal-landing .pal-pricing .billing-cycle-radios .radio {
    margin: 0 !important;
}

.pal-landing .pal-pricing .billing-cycle-radios .radio label {
    padding: 10px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--pal-sand-500) !important;
    background: transparent !important;
    border-radius: var(--pal-r-full) !important;
    cursor: pointer !important;
    margin: 0 !important;
    display: block !important;
    transition: var(--pal-ease) !important;
}

.pal-landing .pal-pricing .billing-cycle-radios .radio input:checked + label {
    background: var(--pal-sand-0) !important;
    color: var(--pal-sand-800) !important;
    box-shadow: var(--pal-sh-soft) !important;
}

.pal-landing .pal-pricing .billing-cycle-radios .radio input {
    display: none !important;
}

.pal-landing .pal-pricing .billing-cycle-radios .radio .radio-label {
    display: none !important;
}

.pal-landing .pal-pricing .pricing-plans-container {
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.pal-landing .pal-pricing .pricing-plan {
    background: var(--pal-sand-0) !important;
    border-radius: 24px !important;
    padding: 44px !important;
    border: 1px solid var(--pal-sand-200) !important;
    flex: 1 !important;
    min-width: 280px !important;
    max-width: 420px !important;
    position: relative !important;
    box-shadow: none !important;
}

.pal-landing .pal-pricing .pricing-plan.recommended {
    border-color: var(--pal-blue-400) !important;
    box-shadow: 0 0 0 1px var(--pal-blue-400) !important;
}

.pal-landing .pal-pricing .pricing-plan .recommended-badge {
    background: var(--pal-blue-500) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 14px !important;
    border-radius: var(--pal-r-full) !important;
    position: absolute !important;
    top: -12px !important;
    right: 24px !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
}

.pal-landing .pal-pricing .pricing-plan h3 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--pal-sand-700) !important;
    margin-bottom: 8px !important;
}

.pal-landing .pal-pricing .pricing-plan .pricing-plan-label strong {
    font-family: 'Fraunces', serif !important;
    font-size: 48px !important;
    font-weight: 500 !important;
    color: var(--pal-sand-900) !important;
    line-height: 1 !important;
}

.pal-landing .pal-pricing .pricing-plan-features {
    border-top: 1px solid var(--pal-sand-200) !important;
    padding-top: 24px !important;
}

.pal-landing .pal-pricing .pricing-plan-features ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pal-landing .pal-pricing .pricing-plan-features ul li {
    font-size: 15px !important;
    color: var(--pal-sand-700) !important;
    padding: 6px 0 !important;
}

.pal-landing .pal-pricing .pricing-plan .button.full-width {
    display: block !important;
    width: 100% !important;
    padding: 14px 24px !important;
    text-align: center !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: var(--pal-r-full) !important;
    transition: var(--pal-ease) !important;
    border: none !important;
    cursor: pointer !important;
}

.pal-landing .pal-pricing .pricing-plan.recommended .button.full-width {
    background: var(--pal-blue-500) !important;
    color: #fff !important;
}

.pal-landing .pal-pricing .pricing-plan:not(.recommended) .button.full-width {
    background: var(--pal-sand-0) !important;
    color: var(--pal-sand-700) !important;
    border: 1px solid var(--pal-sand-300) !important;
}

/* --- Section headers: force Fraunces on all headings --- */
.pal-landing .pal-section-header .pal-heading-lg,
.pal-landing .pal-heading-lg {
    font-family: 'Fraunces', Georgia, serif !important;
}

.pal-landing .pal-section-header .pal-label,
.pal-landing .pal-label {
    font-family: 'DM Sans', sans-serif !important;
}

/* --- Templates: override original card styles --- */
.pal-landing .pal-templates .dashboard-box.ai-templates {
    background: var(--pal-sand-0) !important;
    border: 1px solid var(--pal-sand-200) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: none !important;
    margin-bottom: 16px !important;
    transition: var(--pal-ease) !important;
}

.pal-landing .pal-templates .dashboard-box.ai-templates:hover {
    border-color: var(--pal-sand-300) !important;
    background: var(--pal-sand-50) !important;
    transform: translateY(-2px) !important;
}

/* --- Newsletter override --- */
.pal-landing .pal-newsletter .pal-newsletter-box {
    max-width: 600px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.pal-landing .pal-newsletter .pal-newsletter-form {
    display: flex !important;
    gap: 10px !important;
    max-width: 480px !important;
    margin: 0 auto !important;
}

.pal-landing .pal-newsletter .pal-newsletter-form input {
    flex: 1 !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border: 1px solid var(--pal-sand-300) !important;
    border-radius: var(--pal-r-full) !important;
    background: var(--pal-sand-0) !important;
    outline: none !important;
}

/* --- Partners override --- */
.pal-landing .pal-partners .pal-partners-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 48px !important;
    flex-wrap: wrap !important;
}

.pal-landing .pal-partners .pal-partner-item img {
    height: 40px !important;
    opacity: 0.4 !important;
    filter: grayscale(1) !important;
    max-width: 120px !important;
}

/* --- CTA Banner --- */
.pal-landing .pal-cta-banner {
    background: var(--pal-blue-500) !important;
    padding: 100px 0 !important;
    text-align: center !important;
}

.pal-landing .pal-cta-banner .pal-heading-lg {
    color: #fff !important;
}

.pal-landing .pal-cta-banner .pal-body-lg {
    color: rgba(255,255,255,.75) !important;
}

.pal-landing .pal-cta-banner .pal-btn-white {
    background: #fff !important;
    color: var(--pal-blue-600) !important;
    padding: 16px 40px !important;
    border-radius: var(--pal-r-full) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    border: none !important;
    display: inline-flex !important;
    text-decoration: none !important;
}

/* --- Bento cards --- */
.pal-landing .pal-capabilities .pal-bento {
    display: grid !important;
    grid-template-columns: 1.2fr .8fr !important;
    grid-template-rows: auto auto !important;
    gap: 16px !important;
}

.pal-landing .pal-capabilities .pal-bento-card.card-main {
    grid-row: 1 / 3 !important;
}

/* --- Responsive override --- */
@media (max-width:1024px) {
    .pal-landing .pal-faq .pal-faq-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
    .pal-landing .pal-chat .pal-chat-wrapper { grid-template-columns: 1fr !important; gap: 40px !important; }
    .pal-landing .pal-capabilities .pal-bento { grid-template-columns: 1fr !important; }
    .pal-landing .pal-capabilities .pal-bento-card.card-main { grid-row: auto !important; }
}

@media (max-width:768px) {
    .pal-landing .pal-testimonials .pal-testimonials-grid { grid-template-columns: 1fr !important; }
    .pal-landing .pal-blog .pal-blog-grid { grid-template-columns: 1fr !important; }
    .pal-landing .pal-pricing .pricing-plans-container { flex-direction: column !important; align-items: center !important; }
    .pal-landing .pal-pricing .pricing-plan { max-width: 100% !important; }
    .pal-landing .pal-newsletter .pal-newsletter-form { flex-direction: column !important; }
    .pal-landing .pal-blog .pal-blog-header { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
}
