/* ============================================================
   Marmoris — گزارش پیشرفت پروژه | WebNite
   برند: مرموریس — رنگ‌ها و فونت وزیرمتن (Vazirmatn)
   ============================================================ */

/* ---------- فونت وزیرمتن (نسخهٔ محلی) ---------- */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- متغیرهای طراحی ---------- */
:root {
  --cream:      #FAF9E8;
  --cream-2:    #F5F0DA;
  --panel:      #FFFEF8;
  --pink:       #B23D66;
  --pink-deep:  #8F2C52;
  --wine:       #5E1E3C;
  --wine-deep:  #46152D;
  --gold:       #B2872F;
  --gold-soft:  #E8D9A8;
  --ink:        #39222E;
  --ink-2:      #71505F;
  --ink-3:      #A18894;
  --line:       rgba(178, 61, 102, .16);
  --line-soft:  rgba(178, 61, 102, .09);
  --shadow-card: 0 26px 60px -34px rgba(94, 30, 60, .35);
  --radius-lg: 30px;
  --radius-md: 22px;
  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
strong, b { font-weight: 700; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-narrow { width: min(900px, 92vw); }

.txt-accent {
  color: var(--pink-deep);
  background: linear-gradient(120deg, var(--pink-deep), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .72rem 1.5rem;
  font-size: .98rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #FFF9F4;
  box-shadow: 0 14px 30px -12px rgba(178, 61, 102, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(178, 61, 102, .75); }

.btn-ghost {
  background: rgba(255, 255, 255, .6);
  color: var(--pink-deep);
  border-color: rgba(178, 61, 102, .35);
}
.btn-ghost:hover { background: #fff; border-color: var(--pink); transform: translateY(-2px); }

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 232, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(250, 249, 232, .92);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -22px rgba(94, 30, 60, .4);
}

.header-inner { display: flex; align-items: center; gap: 1.4rem; padding-block: .7rem; }

.brand img { height: 46px; width: auto; }

.nav { margin-inline: auto; display: flex; gap: .2rem; }
.nav a {
  position: relative;
  padding: .5rem .9rem;
  font-size: .95rem;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: .9rem;
  bottom: .25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--pink-deep); }
.nav a:hover::after { transform: scaleX(1); }

.btn-print { padding: .55rem 1.2rem; font-size: .9rem; background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-print:hover { color: var(--pink-deep); border-color: var(--pink); background: #fff; }

/* ---------- بخش‌ها (چیدمان کلی) ---------- */
.section { padding: clamp(4.2rem, 9vw, 7.5rem) 0; }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.2rem, 5vw, 3.6rem); }
.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(178, 61, 102, .35);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, .6);
}
.sec-head h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.5;
}
.sec-sub { margin-top: .7rem; color: var(--ink-2); font-size: 1.02rem; }

/* ---------- افکت ورود هنگام اسکرول ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js .reveal[data-d="1"] { transition-delay: .09s; }
html.js .reveal[data-d="2"] { transition-delay: .18s; }
html.js .reveal[data-d="3"] { transition-delay: .27s; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ۱) هیرو
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 10vw, 8rem);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(52% 46% at 84% 12%, rgba(178, 61, 102, .13), transparent 70%),
    radial-gradient(46% 40% at 12% 30%, rgba(178, 178, 47, .10), transparent 70%),
    radial-gradient(70% 60% at 50% 118%, rgba(178, 61, 102, .10), transparent 70%);
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(178, 61, 102, .16);
}
.hero-bg::before { width: 420px; height: 420px; top: -180px; inset-inline-start: -140px; }
.hero-bg::after { width: 320px; height: 320px; bottom: -140px; inset-inline-end: -90px; border-color: rgba(178, 178, 47, .18); }

.hero-inner { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line-soft);
  padding: .42rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}
.kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(178, 61, 102, .18);
}

.hero-logo { margin: 0 auto 1.6rem; max-width: min(320px, 70vw); }

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.5px;
}

.hero-sub {
  max-width: 640px;
  margin: 1.2rem auto 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
}
.hero-sub strong { color: var(--ink); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin: 2rem auto 0;
  max-width: 820px;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: .42rem 1.05rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.hero-meta svg { width: 17px; height: 17px; color: var(--pink); flex: none; }
.hero-meta b { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.3rem; }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-cue span {
  display: block;
  width: 1.5px; height: 44px;
  background: linear-gradient(var(--pink), transparent);
  border-radius: 2px;
  animation: cueDrop 2s ease-in-out infinite;
}
@keyframes cueDrop { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   ۲) مقایسهٔ قبل و بعد
   ============================================================ */
