/* ─── فونت اپ (IRANYekanX) ─── */
@font-face {
  font-family: IRANYekanX;
  src: url('fonts/IRANYekanX-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IRANYekanX;
  src: url('fonts/IRANYekanX-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IRANYekanX;
  src: url('fonts/IRANYekanX-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Light حذف شد — وزن اضافه برای FCP لازم نیست */

:root {
  --rose: #E85D75;
  --rose-dark: #C94A62;
  --rose-light: #FFE8ED;
  --pink: #FF8FA3;
  --mint: #7EC8A8;
  --lavender: #EDE4FF;
  --cream: #FFF8F5;
  --surface: #FFFFFF;
  --text: #2D2A32;
  --muted: #8A8494;
  --border: rgba(45, 42, 50, 0.08);
  --shadow-sm: 0 2px 12px rgba(45, 42, 50, 0.06);
  --shadow-md: 0 8px 32px rgba(232, 93, 117, 0.1);
  --accent-rgb: 232, 93, 117;
  --loader-bg: linear-gradient(165deg, #FFF5EE 0%, #FFE8EC 45%, #F5F0FF 100%);
  --header-bg: linear-gradient(to bottom, rgba(255, 248, 245, 0.92) 70%, transparent);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max: 1120px;
  --nav-top: 20px;
  --pad-x: 20px;
  --pad-x-mobile: 24px;
  --vegan: #2E7D4F;
  --vegan-dark: #1B5E3A;
  --vegan-light: #E8F8EE;
  --vegan-mint: #C8F0DC;
  --vegan-bg: #F0FFF4;
}

html.theme-male {
  --rose: #3D7DD4;
  --rose-dark: #2A5FA8;
  --rose-light: #E8F2FF;
  --pink: #6BA3FF;
  --lavender: #E4EEFF;
  --cream: #FAFCFF;
  --text: #2A3340;
  --muted: #708090;
  --shadow-md: 0 8px 32px rgba(61, 125, 212, 0.12);
  --accent-rgb: 61, 125, 212;
  --loader-bg: linear-gradient(165deg, #F0F6FF 0%, #E8F2FF 45%, #E4EEFF 100%);
  --header-bg: linear-gradient(to bottom, rgba(250, 252, 255, 0.92) 70%, transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: IRANYekanX, Tahoma, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
  font-weight: 400;
}
body.nav-open { overflow: hidden; }

main#main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* ─── لودینگ (مثل اپ) ─── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--loader-bg);
  transition: opacity 0.4s ease, visibility 0.4s;
}
#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-emoji {
  font-size: 3.25rem;
  line-height: 1;
  animation: loaderPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loader-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.loader-msg {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
@keyframes loaderPop {
  from { transform: scale(0.55); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.bg-blob.a { width: min(420px, 80vw); height: min(420px, 80vw); background: var(--rose-light); top: -60px; right: -80px; }
.bg-blob.b { width: min(320px, 70vw); height: min(320px, 70vw); background: var(--lavender); bottom: 15%; left: -100px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .container {
    padding-inline: max(var(--pad-x-mobile), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }
  :root { --nav-top: 12px; }
}

/* ─── هدر و منو ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  padding: var(--nav-top) 0 10px;
  background: var(--header-bg);
}
.nav-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}
.nav-brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(260px, 62vw);
  object-fit: contain;
}
.nav-brand-text {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--rose-dark);
  white-space: nowrap;
}
.nav-links--desktop {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.nav-links--desktop a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links--desktop a:hover { color: var(--rose-dark); background: var(--rose-light); }
.nav-links--desktop a.active { color: var(--rose-dark); background: var(--rose-light); font-weight: 700; }
.nav-spacer { flex: 1; }
.nav-app {
  flex-shrink: 0;
  padding: 9px 16px !important;
  font-size: 0.8rem !important;
  border-radius: var(--radius-pill) !important;
}
.gender-segment-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  max-width: 100%;
}
.gender-toggle-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--rose-dark);
}
.gender-segment-wrap--drawer .gender-toggle-badge {
  display: block;
  margin-bottom: 2px;
}
.gender-segment-wrap--header .gender-toggle-badge { display: none; }
.gender-segment {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(var(--accent-rgb), 0.2);
  background: var(--surface);
  gap: 3px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.08);
}
.gender-segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.gender-segment-emoji {
  font-size: 1rem;
  line-height: 1;
}
.gender-segment-label {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}
.gender-segment-btn--female.is-active {
  background: #FFE8ED;
  color: #C94A62;
  box-shadow: 0 2px 8px rgba(232, 93, 117, 0.15);
}
.gender-segment-btn--male.is-active {
  background: #E8F2FF;
  color: #2A5FA8;
  box-shadow: 0 2px 8px rgba(61, 125, 212, 0.15);
}
.gender-segment-btn:active { transform: scale(0.97); }
.gender-segment-wrap--drawer { width: 100%; }
.gender-segment-wrap--drawer .gender-segment {
  width: 100%;
}
.gender-segment-wrap--drawer .gender-segment-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 12px;
}
.gender-segment-wrap--drawer .gender-segment-emoji { font-size: 1.2rem; }
.gender-segment-wrap--drawer .gender-segment-label { font-size: 0.82rem; }
.gender-drawer-item {
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .gender-segment-wrap--header .gender-segment-btn { padding: 5px 8px; gap: 4px; }
  .gender-segment-wrap--header .gender-segment-emoji { font-size: 0.95rem; }
  .gender-segment-wrap--header .gender-segment-label { font-size: 0.66rem; }
}

@media (min-width: 900px) {
  .gender-segment-wrap--header .gender-segment-label { font-size: 0.76rem; }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--rose-light);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 2px;
  transition: transform 0.2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* منوی موبایل — drawer از سمت چپ (کنار همبرگر در RTL) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 50, 0.35);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}
.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(300px, 88vw);
  z-index: 401;
  background: var(--surface);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translate3d(-110%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s;
  display: flex;
  flex-direction: column;
  padding: 16px var(--pad-x-mobile) 24px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  overflow-y: auto;
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-head span {
  font-weight: 800;
  font-size: 1rem;
  color: var(--rose-dark);
}
.nav-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-drawer-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.15s;
}
.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  background: var(--rose-light);
  color: var(--rose-dark);
}
.nav-drawer-links .nav-drawer-cta {
  margin-top: 12px;
  justify-content: center;
  width: 100%;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-backdrop,
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open .nav-drawer,
.nav-drawer.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links--desktop { display: none; }
  .nav-app { display: none !important; }
  .nav-spacer { display: none; }
  .nav-pill { padding: 10px 14px; gap: 10px; }
  .nav-brand { flex: 1; min-width: 0; }
  .nav-brand-logo { height: 26px; }
  .nav-brand-text { font-size: 0.9rem; }
  .site-header { padding-bottom: 12px; }

  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 auto; min-width: min(100%, 160px); }

  .store-row { gap: 12px; }
  .store-btn { flex: 1 1 calc(50% - 6px); min-width: 0; }

  .carousel-track,
  .shots-row,
  .testimonial-scroll {
    scroll-padding-inline: var(--pad-x-mobile);
  }
  .article-page-wrap {
    padding-inline: max(var(--pad-x-mobile), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }

  footer {
    padding-inline: max(var(--pad-x-mobile), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }
}
@media (min-width: 769px) {
  .nav-backdrop,
  .nav-drawer { display: none !important; }
  .nav-toggle { display: none !important; }
}

/* ─── دکمه‌ها ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--rose);
  color: var(--surface);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.28);
}
.btn-outline {
  background: var(--surface);
  color: var(--rose-dark);
  border: 1.5px solid rgba(var(--accent-rgb), 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.75);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ─── Hero ─── */
.hero {
  padding-block: clamp(24px, 5vw, 40px) clamp(28px, 6vw, 48px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.badge {
  display: inline-block;
  background: var(--surface);
  color: var(--rose-dark);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--rose); }
.hero-lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  max-width: 440px;
  margin-bottom: 24px;
  font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  margin-top: 4px;
}
.hero-app-img {
  width: 100%;
  max-width: min(300px, 82vw);
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 16px 32px rgba(45, 42, 50, 0.12));
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center bottom;
}
@media (min-width: 480px) {
  .hero-app-img { max-width: min(340px, 78vw); }
}
@media (min-width: 860px) {
  .hero-showcase { margin-top: 0; }
  .hero-grid { align-items: center; }
  .hero-app-img {
    max-width: 380px;
    filter: drop-shadow(0 20px 40px rgba(45, 42, 50, 0.14));
  }
}
@media (min-width: 1024px) {
  .hero-app-img { max-width: 420px; }
}

/* ─── آمار ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: clamp(28px, 5vw, 40px);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 22px);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  color: var(--rose);
  font-weight: 800;
  line-height: 1.2;
}
.stat span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

/* ─── سکشن‌ها ─── */
.section { padding-block: clamp(28px, 5vw, 44px); }
.section-alt { background: rgba(255, 255, 255, 0.5); }
.section-vegan {
  background: linear-gradient(165deg, var(--vegan-light) 0%, var(--vegan-bg) 55%, var(--cream) 100%);
  padding-block: clamp(28px, 5vw, 44px);
}
.section-vegan .section-head h2 { color: var(--vegan-dark); }
.section-vegan .section-head p { color: #4A7A5A; }
.section-head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto clamp(16px, 3vw, 24px);
}
.section-head h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 5vw, 36px);
}
.section-head-row .section-head { margin: 0; text-align: right; flex: 1; min-width: 200px; }

@media (max-width: 768px) {
  .section-head-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: clamp(20px, 4vw, 28px);
  }
  .section-head-row .section-head {
    text-align: center;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .section-head-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── فیچرها ─── */
.feature-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.feature-scroll:not(.is-expanded) .feature-card:nth-child(n+5) {
  display: none;
}
@media (max-width: 768px) {
  .feature-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .feature-scroll:not(.is-expanded) .feature-card:nth-child(n+3) {
    display: none;
  }
}
.features-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.features-more-wrap.is-hidden { display: none; }
.feature-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card .icon { font-size: 1.5rem; margin-bottom: 6px; }
.feature-card .tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-light);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}
.feature-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; line-height: 1.35; }
.feature-card p { font-size: 0.78rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 768px) {
  .feature-card { padding: 12px; }
  .feature-card h3 { font-size: 0.82rem; }
  .feature-card p { font-size: 0.74rem; }
}

/* ─── کروسل رسپی ─── */
.carousel-wrap {
  position: relative;
  width: 100%;
}
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 14px;
  margin: 0;
  scrollbar-width: none;
  width: 100%;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .loading {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
}
.carousel-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--rose-dark);
  z-index: 2;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.carousel-btn:hover { background: var(--rose-light); }
.carousel-btn.prev { right: -6px; }
.carousel-btn.next { left: -6px; }
.section-vegan .carousel-btn {
  border-color: rgba(46, 125, 79, 0.2);
  color: var(--vegan-dark);
}
.section-vegan .carousel-btn:hover { background: var(--vegan-mint); }
@media (min-width: 768px) {
  .carousel-wrap.has-nav .carousel-btn { display: flex; }
  .carousel-wrap.has-nav { padding: 0 36px; }
  .carousel-btn.prev { right: 0; }
  .carousel-btn.next { left: 0; }
}

.recipe-card {
  flex: 0 0 auto;
  width: 200px;
  max-width: 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .recipe-card { width: 220px; max-width: 220px; }
}
.recipe-card--vegan {
  border-color: rgba(46, 125, 79, 0.18);
  background: rgba(255, 255, 255, 0.92);
}
.recipe-card--vegan:hover { box-shadow: 0 8px 28px rgba(46, 125, 79, 0.14); }
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.recipe-card-img {
  height: 156px;
  min-height: 156px;
  max-height: 156px;
  width: 100%;
  overflow: hidden;
  background: var(--rose-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.recipe-card--vegan .recipe-card-img { background: var(--vegan-mint); }
.recipe-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.recipe-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
}
.recipe-card-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}
.recipe-card-cta {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
  padding-top: 2px;
}
.recipe-card--vegan .recipe-card-cta { color: var(--vegan); }
.recipe-card--vegan .recipe-card-meta { color: #5A8A6A; }
.recipe-card-placeholder {
  font-size: 2rem;
  line-height: 1;
  z-index: 0;
}

/* ─── اسکرین‌شات ─── */
.shots-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots-row::-webkit-scrollbar { display: none; }
.shot-wrap {
  flex: 0 0 min(220px, 62vw);
  scroll-snap-align: start;
  text-align: center;
}
.shot-phone {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  line-height: 0;
}
.shot-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}
.shot-wrap p { margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }

/* ─── مقالات ─── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-cover {
  height: 150px;
  background: var(--lavender) center/cover;
  background-color: var(--rose-light);
}
.article-body { padding: 16px 18px; flex: 1; }
.article-body h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; line-height: 1.45; }
.article-body p {
  font-size: 0.84rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-date { display: block; font-size: 0.75rem; color: var(--rose); font-weight: 600; margin-bottom: 4px; }
.article-more { display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--rose); }

/* کروسل مقالات (لندینگ) */
.article-carousel {
  scroll-padding-inline: max(var(--pad-x-mobile), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
.article-carousel .article-card {
  flex: 0 0 min(85vw, 300px);
  scroll-snap-align: start;
  min-height: 100%;
}
@media (min-width: 640px) {
  .article-carousel .article-card { flex: 0 0 min(42vw, 320px); }
}
@media (min-width: 900px) {
  .article-carousel .article-card { flex: 0 0 calc((100% - 24px) / 3); max-width: 360px; }
}
#articles-carousel-wrap.has-nav { padding-inline: 0; }
@media (min-width: 768px) {
  #articles-carousel-wrap.has-nav { padding-inline: 36px; }
  #articles-carousel-wrap.has-nav .carousel-btn { display: flex; }
}

.article-grid-list { grid-template-columns: 1fr; }
.article-card-list { flex-direction: row; min-height: 130px; }
@media (max-width: 640px) { .article-card-list { flex-direction: column; } }
.article-card-list .article-cover { width: 130px; min-height: 130px; height: auto; flex-shrink: 0; }
@media (max-width: 640px) { .article-card-list .article-cover { width: 100%; height: 150px; } }
.article-card-list .article-body { display: flex; flex-direction: column; justify-content: center; }

.page-hero {
  padding-block: clamp(28px, 5vw, 40px) clamp(24px, 4vw, 32px);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.page-hero-lead { color: var(--muted); margin-bottom: 20px; font-size: 0.92rem; }
.search-box { max-width: 400px; margin: 0 auto 10px; }
.search-box input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.search-box input:focus { outline: 2px solid var(--rose-light); border-color: var(--rose); }
.articles-count { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cta-banner h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.cta-banner p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ─── مقاله تکی ─── */
.article-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 24px) var(--pad-x) 64px;
}
.article-page-wrap h1 { font-size: clamp(1.35rem, 4vw, 1.65rem); font-weight: 800; margin: 14px 0; line-height: 1.45; }
.article-page-wrap .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.article-cover-lg {
  height: clamp(180px, 40vw, 260px);
  border-radius: var(--radius);
  background: var(--rose-light) center/cover;
  margin-bottom: 20px;
}
.article-content { line-height: 1.85; font-size: 0.98rem; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 12px 0; }
.article-content h2, .article-content h3 { margin: 1.3em 0 0.5em; font-weight: 700; }
.article-content ul { margin: 0.6em 0 1.2em; padding-inline-start: 1.25rem; }
.article-content li { margin: 0.35em 0; }

.legal-doc .legal-hero { margin-bottom: 8px; }
.legal-doc .legal-updated {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 14px;
}
.legal-doc .legal-lead {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0 0 8px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 28px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rose-light) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--rose) 18%, transparent);
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.legal-tab {
  border: 1px solid color-mix(in srgb, var(--rose) 28%, transparent);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.legal-tab.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.legal-toc a {
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-body h2 {
  scroll-margin-top: 96px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-thanks { margin-top: 2em; }
.legal-signoff { color: var(--muted); font-weight: 600; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
}
.footer-links a {
  color: var(--rose);
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 16px;
  color: var(--muted);
}
.breadcrumb a { color: var(--rose); font-weight: 600; text-decoration: none; }
.breadcrumb span { opacity: 0.45; }

/* ─── دستور پخت تکی ─── */
.recipe-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 24px) var(--pad-x) 64px;
}
.recipe-page-wrap h1 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  margin: 14px 0 8px;
  line-height: 1.45;
}
.recipe-cover-lg {
  height: clamp(200px, 42vw, 280px);
  border-radius: var(--radius);
  background: var(--rose-light) center/cover;
  margin-bottom: 20px;
}
.recipe-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.recipe-desc {
  line-height: 1.75;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 24px;
}
.recipe-section {
  margin-bottom: 28px;
}
.recipe-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.recipe-ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.recipe-ingredients li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.recipe-ing-qty {
  font-weight: 700;
  color: var(--rose);
  margin-left: 6px;
}
.recipe-opt {
  font-size: 0.82rem;
  color: var(--muted);
}
.recipe-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.recipe-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.recipe-step-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-step-body {
  flex: 1;
  line-height: 1.8;
  font-size: 0.95rem;
  padding-top: 4px;
}
.recipe-step-img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}
.recipe-soft-cta {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--rose-light) 0%, #fff5f7 100%);
  border: 1px solid var(--border);
  text-align: center;
}
.recipe-soft-cta p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ─── نظرات ─── */
.testimonial-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.testimonial-scroll::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}
.testimonial .stars { color: #FFB800; margin-bottom: 6px; letter-spacing: 1px; font-size: 0.9rem; }
.testimonial p { font-size: 0.88rem; margin-bottom: 10px; line-height: 1.6; }
.testimonial cite { font-size: 0.78rem; color: var(--rose-dark); font-style: normal; font-weight: 700; }

/* ─── نظرسنجی ─── */
.survey-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 32px);
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.star-picker { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.star-picker button {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.15s;
  padding: 4px;
}
.star-picker button.on, .star-picker button:hover { opacity: 1; transform: scale(1.08); }
.survey-box textarea, .survey-box select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 10px;
  background: var(--cream);
}
.survey-msg { text-align: center; margin-top: 10px; font-weight: 600; color: var(--mint); min-height: 1.4em; font-size: 0.88rem; }

/* ─── دانلود ─── */
.download-section {
  background: linear-gradient(155deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 48px) clamp(20px, 4vw, 32px);
  text-align: center;
  width: 100%;
}
.download-section h1,
.download-section h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 800; margin: 0 0 8px; }
.download-section p { opacity: 0.92; margin-bottom: 24px; font-size: 0.92rem; }
.download-page { padding-top: 28px; }
.choose-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .choose-row { grid-template-columns: 1fr; }
}
.choose-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 20px 16px;
  text-decoration: none;
  text-align: right;
  display: block;
  transition: transform 0.15s;
}
.choose-card:hover { transform: translateY(-2px); }
.choose-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--rose-dark);
}
.choose-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}
.apk-mini { margin: 18px 0 0; font-size: 0.82rem; }
.apk-mini a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store-btn {
  background: var(--surface);
  color: var(--rose-dark);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  min-width: min(140px, 42vw);
  transition: transform 0.15s;
}
.store-btn:hover { transform: translateY(-2px); }

