/*
 * e2spec pSEO pages — shared stylesheet
 * Used by all static marketing/landing pages under /for/, /vs/, /estimate/, /guides/
 * Design tokens match the main app's DESIGN_SYSTEM.md
 */

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

:root {
  --primary-50: #ecfeff;
  --primary-100: #cffafe;
  --primary-200: #a5f3fc;
  --primary-500: #06b6d4;
  --primary-600: #0891b2;
  --primary-700: #0e7490;
  --secondary-50: #fffbeb;
  --secondary-100: #fef3c7;
  --secondary-500: #f59e0b;
  --secondary-600: #d97706;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --red-500: #ef4444;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-glow: 0 4px 15px rgba(8,145,178,0.3);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: var(--neutral-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

/* ─── NAV ────────────────────────────────────────────────────── */
.pseo-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--neutral-900); text-decoration: none;
}
.nav-logo span { color: var(--primary-600); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--neutral-600); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-600); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.3s ease-in-out;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary-600); color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--primary-700); transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8,145,178,0.4);
}
.btn-outline {
  background: transparent; color: var(--primary-600);
  border: 2px solid var(--primary-600);
}
.btn-outline:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-white {
  background: #fff; color: var(--primary-700);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-ghost {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-sm { padding: 8px 16px; font-size: 0.84rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; justify-content: center; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 24px 80px;
  background: linear-gradient(135deg, #f0fdff 0%, #fafaf9 50%, #fffbeb 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: 0.6;
}
.hero-container { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--primary-200);
  font-size: 0.82rem; font-weight: 600; color: var(--primary-700);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }

h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15; color: var(--neutral-900); margin-bottom: 20px;
}
h1 .gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--neutral-600);
  max-width: 640px; margin-bottom: 36px; line-height: 1.8;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.trust-row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--neutral-500);
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-check { width: 18px; height: 18px; color: var(--green-500); flex-shrink: 0; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
section { padding: 80px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
  background: var(--primary-50); color: var(--primary-700);
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px;
}
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2;
  margin-bottom: 16px;
}
h2 .gradient {
  background: linear-gradient(135deg, var(--primary-600), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.1rem; color: var(--neutral-600);
  max-width: 640px; margin-bottom: 48px; line-height: 1.7;
}

/* ─── CARDS ───────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--neutral-200);
  transition: all 0.3s ease-in-out;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--neutral-600); line-height: 1.6; }

/* ─── STEPS ──────────────────────────────────────────────────── */
.steps { display: grid; gap: 32px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; padding: 32px 24px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: var(--shadow-glow);
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--neutral-600); }

/* ─── CHECKLIST ──────────────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--neutral-700); }
.check-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  background: var(--green-100); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.check-svg { width: 13px; height: 13px; color: var(--green-500); }
.x-mark { color: var(--red-500); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* ─── CALCULATOR WIDGET ──────────────────────────────────────── */
.calc-widget {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  padding: 32px; border: 1px solid var(--neutral-200);
}
.calc-widget h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.calc-widget .calc-sub { font-size: 0.88rem; color: var(--neutral-600); margin-bottom: 20px; }
.calc-field { margin-bottom: 16px; }
.calc-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--neutral-700); margin-bottom: 6px;
}
.calc-field input, .calc-field select {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--neutral-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.calc-field input:focus, .calc-field select:focus {
  outline: none; border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.calc-result {
  margin-top: 20px; padding: 20px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-50), #eff6ff);
  border: 1px solid var(--primary-200);
}
.calc-result .label {
  font-size: 0.82rem; font-weight: 600; color: var(--neutral-600);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.calc-result .amount {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  color: var(--primary-700); line-height: 1.2;
}
.calc-result .range { font-size: 0.85rem; color: var(--neutral-600); margin-top: 4px; }

/* ─── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 50%, #7c3aed 100%);
  border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff;
  box-shadow: 0 12px 40px rgba(8,145,178,0.3);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; color: #fff; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── COMPARISON TABLE ───────────────────────────────────────── */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 0.95rem;
}
.compare-table th {
  text-align: left; padding: 14px 18px; font-weight: 700;
  font-family: var(--font-display); background: var(--neutral-100);
  border-bottom: 2px solid var(--neutral-200);
}
.compare-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
}
.compare-table tr:hover td { background: var(--primary-50); }
.compare-table .winner { color: var(--green-500); font-weight: 600; }
.compare-table .loser { color: var(--neutral-500); }

/* ─── PRICING TEASER ─────────────────────────────────────────── */
.plans-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  background: #fff; border-radius: var(--radius-xl); padding: 32px;
  border: 2px solid var(--neutral-200); transition: all 0.3s;
}
.plan-card.featured { border-color: var(--primary-500); }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--neutral-600); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.plan-price {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  color: var(--neutral-900); margin-bottom: 4px;
}
.plan-price small { font-size: 1rem; font-weight: 400; }
.plan-sub { font-size: 0.85rem; color: var(--neutral-500); margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan-features li { display: flex; gap: 8px; font-size: 0.9rem; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
details {
  background: #fff; border-radius: 14px; margin-bottom: 12px;
  border: 1px solid var(--neutral-200); overflow: hidden;
}
summary {
  padding: 20px 24px; font-weight: 600; cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.3rem; color: var(--primary-600);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--neutral-700); line-height: 1.7; }

/* ─── INTERNAL LINKS ─────────────────────────────────────────── */
.internal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.internal-link {
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--primary-50); color: var(--primary-700);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--primary-200); transition: all 0.2s;
}
.internal-link:hover { background: var(--primary-100); transform: translateY(-1px); }

/* ─── SCREENSHOT BLOCK ───────────────────────────────────────── */
.screenshot-block {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,0.12);
  border: 1px solid var(--neutral-200);
}
.screenshot-block img { width: 100%; display: block; }
.screenshot-caption {
  text-align: center; font-size: 0.88rem;
  color: var(--neutral-500); margin-top: 16px;
}

/* ─── GUIDE / ARTICLE STYLES ─────────────────────────────────── */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { margin-top: 48px; margin-bottom: 16px; }
.article-body h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin-top: 36px; margin-bottom: 12px;
}
.article-body p { margin-bottom: 18px; color: var(--neutral-700); }
.article-body ul, .article-body ol {
  margin-bottom: 18px; padding-left: 24px;
  color: var(--neutral-700);
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--primary-500);
  padding: 16px 24px; margin: 24px 0;
  background: var(--primary-50); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: var(--neutral-700);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.pseo-footer {
  background: var(--neutral-900); color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; color: #fff; margin-bottom: 10px;
}
.footer-brand span { color: var(--primary-500); }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  color: #fff; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 0.88rem; margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #22d3ee; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  font-size: 0.82rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 56px 20px; }
  .hero { padding: 72px 20px 56px; }
  .cta-banner { padding: 40px 24px; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