.compare-section {
  background: linear-gradient(180deg, var(--cream) 0%, #F6ECE5 55%, var(--cream-2) 100%);
  border-block: 1px solid var(--line-soft);
}

.cmp-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.6vw, 2.2rem);
  box-shadow: var(--shadow-card);
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.cmp-card:last-child { margin-bottom: 0; }

.cmp-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.2rem;
  margin-bottom: 1.3rem;
}
.cmp-card-head h3 { font-size: 1.32rem; font-weight: 700; }
.cmp-tags { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  font-size: .78rem;
  font-weight: 600;
  padding: .28rem .85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.tag-old { background: #F1EBE4; color: #8B7A6E; border-color: #E5DBD0; }
.tag-new { background: rgba(178, 61, 102, .12); color: var(--pink-deep); border-color: rgba(178, 61, 102, .28); }

/* ویجت مقایسه */
.cmp {
  --x: 45%;
  direction: ltr;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 30px -18px rgba(94,30,60,.4);
  background: #efe9e4;
  outline: none;
}
.cmp-stage {
  position: relative;
  aspect-ratio: 17 / 10.5;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.cmp-admin .cmp-stage { aspect-ratio: 16 / 9.6; }

.cmp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
}
.cmp-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--x));
  will-change: clip-path;
}

.cmp-tag {
  position: absolute;
  top: 14px;
  direction: rtl;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 999px;
  z-index: 6;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
}
.cmp-tag-before { left: 14px; background: rgba(64, 48, 56, .62); color: #F4EDE7; }
.cmp-tag-after  { right: 14px; background: rgba(178, 61, 102, .88); color: #FFF6F2; }

.cmp-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--x);
  width: 2.5px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 .5px rgba(94, 30, 60, .25), 0 0 18px rgba(0,0,0,.35);
  z-index: 5;
  pointer-events: none;
}

.cmp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--x);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 7;
  pointer-events: none;
}
.cmp-knob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 8px 22px -6px rgba(94, 30, 60, .55), 0 0 0 2px rgba(255,255,255,.7);
}
.cmp-knob svg { width: 24px; height: 24px; }

.cmp-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  direction: rtl;
  z-index: 6;
  background: rgba(64, 48, 56, .55);
  color: #FBF4EE;
  font-size: .82rem;
  padding: .38rem 1rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity .45s, transform .45s;
  white-space: nowrap;
}
.cmp.used .cmp-hint, .cmp.is-dragging .cmp-hint { opacity: 0; transform: translate(-50%, 8px); }

.cmp:focus-visible { box-shadow: 0 0 0 3px rgba(178, 61, 102, .55), 0 12px 30px -18px rgba(94,30,60,.4); }

/* کپشن زیر مقایسه */
.cmp-caption { margin-top: 1.15rem; color: var(--ink-2); font-size: .98rem; }
.cmp-caption b { color: var(--ink); }
.cmp-caption b:first-child { color: var(--pink-deep); }

.cmp-full {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  font-size: .83rem;
  color: var(--ink-3);
}
.cmp-full a { color: var(--pink-deep); border-bottom: 1px dashed rgba(178,61,102,.5); transition: border-color .2s; }
.cmp-full a:hover { border-bottom-style: solid; }

/* ============================================================
   ۳) عملکرد سئو — داده‌های واقعی GSC (قبل/بعد)
   ============================================================ */
.seo-section { background: #FDFBF0; }

.seo-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.3rem);
  max-width: 1080px;
  margin-inline: auto;
}

