/* ============================================================
   MailCraft — Marketing / Public Site Stylesheet
   ============================================================ */

:root {
  --primary:      #1a56db;
  --primary-dark: #1341b0;
  --primary-light:#e8f0fe;
  --text-dark:    #111827;
  --text-mid:     #4b5563;
  --text-light:   #9ca3af;
  --border:       #e5e7eb;
  --bg:           #f9fafb;
  --white:        #ffffff;
  --radius:       8px;
  --radius-lg:    14px;
  --font:         'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  transition: all .18s; white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline  { background: transparent; border-color: var(--border); color: var(--text-dark); }
.btn-outline:hover  { border-color: var(--primary); color: var(--primary); }
.btn-lg       { padding: 14px 30px; font-size: 1rem; }
.btn-sm       { padding: 6px 14px; font-size: .82rem; }
.btn-block    { width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: .84rem; font-weight: 500; margin-bottom: 6px; color: var(--text-mid); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; font-family: var(--font); color: var(--text-dark);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Alerts ─────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .88rem; border-left: 4px solid transparent; }
.alert-success { background: #d1fae5; border-color: #0f9d58; color: #065f46; }
.alert-danger  { background: #fee2e2; border-color: #dc2626; color: #991b1b; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.header-inner {
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a {
  text-decoration: none; color: var(--text-mid);
  font-size: .9rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.hero-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px;
  margin-bottom: 20px; letter-spacing: .04em; text-transform: uppercase;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 20px;
}
.hero-text p { font-size: 1.1rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Email mockup */
.email-mockup {
  background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.12);
  overflow: hidden; border: 1px solid var(--border);
}
.mockup-bar { background: #f3f4f6; padding: 10px 14px; display: flex; gap: 6px; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.mockup-bar span:first-child { background: #f87171; }
.mockup-bar span:nth-child(2) { background: #fbbf24; }
.mockup-bar span:nth-child(3) { background: #34d399; }
.mockup-header { height: 56px; background: var(--primary); margin: 12px; border-radius: 6px; }
.mockup-body { padding: 16px; }
.mockup-line { height: 10px; background: #e5e7eb; border-radius: 99px; margin-bottom: 10px; }
.mockup-line.w-80 { width: 80%; }
.mockup-line.w-60 { width: 60%; }
.mockup-line.w-90 { width: 90%; }
.mockup-line.w-70 { width: 70%; }
.mockup-line.w-50 { width: 50%; }
.mockup-img { height: 100px; background: linear-gradient(135deg,#e8f0fe,#c7d7f9); border-radius: 6px; margin-bottom: 12px; }
.mockup-btn { width: 120px; height: 32px; background: var(--primary); border-radius: 6px; margin-top: 8px; }
.mockup-footer { height: 36px; background: #f3f4f6; margin: 0 12px 12px; border-radius: 6px; }

/* ── Section header ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.section-header p  { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

/* ── Features ────────────────────────────────────────────── */
.features { padding: 96px 0; background: var(--bg); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: .9rem; color: var(--text-mid); line-height: 1.65; }

/* ── How it works ────────────────────────────────────────── */
.how-it-works { padding: 96px 0; }
.steps {
  display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; justify-content: center;
}
.step { flex: 1; min-width: 180px; max-width: 220px; text-align: center; padding: 0 16px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: .85rem; color: var(--text-mid); line-height: 1.6; }
.step-arrow { font-size: 1.8rem; color: var(--border); padding-top: 14px; align-self: flex-start; }
@media (max-width: 700px) { .step-arrow { display: none; } .steps { gap: 32px; } }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { padding: 96px 0; background: var(--bg); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto;
}
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  position: relative; transition: box-shadow .2s;
}
.pricing-card.featured {
  border-color: var(--primary); box-shadow: 0 8px 30px rgba(26,86,219,.15);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 14px; border-radius: 99px;
  white-space: nowrap; letter-spacing: .04em;
}
.plan-name  { font-size: 1rem; font-weight: 700; color: var(--text-mid); margin-bottom: 8px; }
.plan-price { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.plan-desc  { font-size: .85rem; color: var(--text-light); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { font-size: .88rem; color: var(--text-mid); padding: 6px 0; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border-bottom: none; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-section { padding: 96px 0; }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
  max-width: 900px; margin: 0 auto;
}
@media (max-width: 768px) { .contact-inner { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.contact-info p  { font-size: .92rem; color: var(--text-mid); line-height: 1.7; }
.contact-info a  { color: var(--primary); text-decoration: none; }
.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }

/* ── Site footer ─────────────────────────────────────────── */
.site-footer { background: var(--text-dark); color: #9ca3af; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: .95rem; }
.site-footer .btn-outline { border-color: #374151; color: #9ca3af; }
.site-footer .btn-outline:hover { border-color: #fff; color: #fff; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding: 60px 0 48px; }
  .features, .how-it-works, .pricing, .contact-section { padding: 64px 0; }
}
