/* ========== PostPilot — Premium Design System ========== */
:root {
  --blue: #0066cc;
  --blue-hover: #0071e3;
  --blue-light: #2997ff;
  --white: #ffffff;
  --offwhite: #f5f5f7;
  --ink: #1d1d1f;
  --ink-80: #424245;
  --ink-48: #86868b;
  --muted: #a1a1a6;
  --slate: #2c2c34;
  --slate-deep: #1e1e26;
  --hairline: rgba(0, 0, 0, 0.06);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--ink); background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== Canvas Background ========== */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6;
}

/* ========== Typography ========== */
.hero-display { font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.03em; }
.display-lg { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.hero-eyebrow {
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.lead { font-size: 21px; font-weight: 400; line-height: 1.47; color: var(--ink-80); letter-spacing: -0.01em; }
.lead--muted { color: var(--muted); }
.hero-lead { font-size: 19px; line-height: 1.5; color: var(--ink-80); max-width: 460px; margin-bottom: 32px; }

/* ========== Global Nav ========== */
.global-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 48px;
  background: rgba(255,255,255,0.72); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline); transition: background 0.3s;
}
.global-nav.scrolled { background: rgba(255,255,255,0.95); }
.global-nav__inner {
  max-width: 980px; margin: 0 auto; height: 100%; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.global-nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em;
}
.nav-logo-img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.global-nav__links { display: flex; gap: 28px; }
.global-nav__links a { font-size: 12px; font-weight: 400; color: var(--ink-48); transition: color 0.2s; }
.global-nav__links a:hover { color: var(--ink); }
.global-nav__actions { display: flex; align-items: center; gap: 10px; }
.global-nav__hamburger { display: none; background: none; border: none; color: var(--ink); cursor: pointer; }

/* ========== Nav Buttons (Consistent) ========== */
.btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 14px; border-radius: 9999px; font-family: var(--font);
  font-size: 12px; font-weight: 400; cursor: pointer; transition: all 0.2s;
  border: none; letter-spacing: -0.01em;
  background: var(--ink); color: var(--white);
}
.btn-nav:active { transform: scale(0.95); }
.btn-nav--primary { background: var(--blue); }
.btn-nav--primary:hover { background: var(--blue-hover); }

/* ========== Action Buttons (Page-level, all same size) ========== */
.btn-action {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 9999px; font-family: var(--font);
  font-size: 17px; font-weight: 400; cursor: pointer; transition: all 0.2s;
  border: none; letter-spacing: -0.022em; line-height: 1;
}
.btn-action:active { transform: scale(0.97); }
.btn-action--primary { background: var(--blue); color: var(--white); }
.btn-action--primary:hover { background: var(--blue-hover); }
.btn-action--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-action--outline:hover { background: rgba(0,102,204,0.05); }
.btn-action--outline-light { background: transparent; color: var(--blue-light); border: 1.5px solid var(--blue-light); }
.btn-action--outline-light:hover { background: rgba(41,151,255,0.08); }
.btn-action--full { width: 100%; }

/* ========== Tiles ========== */
.tile { position: relative; z-index: 1; width: 100%; }
.tile--white { background: var(--white); }
.tile--offwhite { background: var(--offwhite); }
.tile--slate { background: var(--slate); color: var(--white); }
.tile--slate-deep { background: var(--slate-deep); color: var(--white); }
.tile--slate .display-lg, .tile--slate-deep .display-lg { color: var(--white); }
.tile__content { max-width: 980px; margin: 0 auto; padding: 80px 22px; }

/* ========== Hero ========== */
.hero-tile { padding-top: 48px; }
.hero-tile .tile__content { padding-top: 100px; padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-image { border-radius: 18px; width: 100%; box-shadow: rgba(0,0,0,0.08) 0 8px 40px; }

/* ========== Trust Bar ========== */
.trust-bar { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 22px; position: relative; z-index: 1; }
.trust-bar__inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 20px; }
.trust-bar__inner > span { font-size: 11px; color: var(--ink-48); text-transform: uppercase; letter-spacing: 0.08em; }
.trust-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.trust-logo { font-size: 13px; font-weight: 600; color: var(--ink-48); }
.trust-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-48); opacity: 0.4; }

