/* لندینگ کمپین — موبایل‌اول · رنگ‌های اتدپلاس (index.php) */
:root {
  --ink: #091b2b;
  --navy: #0d2740;
  --navy-2: #123653;
  --text: #1c3246;
  --muted: #687b8d;
  --line: #dce7ec;
  --surface: #f7fafb;
  --white: #fff;
  --mint: #62d5ae;
  --mint-deep: #0e9d75;
  --mint-pale: #e8fbf4;
  --gold: #ffbf45;
  --gold-pale: #fff5dc;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(13, 39, 64, 0.1);
  --font: "Vazirmatn", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.ecl-page {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.75;
  min-height: 100vh;
  padding-bottom: calc(1rem + var(--safe-bottom));
}

.ecl-wrap {
  width: min(680px, calc(100% - 1.5rem));
  margin-inline: auto;
}

/* ——— هدر ——— */
.ecl-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.ecl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 0.5rem;
  padding-block: 0.35rem;
}
.ecl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 900;
  color: var(--navy);
  font-size: 1rem;
  text-decoration: none;
}
.ecl-brand-mark {
  width: 30px;
  height: 30px;
  background: var(--mint);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.85rem;
  transform: rotate(-6deg);
}
.ecl-brand-mark i { transform: rotate(6deg); }
.ecl-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint-deep);
  background: var(--mint-pale);
  border: 1px solid rgba(14, 157, 117, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ——— هیرو ——— */
.ecl-hero {
  background: var(--ink);
  color: var(--white);
  padding: 1rem 0 0;
  position: relative;
  overflow: hidden;
}
.ecl-hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 213, 174, 0.28), transparent 68%);
  pointer-events: none;
}
.ecl-hero-visual {
  position: relative;
  margin-bottom: 1rem;
}
.ecl-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.ecl-hero-text {
  position: relative;
  padding: 0 0 1.25rem;
}
.ecl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #b8f3dc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(178, 239, 220, 0.22);
  border-radius: 999px;
}
.ecl-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.ecl-lead {
  margin: 0.75rem 0 0;
  color: #c5d4de;
  font-size: 0.95rem;
  line-height: 1.85;
}

/* ——— دکمه‌ها ——— */
.ecl-actions-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0 1.1rem;
  position: sticky;
  top: 52px;
  z-index: 15;
  box-shadow: 0 4px 20px rgba(13, 39, 64, 0.06);
}
.ecl-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ecl-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ecl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 13px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.ecl-btn:active { transform: scale(0.98); }
.ecl-btn-primary {
  width: 100%;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 8px 22px rgba(98, 213, 174, 0.35);
  font-size: 1rem;
}
.ecl-btn-soft {
  background: var(--mint-pale);
  color: var(--mint-deep);
  border: 1px solid rgba(14, 157, 117, 0.15);
}
.ecl-btn-gold {
  background: var(--gold-pale);
  color: #9a6a0f;
  border: 1px solid rgba(255, 191, 69, 0.35);
}
.ecl-btn-full { width: 100%; margin-top: 0.75rem; }
.ecl-share-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mint-deep);
  text-align: center;
}

/* ——— نقاط ——— */
.ecl-points {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem 0 2rem;
}
.ecl-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}
.ecl-point i {
  color: var(--mint-deep);
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.ecl-point strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}
.ecl-point span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.ecl-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  background: var(--white);
}

/* ——— مودال ——— */
.ecl-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(9, 27, 43, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.ecl-modal[hidden] { display: none; }
.ecl-modal-card {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 1.1rem 1.1rem calc(1.25rem + var(--safe-bottom));
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}
.ecl-modal-close {
  position: absolute;
  left: 0.75rem;
  top: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.ecl-modal h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--navy);
}
.ecl-modal-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}
.ecl-modal label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0.55rem 0 0.2rem;
}
.ecl-modal input,
.ecl-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 11px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 16px; /* جلوگیری از zoom در iOS */
}
.ecl-form-msg { min-height: 1.2rem; font-size: 0.82rem; margin: 0.4rem 0 0; }
.ecl-form-msg.ok { color: var(--mint-deep); }
.ecl-form-msg.err { color: #e85e67; }

@media (min-width: 640px) {
  .ecl-wrap { width: min(720px, calc(100% - 2rem)); }
  .ecl-hero { padding-top: 1.5rem; }
  .ecl-modal {
    align-items: center;
    padding: 1rem;
  }
  .ecl-modal-card {
    border-radius: var(--radius);
    max-height: 85vh;
  }
}
