/* PagePilot — warm editorial theme */

:root {
  --bg: #F7F3EC;
  --bg-warm: #EFE9DD;
  --fg: #1C1B18;
  --fg-muted: #6B6760;
  --accent: #E86F2D;
  --accent-dark: #C85A22;
  --surface: #ffffff;
  --border: #E0D9CF;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--fg); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 48px 72px;
  min-height: calc(88vh - 73px);
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 111, 45, 0.1);
  border: 1px solid rgba(232, 111, 45, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 14px;
  color: var(--fg-muted);
}

/* Browser Mock */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browser-mock {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 40px rgba(28, 27, 24, 0.1), 0 1px 4px rgba(28, 27, 24, 0.06);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
}

.browser-bar {
  background: var(--bg-warm);
  padding: 12px 16px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.mock-content {
  padding: 24px;
}

.mock-headline {
  height: 28px;
  background: var(--fg);
  border-radius: 5px;
  width: 75%;
  margin-bottom: 12px;
}

.mock-sub {
  height: 14px;
  background: var(--border);
  border-radius: 4px;
  width: 90%;
  margin-bottom: 24px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.mock-card {
  height: 70px;
  background: var(--bg-warm);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.mock-cta {
  display: flex;
  justify-content: center;
}

.mock-btn {
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  width: 140px;
}

.agent-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 14px;
  background: rgba(232, 111, 45, 0.07);
  border: 1px solid rgba(232, 111, 45, 0.15);
  padding: 6px 12px;
  border-radius: 100px;
}

/* STATS */
.stats-bar {
  background: var(--fg);
  padding: 0;
}

.stats-inner {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.stat {
  flex: 1;
  padding: 28px 32px;
  text-align: center;
}

.stat-sep {
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* HOW */
.how {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 500px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.step {}

.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* STORY */
.story {
  background: var(--bg-warm);
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.2;
}

.story-text p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.story-comparison {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comparison-item {
  background: var(--surface);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border);
}

.comparison-item.old .comparison-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comparison-item.new .comparison-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 111, 45, 0.2);
}

.comparison-item ul {
  list-style: none;
}

.comparison-item li {
  font-size: 15px;
  color: var(--fg-muted);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.comparison-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.comparison-item.new li::before {
  background: var(--accent);
}

/* BENEFITS */
.benefits {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 111, 45, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.benefit p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* CLOSING */
.closing {
  background: var(--fg);
  padding: 100px 48px;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
}

.closing p {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* FOOTER */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
}

.footer-meta {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-header { padding: 18px 24px; }
  .site-nav { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 24px 48px;
    gap: 40px;
    min-height: auto;
  }

  .hero-visual { order: -1; }

  .stats-inner {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 45%;
    padding: 20px 16px;
  }

  .stat-sep { display: none; }

  .how, .story, .benefits, .closing {
    padding: 64px 24px;
  }

  .steps, .story-inner, .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .hero-lede { font-size: 16px; }
  .benefits-grid { grid-template-columns: 1fr; }
}