/* ==========================================================================
   سایت عمومی «همیشه آنلاین» (صفحه‌های مهمان) — جدا از سیستم طراحی پنل
   خواسته‌ی علی (۱۴۰۵/۰۸/۱۸): صفحه‌ی فرود چشم‌نواز با رنگ، تصویرسازی و جلوه‌های حرکتی؛ فقط حالت روشن.
   بی هیچ فایل بیرونی: قلم وزیرمتن از static/fonts، تصویرها SVG درون‌خطی.
   حرکت‌ها با prefers-reduced-motion خاموش می‌شوند. رنگ‌ها فقط از متغیرهای پایین.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #6cc3b0;
  --teal-deep: #1f7a68;
  --teal-ink: #0f4f44;
  --gold: #e3b65e;
  --gold-deep: #a9761c;
  --sky: #93abcb;
  --lilac: #b9a7e0;
  --coral: #e07a5f;
  --ink: #1d2b33;
  --ink-soft: #4a5b66;
  --muted: #6b7c87;
  --line: #e2ebe9;
  --bg: #fbfdfc;
  --mint: #eef8f5;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow-sm: 0 2px 8px rgba(23, 61, 54, 0.06);
  --shadow: 0 12px 32px -12px rgba(23, 61, 54, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(23, 61, 54, 0.35);
  --grad: linear-gradient(120deg, #6cc3b0 0%, #4fb3c8 45%, #93abcb 100%);
  --grad-warm: linear-gradient(120deg, #e3b65e 0%, #e07a5f 100%);
  --r: 20px;
  --r-sm: 12px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0; font-family: Vazirmatn, Tahoma, sans-serif; font-size: 16.5px; line-height: 1.9;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
img, svg { max-width: 100%; }
/* هیچ اسکرول افقی روی گوشی: عنصرهایی که از کنار وارد می‌شوند (data-reveal="right") پیش از ظاهر شدن بیرون می‌زنند؛
   سافاری iOS overflow-x بدنه را نادیده می‌گیرد، پس روی html هم بسته می‌شود (clip برخلاف hidden چسبندگی سرصفحه را نمی‌شکند). */
html { overflow-x: clip; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-ink); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.2px; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { flex: none; }

/* -- نوار پیشرفت پیمایش و سربرگ -------------------------------------------------------------- */
.scroll-bar { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; background: var(--grad-warm);
  transform-origin: right; transform: scaleX(var(--p, 0)); }
