/* Mailr Landing Page */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Sans:wght@400;500;600&display=swap');

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f6f3;
  --bg-dark: #1a1a1a;
  --ink: #111111;
  --ink-muted: #6b6b6b;
  --accent: #e63329;
  --accent-hover: #c9271f;
  --surface: #ffffff;
  --border: #e2e0db;
  --radius: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Lead Form — Inline */
.lead-form-wrap {
  max-width: 440px;
  margin: 0 auto;
}
.lead-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lead-form input {
  flex: 1;
  min-width: 140px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form input::placeholder { color: #aaa; }
.lead-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.1);
}
.lead-form .btn {
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.lead-form .btn:hover { background: var(--accent-hover); }
.lead-form .btn:active { transform: scale(0.98); }
.lead-form .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.lead-form .btn.loading {
  position: relative;
  color: transparent;
}
.lead-form .btn.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: #dc2626;
  font-size: 0.875rem;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  padding: 20px 24px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  color: #166534;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--surface);
}
.features-header {
  text-align: center;
  margin-bottom: 56px;
}
.features-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.features-header p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: #ccc; }
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.125rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pricing */
.pricing {
  padding: 80px 0;
}
.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pricing-header p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}
.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 20px;
  text-align: center;
}
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-amount sup {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}
.pricing-amount sub {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.6;
}
.pricing-card ul {
  list-style: none;
  margin: 28px 0;
  text-align: left;
}
.pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.pricing-cta {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.pricing-cta:hover { background: var(--accent-hover); }

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .lead-form { flex-direction: column; }
  .lead-form input, .lead-form .btn { width: 100%; }
  .pricing-card { padding: 28px; }
}