/* --- کارت‌های شاخص قبل/بعد --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 1.8vw, 1.25rem);
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.1rem .9rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-width: 0;
}

.kpi-head { display: flex; align-items: center; gap: .55rem; }
.kpi-ico {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(178, 61, 102, .1);
  color: var(--pink-deep);
}
.kpi-ico svg { width: 18px; height: 18px; }
.kpi-head h3 { font-size: .88rem; font-weight: 800; line-height: 1.5; color: var(--ink-2); min-width: 0; }
.kpi-en { display: block; font-size: .62rem; font-weight: 500; color: var(--ink-3); letter-spacing: .6px; direction: ltr; text-align: right; }

.kpi-delta {
  margin-inline-start: auto;
  flex: none;
  font-size: .74rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .22rem .6rem;
  white-space: nowrap;
  background: rgba(178, 61, 102, .12);
  color: var(--pink-deep);
  border: 1px solid rgba(178, 61, 102, .22);
}

.kpi-ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: .35rem;
}
.kpi-side { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.kpi-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  color: var(--ink-3);
}
.kpi-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #B6A6AE;
  flex: none;
}
.kpi-after .kpi-tag::before { background: var(--pink); }
.kpi-num {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
  color: #A08F98;
  white-space: nowrap;
}
.kpi-after .kpi-num {
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  color: var(--pink-deep);
}
.kpi-arrow { width: 20px; height: 20px; color: #C9B7C0; margin-bottom: .5rem; }
.kpi-meta {
  margin-top: auto;
  font-size: .7rem;
  line-height: 1.9;
  color: var(--ink-3);
  border-top: 1px dashed var(--line-soft);
  padding-top: .55rem;
}

/* --- نمودار روند --- */
.chart-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.6vw, 1.8rem) clamp(.9rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-card);
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.4rem;
  margin-bottom: .6rem;
  padding-inline: .3rem;
}
.chart-head h3 { font-size: 1.08rem; font-weight: 800; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .8rem; color: var(--ink-2); }
.leg { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.leg i { width: 11px; height: 11px; border-radius: 3.5px; flex: none; }
.leg-before i { background: #B7A6AF; }
.leg-after i { background: var(--pink); }

.chart-stage { width: 100%; direction: ltr; }
.chart-stage svg { display: block; }

.chart-caption {
  font-size: .88rem;
  line-height: 2;
  color: var(--ink-2);
  background: rgba(178, 61, 102, .06);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: .65rem 1rem;
  margin: 1rem .3rem 0;
}
.chart-caption b { color: var(--pink-deep); }

/* --- جدول عبارت‌های جستجو --- */
.seo-sub-title { text-align: center; margin: .4rem 0 0; }
.seo-sub-title h3 { font-size: 1.28rem; font-weight: 800; }
.seo-sub-title p { margin: .35rem auto 0; max-width: 640px; color: var(--ink-2); font-size: .92rem; }

.queries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2.2vw, 1.5rem);
  align-items: start;
}
.query-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.query-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.qdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.qb-old .qdot { background: #B7A6AF; }
.qb-new .qdot { background: var(--pink); }
.query-head h4 { font-size: .95rem; font-weight: 800; min-width: 0; }
.qsub {
  margin-inline-start: auto;
  flex: none;
  font-size: .68rem;
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: .12rem .6rem;
  white-space: nowrap;
}

.query-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.query-table th {
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-3);
  padding: .55rem 1.1rem;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(178, 61, 102, .03);
}
.query-table td {
  padding: .45rem 1.1rem;
  text-align: right;
  border-bottom: 1px dashed var(--line-soft);
  white-space: nowrap;
}
.query-table tbody tr:last-child td { border-bottom: 0; }
.query-q { font-weight: 700; color: var(--ink); }
.query-c { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink-2); }
.qb-new .query-c { color: var(--pink-deep); }
.query-r {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  direction: ltr;
  font-size: .82rem;
}
.query-r.rank-good { color: var(--pink-deep); font-weight: 800; }