.site-head { position: sticky; top: 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.site-head.is-solid { background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo.logo-light { color: #fff; }
.logo img { width: 36px; height: 37px; transition: transform 0.6s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { white-space: nowrap; padding: 8px 12px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; position: relative; }
.site-nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--grad); border-radius: 2px; transform: scaleX(0); transition: transform 0.3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-btn { display: none; margin-inline-start: 8px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: 1.3rem; cursor: pointer; }

/* -- دکمه‌ها ------------------------------------------------------------------------------------ */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px;
  border-radius: 999px; border: 0; font: 700 1rem/1.4 Vazirmatn, Tahoma, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.6s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { color: #0b2f29; background: linear-gradient(110deg, #7fd3c1, #6cc3b0 40%, #e3b65e 100%); background-size: 200% 100%;
  box-shadow: 0 10px 24px -10px rgba(31, 122, 104, 0.7); }
.btn-primary:hover { background-position: 100% 0; color: #0b2f29; box-shadow: 0 16px 30px -12px rgba(31, 122, 104, 0.75); }
.btn-ghost, .btn-secondary { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn-ghost:hover, .btn-secondary:hover { color: var(--teal-ink); box-shadow: inset 0 0 0 1.5px var(--teal), var(--shadow); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 0.92rem; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.65) 50%, transparent 70%);
  transform: translateX(120%); animation: shine 3.6s ease-in-out infinite 1.5s; }
@keyframes shine { 0%, 60% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }

/* -- قهرمان (Hero) ------------------------------------------------------------------------------ */
.hero { position: relative; padding: 48px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: float 16s ease-in-out infinite; }
.blob.b1 { width: 520px; height: 520px; background: #9fe3d3; top: 0; right: -80px; }
.blob.b2 { width: 420px; height: 420px; background: #f6d79a; top: 30%; left: -120px; animation-delay: -5s; animation-duration: 19s; }
.blob.b3 { width: 360px; height: 360px; background: #cfc2f2; bottom: -60px; right: 35%; animation-delay: -9s; animation-duration: 22s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(0.95); } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--glass);
  box-shadow: inset 0 0 0 1px rgba(108, 195, 176, 0.45); font-weight: 700; font-size: 0.9rem; color: var(--teal-ink); backdrop-filter: blur(6px); }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.hero h1 { margin-top: 18px; }
.hero h1 .line { display: block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust .ico { color: var(--teal-deep); }

/* قاب گوشی و گفتگوی متحرک */
.phone-wrap { position: relative; display: grid; place-items: center; perspective: 1200px; }
.phone { position: relative; width: min(340px, 86vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #15232b;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c3d47; transform: rotateY(-8deg) rotateX(4deg); transition: transform 0.8s var(--ease); animation: bob 7s ease-in-out infinite; }
.phone:hover { transform: rotateY(0) rotateX(0); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #f2faf8, #fff 40%); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 26px 16px 12px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.phone-top .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; }
.phone-top strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.phone-top small { color: #2fbf71; font-size: 0.75rem; }
.phone-chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; overflow: hidden; justify-content: flex-end; }
.msg-b { max-width: 82%; padding: 8px 12px; border-radius: 16px; font-size: 0.86rem; line-height: 1.75; box-shadow: var(--shadow-sm);
  animation: pop 0.45s var(--ease) both; }
.msg-b small { display: block; font-size: 0.7rem; opacity: 0.7; }
.msg-b.in { align-self: flex-start; background: #fff; border-end-start-radius: 4px; }
.msg-b.out { align-self: flex-end; background: linear-gradient(135deg, #d9f3ec, #c6ece2); border-end-end-radius: 4px; }
.msg-b.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg-b.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-deep); opacity: 0.4; animation: blink 1.2s infinite; }
.msg-b.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg-b.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow); font-weight: 700; font-size: 0.85rem; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.float-chip .ico { color: var(--teal-deep); }
.float-chip.c1 { top: 12%; inset-inline-start: -4%; animation-delay: -2s; }
.float-chip.c2 { bottom: 16%; inset-inline-end: -6%; animation-delay: -4s; }
.float-chip.c2 .ico { color: var(--gold-deep); }

/* نوار پیام‌رسان‌ها */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.chip i { width: 12px; height: 12px; border-radius: 4px; }

/* -- بخش‌ها --------------------------------------------------------------------------------------- */
.section { padding: 88px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, var(--mint), #fff); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { display: inline-block; margin-bottom: 8px; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.5px; color: var(--gold-deep); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* شمارنده‌ها */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -56px; position: relative; z-index: 2; }
.stat { padding: 22px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* کارت‌ها */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 26px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease), translate 0.35s var(--ease), box-shadow 0.35s var(--ease); overflow: hidden; }
.card > :last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
.card.lift:hover, a.card:hover { translate: 0 -6px; box-shadow: var(--shadow), inset 0 0 0 1px rgba(108, 195, 176, 0.5); }
.card.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 195, 176, 0.18), transparent 45%); }
.card.glow:hover::before { opacity: 1; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: #fff;
  background: var(--grad); box-shadow: 0 10px 20px -10px rgba(31, 122, 104, 0.8); }
.card-icon.warm { background: var(--grad-warm); box-shadow: 0 10px 20px -10px rgba(169, 118, 28, 0.8); }
.card-icon.cool { background: linear-gradient(135deg, #93abcb, #b9a7e0); }
.card p { color: var(--ink-soft); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 8px; }
.more::after { content: "←"; transition: transform 0.25s var(--ease); }
a.card:hover .more::after, .more:hover::after { transform: translateX(-4px); }

/* مسیر پیام (قدم‌ها) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--lilac)); transform-origin: right; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-size: 1.6rem; font-weight: 900; color: var(--teal-ink); background: #fff; box-shadow: var(--shadow), inset 0 0 0 3px var(--teal); }
.step p { color: var(--ink-soft); }

/* مسیر پله‌ای پاسخ */
.ladder { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.rung { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.rung b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--grad); }
.rung:nth-child(2) b { background: linear-gradient(135deg, #4fb3c8, #93abcb); }
.rung:nth-child(3) b { background: linear-gradient(135deg, #93abcb, #b9a7e0); }
.rung:nth-child(4) b { background: var(--grad-warm); }
.rung:nth-child(5) b { background: linear-gradient(135deg, #e07a5f, #b4533f); }

/* پلن‌ها */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
a.plan { text-decoration: none; color: inherit; }
.plan { display: flex; flex-direction: column; padding: 28px 22px; border-radius: 24px; background: #fff; position: relative;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: transform 0.8s var(--ease), opacity 0.8s var(--ease), translate 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.plan:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }
.plan .medal { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 12px; box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12), 0 6px 14px -6px rgba(0,0,0,0.35); }
.medal.m0 { background: radial-gradient(circle at 30% 30%, #f3c9a0, #b8763f 70%); }
.medal.m1 { background: radial-gradient(circle at 30% 30%, #ffffff, #a7b4bd 70%); }
.medal.m2 { background: radial-gradient(circle at 30% 30%, #fff1c2, #d9a52f 70%); }
.medal.m3 { background: radial-gradient(circle at 30% 30%, #ffffff, #8fd6f0 45%, #b9a7e0 80%); }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .price { font-size: 2.1rem; font-weight: 900; line-height: 1.3; }
.plan .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }
.plan li .ico { color: var(--teal-deep); margin-top: 3px; }
.plan .btn { width: 100%; }
.plan-featured { background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--a, 0deg), #6cc3b0, #e3b65e, #b9a7e0, #6cc3b0) border-box;
  border: 2px solid transparent; box-shadow: var(--shadow-lg); animation: spin-border 6s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --a: 360deg; } }
.ribbon { position: absolute; top: -13px; inset-inline-start: 20px; padding: 4px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
  background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-sm); }
.ribbon.free { background: linear-gradient(120deg, #2fbf71, #6cc3b0); inset-inline-start: auto; inset-inline-end: 20px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; font-size: 0.95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child { text-align: start; font-weight: 700; }
.compare thead th { background: var(--mint); font-weight: 800; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover { background: #f7fcfb; }
.table-scroll { overflow-x: auto; border-radius: var(--r); }

/* پرسش‌ها */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow), inset 0 0 0 1px rgba(108, 195, 176, 0.5); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal-ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); animation: pop 0.4s var(--ease); }

/* نوار فراخوان */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: 56px 40px; text-align: center; color: #0b2f29;
  background: linear-gradient(120deg, #9fe3d3, #6cc3b0 35%, #e3b65e 70%, #f2a07b); background-size: 300% 300%; animation: drift 12s ease infinite; box-shadow: var(--shadow-lg); }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta p { font-size: 1.1rem; opacity: 0.9; }
.cta .btn-primary { background: #0f2c34; color: #fff; }
.cta .btn-primary:hover { color: #fff; background: #183f49; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25); }
.cta::before { width: 220px; height: 220px; top: -80px; inset-inline-start: -60px; }
.cta::after { width: 140px; height: 140px; bottom: -50px; inset-inline-end: 8%; }
@keyframes drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* صفحه‌های داخلی */
.page-hero { position: relative; padding: 64px 0 40px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--mint), var(--bg)); }
.page-hero .blob { opacity: 0.35; }
.page-hero h1 { margin-bottom: 0.3em; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-inline-start: 4px solid var(--teal); background: var(--mint); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 900;
  color: #fff; background: var(--grad); margin-top: 4px; }
.meta { color: var(--muted); font-size: 0.9rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--teal-ink); font-size: 0.85rem; font-weight: 600; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs-row a { padding: 6px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.tabs-row a[aria-current="page"] { background: var(--grad); color: #0b2f29; box-shadow: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.illus { width: 100%; height: auto; }

/* فرم‌ها */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea, input[type="search"] { width: 100%; min-height: 50px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  font: inherit; color: var(--ink); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus, input[type="search"]:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(108, 195, 176, 0.22); }
.field .error, .error { color: #b4533f; font-size: 0.9rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline-search { display: flex; gap: 8px; }
.msg { padding: 12px 18px; border-radius: 14px; background: var(--mint); margin: 12px 0; }
.msg-success { background: #e3f6ec; color: #145c3a; }
.msg-error { background: #fbe7e2; color: #8a3423; }
.pager { margin-top: 32px; justify-content: center; }

/* راهنمای «؟» (static/app/help.js) */
.help { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-inline: 4px; padding: 0; vertical-align: middle;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: var(--teal-deep); font: 800 12px/1 Vazirmatn, Tahoma, sans-serif; cursor: help; position: relative; }
.help::before { content: ""; position: absolute; inset: -10px; }
#help-pop { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 12px; background: #15232b; color: #fff;
  font: 0.88rem/1.8 Vazirmatn, Tahoma, sans-serif; white-space: pre-line; box-shadow: var(--shadow-lg); }
#help-pop[hidden] { display: none; }
.toast { position: fixed; inset-inline: 16px; bottom: 20px; z-index: 70; max-width: 420px; margin-inline: auto; padding: 12px 18px; border-radius: 14px; background: #15232b; color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.toast[hidden] { display: none; }

/* پانویس */
.site-foot { margin-top: 40px; padding: 64px 0 28px; color: #c8d6dc; background: #13232b; position: relative; overflow: hidden; }
.site-foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--lilac)); }
.site-foot a { color: #e6f0ee; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid strong { display: block; color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.88rem; color: #8ea3ad; }

/* -- ظاهر شدن هنگام پیمایش (static/site/site.js) ------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s), translate 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero .rise, .page-hero .rise { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* -- گوشی و تبلت ------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 12px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav-btn { display: grid; place-items: center; }
  .head-cta { margin-inline-start: auto; }
  .site-nav { position: fixed; inset: 72px 12px auto; flex-direction: column; gap: 2px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(0.98); pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 12px 16px; }
}
@media (max-width: 640px) {
  .head-cta { display: none; }
  .nav-btn { margin-inline-start: auto; }
  body.site { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats { margin-top: -40px; }
  .cta { padding: 40px 22px; border-radius: 24px; }
  .float-chip { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* مقایسه با راه‌های دیگر در صفحه‌ی اصلی (public/home.html، catalog.COMPARE_ROWS) */
.compare td.ours { background: color-mix(in srgb, var(--mint) 55%, #fff); font-weight: 700; }
.compare .yes { color: #2f9e6e; font-weight: 900; font-size: 1.1rem; }
.compare .no { color: #b4533f; font-weight: 900; font-size: 1.1rem; }

/* قیمت پیش از تخفیف خط‌خورده و برچسب تخفیف روی کارت پلن (core/pricing.Tier.list_price) */
.price-was { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 2px; color: #7b8a91; font-size: 0.95rem; }
.price-was s { text-decoration-thickness: 2px; text-decoration-color: #b4533f; }
.price-was .off { background: #b4533f; color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 0.78rem; font-weight: 800; }

/* صفحه‌ی صنف (public/industry.html، ۱۴۰۵/۰۹/۰۹): کارت‌های درد و ابر صنف‌های دیگر */
.pain-list { display: grid; gap: 12px; }
.card.pain { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.card.pain p { margin: 0; color: var(--ink-soft); }
.pain-mark { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; color: var(--gold-deep);
  background: linear-gradient(135deg, rgba(227, 182, 94, 0.28), rgba(224, 122, 95, 0.18)); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag { padding: 9px 18px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s; }
.tag:hover { translate: 0 -3px; color: var(--teal-deep); box-shadow: var(--shadow), inset 0 0 0 1px rgba(108, 195, 176, 0.5); }