/* ─── FAQ ─── */
.faq details {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

footer {
  text-align: center;
  padding: 28px 20px 40px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}
footer a { color: inherit; text-decoration: none; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-inner > a img {
  width: 88px;
  height: auto;
  display: block;
  cursor: pointer;
}

.loading {
  text-align: center;
  padding: 32px;
  color: var(--muted);
  font-size: 0.88rem;
  width: 100%;
}

/* ─── Scroll 3D reveal ─── */
:root {
  --reveal-perspective: 920px;
  --reveal-duration: 0.82s;
}

.reveal-3d {
  opacity: 0;
  transform: perspective(var(--reveal-perspective))
    rotateX(var(--rx, 12deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--ty, 36px))
    translateZ(var(--tz, -42px))
    scale(var(--rs, 1));
  transform-origin: 50% 85%;
  transition:
    opacity var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1),
    transform calc(var(--reveal-duration) + 0.08s) cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.reveal-3d.is-visible {
  opacity: 1;
  --rx: 0deg;
  --ry: 0deg;
  --ty: 0px;
  --tz: 0px;
  --rs: 1;
  will-change: auto;
}

.reveal-up:not(.is-visible) { --rx: 14deg; --ty: 42px; --tz: -38px; }
.reveal-tilt:not(.is-visible) { --ry: -8deg; --ty: 34px; --tz: -32px; }
[dir="rtl"] .reveal-tilt:not(.is-visible) { --ry: 8deg; }

.reveal-slide:not(.is-visible) {
  --ry: 5deg;
  --ty: 30px;
  --tz: -28px;
  transform: perspective(var(--reveal-perspective))
    rotateX(var(--rx, 10deg))
    rotateY(var(--ry))
    translateY(var(--ty))
    translateZ(var(--tz))
    translateX(16px);
}
[dir="rtl"] .reveal-slide:not(.is-visible) {
  transform: perspective(var(--reveal-perspective))
    rotateX(var(--rx, 10deg))
    rotateY(var(--ry))
    translateY(var(--ty))
    translateZ(var(--tz))
    translateX(-16px);
}
.reveal-slide.is-visible {
  transform: perspective(var(--reveal-perspective))
    rotateX(0) rotateY(0) translateY(0) translateZ(0) translateX(0);
}

.reveal-pop:not(.is-visible) { --rx: 8deg; --ty: 26px; --tz: -64px; --rs: 0.93; }
.reveal-flip:not(.is-visible) { --rx: 18deg; --ty: 38px; --tz: -48px; transform-origin: 50% 100%; }

@media (max-width: 768px) {
  :root {
    --reveal-perspective: 720px;
    --reveal-duration: 0.62s;
  }
  .reveal-up:not(.is-visible) { --rx: 9deg; --ty: 26px; --tz: -22px; }
  .reveal-tilt:not(.is-visible) { --ry: 7deg; --ty: 24px; --tz: -20px; }
  .reveal-flip:not(.is-visible) { --rx: 12deg; --ty: 28px; --tz: -28px; }
  .reveal-slide:not(.is-visible) {
    transform: perspective(var(--reveal-perspective))
      rotateX(8deg) rotateY(var(--ry)) translateY(22px) translateZ(-18px) translateX(18px);
  }
  [dir="rtl"] .reveal-slide:not(.is-visible) {
    transform: perspective(var(--reveal-perspective))
      rotateX(8deg) rotateY(var(--ry)) translateY(22px) translateZ(-18px) translateX(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.no-motion .reveal-3d,
  .reveal-3d {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
