/* ─── Email Cleaner — Shared Styles ─── */

:root {
  --primary: #0066cc;
  --primary-dark: #004999;
  --primary-light: #e6f0ff;
  --success: #107c10;
  --warning: #ff8c00;
  --danger: #d13438;
  --bg: #f7f8fa;
  --card-bg: #fff;
  --text: #1a1a2e;
  --text-muted: #5a5a6e;
  --border: #e2e4e8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ─── Layout ─── */
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section-title { text-align: center; font-size: 2em; margin-bottom: 16px; font-weight: 700; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1.1em; }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 32px;
  width: auto;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.95em; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; text-decoration: none !important; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px !important;
  border-radius: 4px;
}
.lang-toggle img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0,0,0,.3);
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
  color: #fff;
  padding: 90px 24px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9em;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: 3em;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.25em;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-platforms {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.75;
  font-size: 0.9em;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,102,204,0.3); }
.btn-secondary { background: #e8e8e8; color: var(--text); }
.btn-secondary:hover { background: #ddd; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { box-shadow: var(--shadow-lg); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.5); background: transparent; color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ─── Grid ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ─── Cards ─── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card-icon { font-size: 2.2em; margin-bottom: 14px; }
.card h3 { font-size: 1.2em; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95em; }
.card ul { list-style: none; padding: 0; margin-top: 12px; }
.card li { padding: 5px 0; color: var(--text-muted); font-size: 0.93em; }
.card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

.platform-card { text-align: center; }
.platform-card ul { text-align: left; max-width: 300px; margin: 12px auto 0; }

/* ─── Steps ─── */
.steps { max-width: 680px; margin: 40px auto 0; }
.step { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 32px; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15em;
}
.step-content h3 { margin-bottom: 4px; font-size: 1.1em; }
.step-content p { color: var(--text-muted); }

/* ─── Warning ─── */
.warning-box {
  background: #fffcf0;
  border: 1px solid #f0e0a0;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 740px;
  margin: 0 auto;
}
.warning-box h3 { color: #7a5d00; margin-bottom: 14px; font-size: 1.15em; }
.warning-box ul { padding-left: 20px; list-style: disc; }
.warning-box li { margin-bottom: 8px; color: var(--text-muted); }
.warning-box li::before { content: none; }

/* ─── Pricing ─── */
.pricing-grid { align-items: start; }
.price-card { text-align: center; position: relative; }
.price-card-logo { height: 48px; width: auto; margin-bottom: 8px; }
.price-card .price { font-size: 2.6em; font-weight: 800; color: var(--primary); margin: 16px 0 4px; }
.price-card .price span { font-size: 0.35em; color: var(--text-muted); font-weight: 400; }
.price-limit { color: var(--text-muted); font-size: 0.95em; margin-bottom: 20px; }
.price-features { text-align: left; margin-bottom: 28px; padding: 0; }
.price-features li { padding: 8px 0; border-bottom: 1px solid var(--border); list-style: none; color: var(--text-muted); font-size: 0.93em; }
.price-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.price-card .btn { width: 100%; text-align: center; }
.price-card-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.88em; margin-top: 32px; }

/* ─── Footer ─── */
.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9em;
  border-top: 1px solid var(--border);
}
.footer-links { margin-bottom: 14px; }
.footer-links a { color: var(--primary); margin: 0 14px; font-size: 0.95em; }
.footer-small { font-size: 0.82em; margin-top: 6px; opacity: 0.7; }

/* ─── Legal/docs pages ─── */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}
.page-header a { color: rgba(255,255,255,0.8); font-size: 0.9em; }
.page-header h1 { font-size: 1.7em; margin-top: 8px; }
.page-content {
  max-width: 760px;
  margin: 44px auto;
  padding: 0 24px 80px;
}
.page-content h2 {
  margin: 36px 0 14px;
  font-size: 1.3em;
  color: var(--primary);
}
.page-content h3 { margin: 24px 0 8px; font-size: 1.1em; }
.page-content p, .page-content li { margin-bottom: 10px; color: var(--text-muted); }
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.page-content th, .page-content td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 0.95em; }
.page-content th { background: #f4f4f6; color: var(--text); font-weight: 600; }
.page-content td { color: var(--text-muted); }
.updated { font-size: 0.9em; color: #888; margin-bottom: 24px; }
.page-content code { background: #eaeaea; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ─── Alert boxes ─── */
.alert-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.alert-warning p { color: #856404; margin: 0; }
.alert-danger {
  background: #f8d7da;
  border-left: 4px solid var(--danger);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.alert-danger p { color: #721c24; margin: 0; }
.alert-info {
  background: #d1ecf1;
  border-left: 4px solid #0dcaf0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.alert-info p { color: #055160; margin: 0; }

/* ─── TOC (help page) ─── */
.toc {
  background: #fff;
  padding: 22px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.toc h3 { margin: 0 0 12px; font-size: 1.05em; }
.toc ul { list-style: none; padding: 0; }
.toc li { padding: 5px 0; }
.toc a { color: var(--primary); }

.faq-q { font-weight: 600; color: var(--text); margin-top: 18px; }

/* ─── Hamburger menu ─── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    font-size: 1.05em;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
    display: block;
  }
  .nav-links .lang-toggle {
    padding: 12px 0 !important;
    justify-content: flex-start;
    gap: 8px;
  }
  .nav { position: relative; }
  .hero h1 { font-size: 2em; }
  .hero-sub { font-size: 1.05em; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 50px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6em; }
  .section-sub { font-size: 1em; margin-bottom: 32px; }
  .hero-platforms { gap: 12px; font-size: 0.85em; }
  .step { gap: 16px; }
  .warning-box { padding: 20px; }
  .card { padding: 24px; }
  .price-card .price { font-size: 2.2em; }
  .footer-links a { display: block; margin: 8px 0; }
  .page-content { padding: 0 16px 60px; margin: 28px auto; }
  .page-content table { font-size: 0.88em; }
  .page-content th, .page-content td { padding: 8px 10px; }
  .toc { padding: 16px 20px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5em; }
  .hero-sub { font-size: 0.95em; }
  .hero-badge { font-size: 0.8em; padding: 5px 14px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .hero-platforms { flex-direction: column; gap: 6px; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.4em; }
  .card { padding: 20px; }
  .price-card .price { font-size: 1.9em; }
  .step-num { width: 36px; height: 36px; font-size: 1em; }
}