/* --- حضور مرموریس در نتایج گوگل --- */
.presence-title { margin-top: .8rem; }
.presence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 2.2vw, 1.5rem);
  align-items: stretch;
}
.presence-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.presence-shot {
  position: relative;
  background: linear-gradient(160deg, #F4EFE0, #EFE7D2);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(.8rem, 2vw, 1.2rem);
}
.presence-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 34px -22px rgba(60, 30, 45, .5);
}
.presence-tag {
  position: absolute;
  top: clamp(.8rem, 2vw, 1.2rem);
  inset-inline-start: clamp(.8rem, 2vw, 1.2rem);
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(94, 30, 60, .82);
  border-radius: 999px;
  padding: .22rem .8rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.presence-cap {
  padding: .95rem 1.2rem 1.05rem;
  font-size: .88rem;
  line-height: 2;
  color: var(--ink-2);
  flex: 1;
}
.presence-cap b { color: var(--pink-deep); }
.presence-cap > b:first-child {
  display: block;
  font-size: .98rem;
  color: var(--ink);
  margin-bottom: .15rem;
}

/* --- یادداشت منبع --- */
.seo-source {
  text-align: center;
  font-size: .76rem;
  line-height: 2;
  color: var(--ink-3);
  background: rgba(255, 255, 255, .55);
  border: 1px dashed rgba(178, 61, 102, .3);
  border-radius: 14px;
  padding: .7rem 1.2rem;
}
.seo-source b { color: var(--ink-2); font-weight: 700; }

@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .queries-grid { grid-template-columns: 1fr; }
  .presence-grid { grid-template-columns: 1fr; }
  .qsub { display: none; }
}

/* ============================================================
   ۴) فهرست کارهای انجام‌شده
   ============================================================ */