/* ========== Stats ========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__number { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ========== Section Head ========== */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .lead { max-width: 480px; margin: 12px auto 0; }
.section-head--light .display-lg { color: var(--white); }
.section-head--light .lead { color: var(--muted); }

/* ========== Features ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 18px; padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover { box-shadow: rgba(0,0,0,0.06) 0 4px 24px; transform: translateY(-2px); }
.feature-card__icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,102,204,0.06); color: var(--blue); margin-bottom: 14px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.feature-card p { font-size: 14px; line-height: 1.47; color: var(--ink-80); }

/* ========== Steps ========== */
.steps-row { display: flex; align-items: flex-start; justify-content: center; }
.step-card { flex: 1; text-align: center; padding: 28px 20px; }
.step-number { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; color: var(--blue-light); margin-bottom: 14px; line-height: 1; }
.step-card h3 { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em; }
.step-card p { font-size: 14px; line-height: 1.47; color: var(--muted); }
.step-divider { width: 48px; height: 1px; background: rgba(41,151,255,0.25); margin-top: 70px; flex-shrink: 0; }

/* ========== Pricing ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pricing-card {
  position: relative; background: var(--white); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 32px 24px; text-align: center;
}
.pricing-card--featured { border: 2px solid var(--blue); box-shadow: rgba(0,102,204,0.06) 0 8px 40px; }
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white); padding: 3px 14px; border-radius: 9999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.pricing-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.pricing-card__price { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; margin: 12px 0 4px; }
.pricing-card__price span { font-size: 17px; font-weight: 400; color: var(--ink-48); }
.pricing-card__desc { font-size: 14px; color: var(--ink-48); margin-bottom: 20px; }
.pricing-card__list { margin-bottom: 24px; text-align: left; }
.pricing-card__list li { padding: 9px 0; font-size: 14px; color: var(--ink-80); border-bottom: 1px solid var(--hairline); }

/* ========== CTA ========== */
.cta-section { text-align: center; padding: 100px 22px; }
.cta-section .lead { max-width: 480px; margin: 12px auto 32px; }
.cta-section .hero-ctas { justify-content: center; }

/* ========== Footer ========== */
.site-footer { background: var(--offwhite); padding: 48px 22px; position: relative; z-index: 1; }
.site-footer__inner { max-width: 980px; margin: 0 auto; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 28px; }
.site-footer__col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 10px; }
.site-footer__col a { display: block; font-size: 14px; color: var(--ink-48); line-height: 2.2; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--blue); }
.site-footer__bottom { border-top: 1px solid var(--hairline); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-footer__bottom p { font-size: 12px; color: var(--ink-48); }
.creator-credit { display: flex; align-items: center; gap: 4px; }
.creator-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 500; transition: opacity 0.2s; }
.creator-link:hover { opacity: 0.7; }

/* ========== Chat FAB ========== */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 52px; height: 52px; border-radius: 9999px;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: rgba(0,102,204,0.25) 0 4px 20px; transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: rgba(0,102,204,0.4) 0 8px 30px; }
.chat-fab:active { transform: scale(0.95); }

/* ========== Responsive ========== */
@media (max-width: 834px) {
  .global-nav__links { display: none; position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); padding: 20px 22px; gap: 14px; border-bottom: 1px solid var(--hairline); }
  .global-nav__links.open { display: flex; }
  .global-nav__hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { flex-direction: column; align-items: center; }
  .step-divider { width: 1px; height: 32px; margin: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .hero-display { font-size: 36px; }
  .display-lg { font-size: 28px; }
  .tile__content { padding: 56px 20px; }
  .hero-tile .tile__content { padding-top: 80px; }
  .stat__number { font-size: 36px; }
  .trust-bar__inner { flex-direction: column; gap: 8px; }
  .btn-action { padding: 11px 24px; font-size: 15px; }
}