.work-section {
  background: linear-gradient(180deg, #FAF7E6, var(--cream) 45%, #F5F0DA);
  border-block: 1px solid var(--line-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

.work-card {
  --accent: var(--pink);
  --accent-soft: rgba(178, 61, 102, .12);
  --rail: rgba(178, 61, 102, .3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  box-shadow: 0 22px 50px -38px rgba(94, 30, 60, .4);
  display: flex;
  flex-direction: column;
}
.cat-back { --accent: #7A4E8F; --accent-soft: rgba(122, 78, 143, .13); --rail: rgba(122, 78, 143, .32); }
.cat-pay  { --accent: #B2872F; --accent-soft: rgba(178, 135, 47, .14);  --rail: rgba(178, 135, 47, .34); }
.cat-ux   { --accent: #2F7E80; --accent-soft: rgba(47, 126, 128, .12);   --rail: rgba(47, 126, 128, .3); }

.work-head {
  display: flex;
  align-items: center;
  gap: .95rem;
}
.work-icon {
  flex: none;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.work-icon svg { width: 26px; height: 26px; }
.work-head h3 { font-size: 1.18rem; font-weight: 700; line-height: 1.5; }
.work-head p { font-size: .85rem; color: var(--ink-3); line-height: 1.6; }
.work-count {
  margin-inline-start: auto;
  flex: none;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .25rem .8rem;
}

.work-list {
  margin-top: 1.4rem;
  position: relative;
}
.work-list::before {
  content: "";
  position: absolute;
  inset-inline-start: 15px;
  top: 34px;
  bottom: 22px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--rail), rgba(255, 255, 255, 0) 92%);
  opacity: .8;
}
.work-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: .8rem;
  padding-block: .95rem;
  position: relative;
}
.work-list li:first-child { padding-top: 0; }
.work-list li:last-child { padding-bottom: 0; }

.check {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.check svg { width: 16px; height: 16px; }

.work-list h4 { font-size: 1rem; font-weight: 700; line-height: 1.7; }
.work-list p { font-size: .9rem; color: var(--ink-2); line-height: 1.9; }

/* ============================================================
   ۵) تحلیل تخصصی
   ============================================================ */
.analysis-section {
  background:
    radial-gradient(50% 34% at 50% 0%, rgba(178, 61, 102, .07), transparent 70%),
    #FDFBF1;
}

.report-stack { margin-top: clamp(1rem, 3vw, 2rem); }

.report-sheet {
  display: flex;
  gap: clamp(1rem, 2.6vw, 1.8rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--pink);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 3.2vw, 2.3rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 44px -36px rgba(94, 30, 60, .5);
}

.report-ico {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-ico svg { width: 28px; height: 28px; }
.ico-tech { background: rgba(178, 61, 102, .13); color: var(--pink-deep); }
.ico-biz  { background: rgba(178, 135, 47, .16);  color: #96711F; }
.ico-next { background: rgba(122, 78, 143, .14);  color: #6C3E81; }

.report-body { min-width: 0; }
.report-body h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: .5rem; }
.report-body p { color: var(--ink-2); margin-bottom: .8rem; font-size: .98rem; }
.report-body p:last-child { margin-bottom: 0; }
.report-body b { color: var(--ink); }

/* نقل‌قول برجسته */
.pull-quote {
  text-align: center;
  max-width: 640px;
  margin: clamp(1.6rem, 4vw, 2.8rem) auto;
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(1.4rem, 5vw, 3.6rem);
  background: rgba(178, 61, 102, .06);
  border-radius: 26px;
  border: 1px solid rgba(178, 61, 102, .18);
  position: relative;
}
.pq-mark {
  position: absolute;
  top: -4px;
  inset-inline-start: 20px;
  font-size: 5rem;
  line-height: 1;
  color: var(--pink);
  opacity: .35;
  font-weight: 800;
}
.pull-quote p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 600;
  line-height: 2.15;
  color: var(--ink);
}
.pull-quote footer { margin-top: .7rem; font-size: .88rem; color: var(--ink-3); font-weight: 400; }

/* فهرست پیشنهادها */
.rec-list { display: flex; flex-direction: column; gap: 1rem; }
.rec-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #FFF;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 1rem 1.2rem;
}
.rec-num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  box-shadow: 0 8px 18px -8px rgba(178, 61, 102, .7);
}
.rec-list h4 { font-size: 1.02rem; font-weight: 700; line-height: 1.8; }
.rec-list p { font-size: .93rem; color: var(--ink-2); margin-bottom: 0 !important; }

/* ============================================================
   ۶) فوتر
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, var(--wine-deep), var(--wine) 60%, #7A2447);
  color: #F7EDE8;
  border-radius: 44px 44px 0 0;
  margin-top: 1px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 88% 0%, rgba(178, 61, 102, .35), transparent 70%),
    radial-gradient(30% 45% at 6% 100%, rgba(178, 135, 47, .16), transparent 70%);
  pointer-events: none;
}
.site-footer .container { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.6rem, 6vw, 4.5rem) 0 2rem;
}
.footer-brand { max-width: 420px; }
.footer-logo-chip {
  display: inline-block;
  background: #fff;
  padding: .4rem .9rem;
  border-radius: 16px;
  box-shadow: 0 14px 28px -16px rgba(0,0,0,.5);
  margin-bottom: 1.1rem;
}
.footer-logo-chip img { width: 150px; height: auto; }

.footer-brand p { color: rgba(247, 237, 232, .82); font-size: .94rem; }

.store-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  border: 1px solid rgba(247, 237, 232, .4);
  border-radius: 999px;
  padding: .45rem 1.2rem;
  font-weight: 600;
  font-size: .95rem;
  transition: background .25s, border-color .25s, transform .25s;
}
.store-link svg { width: 16px; height: 16px; }
.store-link:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

.fn-kicker {
  display: inline-block;
  font-size: .8rem;
  color: var(--gold-soft);
  letter-spacing: .5px;
  margin-bottom: .4rem;
}
.footer-credit h3 { font-size: 1.7rem; font-weight: 800; line-height: 1.4; }
.fn-latin { font-weight: 400; font-size: 1.05rem; opacity: .75; }
.footer-credit > p { color: rgba(247, 237, 232, .8); font-size: .94rem; margin-top: .4rem; max-width: 460px; }

/* لوگوی آژانس (وب‌نایت) روی کارت تیره */
.webnite-chip {
  display: inline-block;
  background: linear-gradient(150deg, #15171E, #262A36);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 12px 16px 10px;
  margin: .55rem 0 .8rem;
  box-shadow: 0 20px 34px -20px rgba(0, 0, 0, .6);
}
.webnite-chip img { width: min(225px, 62vw); height: auto; display: block; }

.footer-contact { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(247, 237, 232, .28);
  border-radius: 999px;
  padding: .4rem 1.05rem;
  font-size: .9rem;
  color: rgba(247, 237, 232, .9);
  transition: background .25s, border-color .25s;
}
.footer-contact svg { width: 16px; height: 16px; color: var(--gold-soft); }
.footer-contact a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(247, 237, 232, .18);
  padding: 1.4rem 0 1.8rem;
  font-size: .85rem;
  color: rgba(247, 237, 232, .72);
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  transition: opacity .2s;
}
.back-top svg { width: 15px; height: 15px; }
.back-top:hover { opacity: .8; }

/* ============================================================
   واکنش‌گرایی
   ============================================================ */
@media (max-width: 960px) {
  .nav a { padding: .5rem .55rem; font-size: .88rem; }
  .nav a::after { inset-inline: .55rem; }
  .btn-print span { display: none; }
  .btn-print { padding: .6rem .75rem; }
  .btn-print svg { width: 18px; height: 18px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
}

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .cmp-tags { margin-inline-start: 0; }
  .cmp-card-head h3 { width: 100%; }
}

@media (max-width: 600px) {
  .brand img { height: 38px; }
  .header-inner { gap: .8rem; }
  .cmp-tag { font-size: .7rem; padding: .25rem .7rem; }
  .cmp-tag-before { left: 10px; }
  .cmp-tag-after { right: 10px; }
  .cmp-hint { bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .report-sheet { flex-direction: column; }
  .report-ico { width: 48px; height: 48px; }
  .pull-quote { text-align: right; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   چاپ / ذخیره PDF
   ============================================================ */
@page { margin: 14mm 12mm; }

@media print {
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #2a1b22; line-height: 1.8; }

  .site-header { display: none; }
  .hero { padding: 0 0 2.4rem; }
  .hero-bg, .scroll-cue { display: none; }
  .hero-logo { max-width: 240px; }
  .hero-cta { display: none; }
  .kicker, .hero-meta { background: none; border-color: #e5d8de; }

  .section { padding: 2.2rem 0; page-break-inside: avoid; }
  .compare-section, .work-section, .analysis-section { background: #fff !important; border: 0; }

  html.js .reveal { opacity: 1; transform: none; }

  .sec-head { margin-bottom: 1.6rem; }
  .sec-num { border-color: #d8b9c5; }

  .cmp-card { break-inside: avoid; page-break-inside: avoid; box-shadow: none; border-color: #e2d5da; }

  /* مقایسه در چاپ: دو تصویر کامل کنار هم */
  .cmp { box-shadow: none; background: #fff; }
  .cmp-stage {
    aspect-ratio: auto !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
  }
  .cmp-img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 1px solid #e5d8de;
    border-radius: 8px;
  }
  .cmp-layer { position: static !important; clip-path: none !important; display: block; }
  .cmp-tag, .cmp-divider, .cmp-handle, .cmp-hint { display: none !important; }
  .cmp-full { display: none; }

  .seo-section { background: #fff !important; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card, .chart-card, .query-card { break-inside: avoid; page-break-inside: avoid; box-shadow: none; border-color: #e2d5da; }
  .chart-svg { width: 100%; height: auto; }
  .queries-grid { grid-template-columns: 1fr 1fr; }
  .presence-grid { grid-template-columns: 1fr 1fr; }
  .presence-card, .presence-shot { break-inside: avoid; page-break-inside: avoid; }
  .presence-card { box-shadow: none; border-color: #e2d5da; }
  .seo-source { background: #faf7f8; border-color: #d8c6cd; }

  .work-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .work-card { break-inside: avoid; page-break-inside: avoid; box-shadow: none; }

  .analysis-section { background: #fff !important; }
  .report-sheet, .pull-quote { break-inside: avoid; page-break-inside: avoid; box-shadow: none; }
  .pull-quote { background: #faf5f6; }

  .site-footer { border-radius: 0; background: #fff !important; color: #2a1b22; page-break-before: auto; }
  .site-footer::before { display: none; }
  .footer-brand p, .footer-credit > p, .footer-bottom { color: #5c4a53; }
  .footer-credit h3 { color: #2a1b22; }
  .footer-logo-chip { background: #f5f5f5; }
  .store-link, .footer-contact a { border-color: #d8c6cd; color: #5c4a53; }
  .footer-contact svg, .fn-kicker { color: #96711F; }

  a { color: inherit; }
  h2, h3, h4 { page-break-after: avoid; }
  .work-list li, .rec-list li { break-inside: avoid; }
}
