/* Panaah marketing pages — home / about / features */
:root {
  --pm-ink: #514daf;
  --pm-lavender: #bb8ff2;
  --pm-sky: #77adfd;
  --pm-heading: #26233a;
  --pm-body: #4f4b63;
  --pm-muted: #7a7688;
  --pm-surface: #f8f7fc;
  --pm-surface-2: #f3f1fb;
  --pm-border: #e7e0ee;
  --pm-white: #ffffff;
  --pm-radius: 28px;
  --pm-radius-sm: 18px;
  --pm-shadow: 0 18px 48px rgba(81, 77, 175, 0.12);
}

.pm-page {
  color: var(--pm-body);
  overflow-x: clip;
}

.pm-page img {
  animation: pmImageFloat 8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pmImageFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

.pm-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.pm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.25rem 0 1.75rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(187, 143, 242, 0.38), transparent 58%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(119, 173, 253, 0.26), transparent 55%),
    linear-gradient(180deg, #f3ecff 0%, #eef4ff 42%, #f8f7fc 100%);
}

.pm-hero__glow {
  position: absolute;
  inset: auto 10% -20% 10%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 143, 242, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.pm-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.pm-hero__deco-item {
  position: absolute;
  display: block;
  color: #bb8ff2;
  opacity: .7;
  font-size: 2rem;
  line-height: 1;
  transform-origin: center;
  will-change: transform;
}

.pm-hero__deco-star {
  top: 18%;
  right: auto;
  left: 24%;
  animation: pmHeroTwinkle 7s ease-in-out infinite;
}

.pm-hero__deco-star--mobile-right {
  top: 42%;
  right: 5%;
  left: auto;
  color: #4a8ee8;
  font-size: 2.35rem;
}

.pm-hero__deco-star--fast {
  top: 12%;
  left: 5%;
  font-size: 2.4rem;
  animation-duration: 5.5s;
  animation-delay: 1.1s;
}

.pm-hero__deco-star--slow {
  top: 28%;
  left: 18%;
  color: #c4b5fd;
  animation-duration: 9s;
  animation-delay: .8s;
}

.pm-hero__deco-star--small {
  bottom: 24%;
  left: 8%;
  font-size: 1.35rem;
  color: #77adfd;
  animation-duration: 8s;
  animation-delay: 1.8s;
}

.pm-hero__deco-star--center {
  top: 46%;
  left: 32%;
  font-size: 1.5rem;
  color: #a78bfa;
  animation-duration: 10s;
  animation-delay: 2.2s;
}

.pm-hero__deco-star--center-alt {
  top: 62%;
  left: 27%;
  font-size: 1.75rem;
  color: #c4b5fd;
  animation-duration: 12s;
  animation-delay: 3.2s;
}

.pm-hero__deco-star--left-alt {
  top: 42%;
  left: 14%;
  font-size: 1.5rem;
  color: #93c5fd;
  animation-duration: 11s;
  animation-delay: 1.6s;
}

.pm-hero__deco-star--left-low {
  bottom: 8%;
  left: 20%;
  font-size: 1.2rem;
  color: #bb8ff2;
  animation-duration: 13s;
  animation-delay: 4s;
}

.pm-hero__deco-heart {
  top: auto;
  bottom: 10%;
  left: 42%;
  color: #5b9cf5;
  animation: pmHeroHeartbeat 6.5s ease-in-out infinite;
}

.pm-hero__deco-heart--alt {
  top: auto;
  right: auto;
  left: 27%;
  bottom: 18%;
  color: #bb8ff2;
  animation-duration: 8s;
  animation-delay: 1.5s;
}

.pm-hero__deco-heart--left {
  top: 58%;
  left: 9%;
  color: #c4b5fd;
  animation-duration: 9s;
  animation-delay: 2.4s;
}

.pm-hero__deco-moon {
  right: auto;
  left: 22%;
  bottom: 4%;
  color: #93c5fd;
  animation: pmHeroDrift 11s ease-in-out infinite;
}

.pm-hero__deco-moon--center {
  top: 22%;
  right: auto;
  bottom: auto;
  left: 34%;
  color: #93c5fd;
  animation-duration: 14s;
  animation-delay: 2.8s;
}

.pm-hero__deco-moon--alt {
  top: 18%;
  right: auto;
  bottom: auto;
  left: 16%;
  color: #a5b4fc;
  animation-duration: 13s;
  animation-delay: 2s;
}

.pm-hero__deco-line {
  position: absolute;
  width: 140px;
  height: 48px;
  overflow: visible;
  opacity: .45;
}

.pm-hero__deco-line--one {
  top: 8%;
  right: auto;
  left: 3%;
  transform: rotate(6deg);
}

.pm-hero__deco-line--two {
  bottom: 16%;
  left: 20%;
  transform: rotate(12deg);
}

.pm-hero__deco-line path {
  fill: none;
  stroke: #bb8ff2;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: pmHeroLineDraw 9s ease-in-out infinite;
}

@keyframes pmHeroTwinkle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: .45; }
  50% { transform: translateY(-10px) rotate(18deg) scale(1.15); opacity: .95; }
}

@keyframes pmHeroHeartbeat {
  0%, 100% { transform: translateY(0) scale(1) rotate(-6deg); }
  35% { transform: translateY(-8px) scale(1.12) rotate(6deg); }
  70% { transform: translateY(-3px) scale(.96) rotate(-3deg); }
}

@keyframes pmHeroDrift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(-12px, -14px) rotate(8deg); }
}

@keyframes pmHeroLineDraw {
  0% { stroke-dashoffset: 120; opacity: .2; }
  45% { stroke-dashoffset: 0; opacity: .9; }
  100% { stroke-dashoffset: -120; opacity: .2; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-page img,
  .pm-hero__deco-item,
  .pm-hero__deco-line path,
  .pm-btn--hero-tests,
  .pm-btn--hero-tests::before {
    animation: none !important;
  }
}

.pm-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.pm-hero__copy {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pm-hero__figure {
  margin: 0;
  width: min(100%, 420px);
  line-height: 0;
}

.pm-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 28px rgba(81, 77, 175, 0.18));
  animation: pmFloat 5.5s ease-in-out infinite;
}

.pm-brand {
  display: block;
  font-family: "Mahboubeh Mehravar", "IRAN Rounded", Tahoma, sans-serif;
  font-size: clamp(3rem, 14vw, 4.5rem);
  line-height: 0.95;
  color: var(--pm-ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.pm-hero h1,
.pm-section-title {
  font-family: "Mahboubeh Mehravar", "IRAN Rounded", Tahoma, sans-serif;
  color: var(--pm-heading);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.pm-hero h1 {
  font-size: clamp(0.72rem, 4vw, 1.85rem);
  max-width: none;
  white-space: nowrap;
}

.pm-lead {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--pm-body);
  margin: 0 0 1.25rem;
  max-width: 32ch;
}

@media (max-width: 1024px) {
  .pm-hero__copy,
  .pm-hero__copy .pm-brand,
  .pm-hero__copy h1,
  .pm-hero__copy .pm-lead {
    text-align: center !important;
  }

  .pm-hero__copy {
    align-items: center !important;
  }

  .pm-hero__copy .pm-lead {
    margin-inline: auto;
  }

  .pm-hero__deco-item,
  .pm-hero__deco-line {
    display: none !important;
  }

  .pm-hero__deco-star--mobile-right {
    display: block !important;
  }

  .pm-hero__deco-star {
    display: block !important;
    font-size: 1.5rem;
  }

  .pm-hero__deco-star--mobile-right {
    top: 25%;
    right: 3%;
    font-size: 2rem;
  }

  .pm-hero__deco-star--fast {
    top: 20%;
    left: 3%;
    font-size: 1.8rem;
  }

  .pm-hero__deco-star:not(.pm-hero__deco-star--fast):not(.pm-hero__deco-star--mobile-right) {
    top: auto;
    right: auto;
    bottom: 14%;
    left: 4%;
  }

  .pm-hero__deco-star--slow {
    bottom: 7%;
    left: 20%;
  }

  .pm-hero__deco-star--small {
    bottom: 19%;
    left: auto;
    right: 7%;
  }

  .pm-hero__deco-star--center,
  .pm-hero__deco-star--center-alt {
    top: auto;
    bottom: 27%;
    left: auto;
    right: 18%;
  }

  .pm-hero__deco-star--left-alt {
    top: 16%;
    left: 21%;
  }

  .pm-hero__deco-star--left-low {
    bottom: 4%;
    left: 39%;
  }

  .pm-hero__deco-star {
    display: none !important;
  }

  .pm-hero__deco-star--mobile-right,
  .pm-hero__deco-star--fast,
  .pm-hero__deco-star--slow,
  .pm-hero__deco-star--small {
    display: block !important;
  }

  .pm-hero__deco-star--slow {
    top: 31%;
    right: 4%;
    bottom: auto;
    left: auto;
  }

  .pm-hero__deco-star--small {
    top: 18%;
    right: 28%;
    bottom: auto;
  }
}

.pm-hero .pm-cta-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.pm-hero .pm-btn {
  width: 100%;
  min-height: 52px;
  font-size: 0.98rem;
}

a.pm-btn.pm-btn--hero-tests,
.pm-btn.pm-btn--hero-tests,
a.pm-btn.pm-btn--hero-tests:visited,
a.pm-btn.pm-btn--hero-tests:hover,
a.pm-btn.pm-btn--hero-tests:active,
a.pm-btn.pm-btn--hero-tests:focus {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #413b9b 0%, #514daf 42%, #7b74d8 72%, #9b8fe8 100%);
  color: #ffffff !important;
  border: 0;
  min-height: 56px;
  padding-inline: 1.55rem;
  font-size: 1.04rem;
  box-shadow:
    0 16px 36px rgba(65, 59, 155, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: pmHeroTestsGlow 2.8s ease-in-out infinite;
}

a.pm-btn.pm-btn--hero-tests::before,
.pm-btn.pm-btn--hero-tests::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 42%,
    transparent 68%
  );
  transform: translateX(120%);
  animation: pmHeroTestsShine 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pmHeroTestsGlow {
  0%, 100% {
    box-shadow:
      0 16px 36px rgba(65, 59, 155, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow:
      0 20px 46px rgba(65, 59, 155, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

@keyframes pmHeroTestsShine {
  0%, 55% {
    transform: translateX(120%);
  }
  75%, 100% {
    transform: translateX(-120%);
  }
}

@media (min-width: 640px) {
  .pm-hero {
    padding: 1.75rem 0 2.5rem;
  }

  .pm-hero .pm-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .pm-hero .pm-btn {
    width: auto;
    min-width: 11.5rem;
  }

  .pm-hero__figure img {
    max-height: min(48vh, 420px);
  }
}

@media (min-width: 960px) {
  .pm-hero {
    min-height: min(78vh, 720px);
    display: flex;
    align-items: center;
    padding: 2rem 0 3rem;
  }

  .pm-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    text-align: right;
  }

  .pm-hero__copy {
    align-items: flex-start;
    flex: 1 1 46%;
    max-width: 34rem;
  }

  .pm-hero__figure {
    flex: 1 1 48%;
    width: auto;
    max-width: 520px;
  }

  .pm-hero__figure img {
    max-height: min(62vh, 560px);
  }

  .pm-brand {
    font-size: clamp(4rem, 6vw, 5.4rem);
  }

  .pm-hero h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  }

  .pm-lead {
    font-size: 1.08rem;
    max-width: 36ch;
    margin-bottom: 1.5rem;
  }

  .pm-hero .pm-cta-row {
    justify-content: flex-start;
  }
}

.pm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pm-btn:hover {
  transform: translateY(-2px);
}

a.pm-btn.pm-btn--primary,
.pm-btn.pm-btn--primary,
a.pm-btn.pm-btn--primary:visited,
a.pm-btn.pm-btn--primary:hover,
a.pm-btn.pm-btn--primary:active,
a.pm-btn.pm-btn--primary:focus {
  background: linear-gradient(135deg, #77adfd, #bb8ff2);
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(81, 77, 175, 0.28);
  border: 0;
}

a.pm-btn.pm-btn--ghost,
.pm-btn.pm-btn--ghost,
a.pm-btn.pm-btn--ghost:visited,
a.pm-btn.pm-btn--ghost:hover,
a.pm-btn.pm-btn--ghost:active,
a.pm-btn.pm-btn--ghost:focus {
  background: rgba(255, 255, 255, 0.92);
  color: #514daf !important;
  border: 1px solid var(--pm-border);
}

/* On purple/ink bands, outline buttons use white text */
.pm-section--ink a.pm-btn.pm-btn--ghost,
.pm-section--ink .pm-btn.pm-btn--ghost,
.pm-section--ink a.pm-btn.pm-btn--ghost:visited,
.pm-section--ink a.pm-btn.pm-btn--ghost:hover,
.pm-section--ink a.pm-btn.pm-btn--ghost:active,
.pm-section--ink a.pm-btn.pm-btn--ghost:focus,
.pm-section--ink a.pm-btn.pm-btn--primary,
.pm-section--ink .pm-btn.pm-btn--primary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.pm-section--ink a.pm-btn.pm-btn--primary,
.pm-section--ink .pm-btn.pm-btn--primary {
  background: #ffffff;
  color: #514daf !important;
  border-color: #ffffff;
}

.pm-section {
  padding: 4.5rem 0;
}

.pm-section--surface {
  background: var(--pm-surface);
}

.pm-section--ink {
  background: linear-gradient(135deg, #514daf 0%, #6d66c8 48%, #77adfd 100%);
  color: #fff;
}

.pm-about-principles {
  background: linear-gradient(135deg, #756dcc 0%, #8c86dc 48%, #82b6f2 100%);
}

.pm-section--ink .pm-container {
  text-align: center;
}

.pm-section--ink .pm-section-title {
  width: 100%;
  margin-bottom: 1.5rem;
  text-align: center !important;
}

.pm-section--ink .pm-section-kicker {
  display: block;
  text-align: center;
}

.pm-section--ink .pm-section-intro {
  max-width: 58ch;
  margin-inline: auto;
}

.pm-section--ink .pm-cta-row {
  justify-content: center;
}

.pm-final-cta {
  background: linear-gradient(135deg, #918bd8 0%, #829be0 48%, #6fabe8 100%) !important;
  text-align: center !important;
}

.pm-final-cta .pm-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pm-final-cta .pm-section-title,
.pm-final-cta .pm-section-intro {
  width: 100%;
  text-align: center !important;
}

.pm-final-cta .pm-cta-row {
  justify-content: center !important;
}

@media (max-width: 640px) {
  .pm-final-cta .pm-container > div {
    grid-template-columns: 1fr !important;
  }

  .pm-final-cta__content > img {
    width: 82px !important;
    height: 82px !important;
    right: -8px !important;
  }

  .pm-final-cta__content > div {
    padding-inline: 42px;
  }
}

.pm-section--ink .pm-section-title,
.pm-section--ink .pm-lead,
.pm-section--ink p {
  color: #fff;
}

.pm-section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pm-ink);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.pm-section--ink .pm-section-kicker {
  color: rgba(255, 255, 255, 0.85);
}

.pm-section-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.pm-section-intro {
  max-width: 46ch;
  line-height: 1.9;
  margin: 0 0 2rem;
  color: var(--pm-muted);
}

.pm-about-cta {
  text-align: center;
}

.pm-about-cta .pm-section-title,
.pm-about-cta .pm-section-intro {
  width: 100%;
  margin-inline: auto;
  text-align: center !important;
}

.pm-section--ink .pm-section-intro {
  color: rgba(255, 255, 255, 0.88);
}

.pm-grid-2 {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.pm-journey-layout {
  display: block;
}

.pm-journey-layout > div {
  max-width: 100%;
}

.pm-journey-layout .pm-section-intro {
  max-width: none;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .pm-grid-2 {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  #why .pm-grid-2 {
    grid-template-columns: 0.96fr 1.04fr;
    gap: 2.5rem;
  }

  #why .pm-visual {
    width: 100%;
    justify-self: end;
  }
}

.pm-visual {
  position: relative;
  border-radius: var(--pm-radius);
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  background: var(--pm-surface-2);
}

.pm-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  object-fit: cover;
}

.pm-visual--float {
  animation: pmFloat 5.5s ease-in-out infinite;
}

.pm-visual--sway {
  animation: pmSway 5.5s ease-in-out infinite;
}

.pm-visual--sway img {
  animation: none;
}

.pm-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: pmstep;
}

@media (min-width: 760px) {
  .pm-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.pm-step {
  position: relative;
  min-height: 100%;
  background: linear-gradient(145deg, #fff9fd 0%, #f7efff 100%);
  border: 1px solid #ead8f4;
  border-radius: 24px;
  padding: 1.35rem 1.25rem 1.45rem;
  box-shadow: 0 10px 26px rgba(81, 77, 175, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pm-step:nth-child(2) {
  background: linear-gradient(145deg, #f4f1ff 0%, #eaf1ff 100%);
  border-color: #d9ddf5;
}

.pm-step:nth-child(3) {
  background: linear-gradient(145deg, #effaff 0%, #e5f7f4 100%);
  border-color: #cfe9e8;
}

.pm-step:nth-child(4) {
  background: linear-gradient(145deg, #fff8ed 0%, #fff0e9 100%);
  border-color: #f0dcc9;
}

.pm-step:hover {
  transform: translateY(-4px);
  border-color: rgba(119, 173, 253, 0.7);
  box-shadow: 0 18px 34px rgba(81, 77, 175, 0.14);
}

.pm-step::before {
  counter-increment: pmstep;
  content: counter(pmstep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pm-sky), var(--pm-lavender));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(119, 173, 253, 0.25);
}

.pm-step:nth-child(1)::before {
  content: "۱";
}

.pm-step:nth-child(2)::before {
  content: "۲";
}

.pm-step:nth-child(3)::before {
  content: "۳";
}

.pm-step:nth-child(4)::before {
  content: "۴";
}

.pm-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--pm-heading);
}

.pm-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--pm-muted);
}

@media (max-width: 759px) {
  .pm-journey-layout {
    padding-inline: 0.15rem;
  }

  .pm-journey-layout .pm-section-intro {
    white-space: normal;
  }

  .pm-steps {
    grid-template-columns: 1fr;
  }

  .pm-step {
    padding: 1.2rem 1.1rem 1.25rem;
  }
}

.pm-signals {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .pm-signals {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pm-signal {
  border-radius: var(--pm-radius-sm);
  padding: 1.35rem 1.2rem;
  background: var(--pm-white);
  border: 1px solid var(--pm-border);
  min-height: 160px;
}

.pm-signal--self {
  background: linear-gradient(145deg, #efe6ff, #f8f7fc);
}

.pm-signal--support {
  background: linear-gradient(145deg, #e7f1ff, #f8f7fc);
}

.pm-signal--together {
  background: linear-gradient(145deg, #ffe8ef, #f8f7fc);
}

.pm-signal h3 {
  margin: 0 0 0.5rem;
  color: var(--pm-heading);
  font-size: 1.08rem;
}

.pm-signal p {
  margin: 0;
  line-height: 1.8;
  color: var(--pm-muted);
  font-size: 0.94rem;
}

.pm-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .pm-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .pm-cards.pm-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pm-cards.pm-cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pm-card {
  position: relative;
  overflow: hidden;
  background: var(--pm-white);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  padding: 1.55rem 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(81, 77, 175, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: block;
}

.pm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pm-ink), var(--pm-lavender));
  opacity: 0.7;
}

.pm-cards--4 .pm-card:nth-child(2)::before {
  background: linear-gradient(90deg, #5b9cf5, #77adfd);
}

.pm-cards--4 .pm-card:nth-child(3)::before {
  background: linear-gradient(90deg, #f59ab1, #f6c1d0);
}

.pm-cards--4 .pm-card:nth-child(4)::before {
  background: linear-gradient(90deg, #f2b36d, #f8d49d);
}

a.pm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(81, 77, 175, 0.2);
  box-shadow: 0 18px 36px rgba(81, 77, 175, 0.14);
}

.pm-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  display: block;
}

.pm-card h3 {
  margin: 0 0 0.65rem;
  color: var(--pm-heading);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.pm-card p {
  margin: 0;
  color: var(--pm-muted);
  line-height: 1.85;
  font-size: 0.92rem;
}

.pm-feature-list {
  display: grid;
  gap: 1.25rem;
}

.pm-faq details {
  background: var(--pm-white);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.pm-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--pm-heading);
  list-style: none;
}

.pm-faq summary::-webkit-details-marker {
  display: none;
}

.pm-faq details p {
  margin: 0.75rem 0 0;
  line-height: 1.85;
  color: var(--pm-muted);
}

.pm-values {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 760px) {
  .pm-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pm-value {
  padding: 1.35rem 1.25rem;
  border-radius: var(--pm-radius-sm);
  background: linear-gradient(145deg, #fff7fc, #f4efff);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(58, 54, 142, 0.12);
  color: var(--pm-heading);
}

.pm-value:nth-child(2) {
  background: linear-gradient(145deg, #f1f7ff, #e9f4ff);
}

.pm-value:nth-child(3) {
  background: linear-gradient(145deg, #effbf8, #e7f7f4);
}

.pm-value:nth-child(4) {
  background: linear-gradient(145deg, #fff8ed, #fff0e8);
}

.pm-value h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.pm-value p {
  margin: 0;
  line-height: 1.8;
  color: var(--pm-muted);
  opacity: 1;
  font-size: 0.95rem;
}

.pm-compare {
  display: grid;
  gap: 1rem;
}

.pm-diff-heading {
  margin-bottom: 1.5rem;
}

.pm-diff-layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.pm-diff-layout .pm-visual {
  margin: 0;
}

.pm-diff-layout .pm-visual img {
  min-height: 220px;
}

@media (min-width: 760px) {
  .pm-compare {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .pm-diff-layout {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2rem;
  }

  .pm-diff-layout .pm-compare {
    gap: 0.85rem;
  }

  .pm-diff-layout .pm-compare__col {
    padding: 1.1rem 1rem;
  }
}

.pm-compare__col {
  border-radius: var(--pm-radius-sm);
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--pm-border);
}

.pm-compare__col--before {
  background: #fbfafc;
}

.pm-compare__col--after {
  background: linear-gradient(145deg, #efe6ff, #e8f2ff);
  border-color: #d9cef2;
}

.pm-compare__col h3 {
  margin: 0 0 0.85rem;
  color: var(--pm-heading);
}

.pm-compare__col ul {
  margin: 0;
  padding-inline-start: 1.1rem;
  line-height: 1.9;
  color: var(--pm-muted);
}

.pm-articles {
  display: grid;
  gap: 1rem;
}

.pm-articles__empty {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 180px;
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px dashed #d8c9ed;
  border-radius: 24px;
  background: linear-gradient(135deg, #faf5ff, #f5fbff);
  color: var(--pm-muted);
  text-align: center;
}

.pm-articles__empty span {
  color: var(--pm-lavender);
  font-size: 2rem;
}

.pm-articles__empty p {
  margin: 0;
}

@media (min-width: 760px) {
  .pm-articles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pm-articles-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-inline: 0.25rem;
}

.pm-articles-heading .pm-section-title {
  margin-bottom: 0.15rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.pm-articles-heading__intro {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.9rem;
}

.pm-articles-heading__link,
.pm-article__more {
  color: var(--pm-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pm-articles-heading__link:hover,
.pm-article__more:hover {
  color: #7d65c7;
}

.pm-article {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(145deg, #fff, #fffafe);
  border: 1px solid #e6d9f4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(129, 102, 177, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pm-articles--single {
  max-width: 1040px;
  margin-inline: auto;
}

.pm-articles--single .pm-article__media {
  height: 280px;
}

.pm-articles--single .pm-article__media img {
  object-fit: contain;
  background: linear-gradient(135deg, #eee4ff, #e5f2ff);
}

.pm-articles--single .pm-article__body {
  min-height: 0;
  padding: 1.35rem 1.5rem 1.45rem;
}

.pm-articles--single .pm-article h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.pm-article:nth-child(2) {
  border-color: #d5e8f3;
  background: linear-gradient(145deg, #fff, #f7fcff);
}

.pm-article:nth-child(3) {
  border-color: #f0d8df;
  background: linear-gradient(145deg, #fff, #fff8fa);
}

.pm-article:hover {
  transform: translateY(-6px);
  border-color: #bea6df;
  box-shadow: 0 20px 40px rgba(129, 102, 177, 0.17);
}

.pm-article__media {
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eee4ff, #e5f2ff);
}

.pm-article:nth-child(2) .pm-article__media {
  background: linear-gradient(135deg, #e2f3fb, #edf7ff);
}

.pm-article:nth-child(3) .pm-article__media {
  background: linear-gradient(135deg, #ffe5ec, #fff0e6);
}

.pm-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  transition: transform 0.4s ease;
}

.pm-article:hover .pm-article__media img {
  transform: scale(1.04);
}

.pm-article__media span {
  color: rgba(81, 77, 175, 0.42);
  font-size: 3.2rem;
}

.pm-article__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.pm-article__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--pm-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.pm-article h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--pm-heading);
  line-height: 1.55;
}

.pm-article p {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.pm-article__more {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .pm-articles-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.pm-page-hero {
  position: relative;
  isolation: isolate;
  padding: 1.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(119, 173, 253, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 0%, rgba(187, 143, 242, 0.28), transparent 50%),
    var(--pm-surface);
}

.pm-page-hero--photo {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.75rem;
  overflow: hidden;
}

.pm-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pm-page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pm-page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 247, 252, 0.35) 0%,
    rgba(248, 247, 252, 0.78) 55%,
    rgba(248, 247, 252, 0.96) 100%
  );
}

.pm-page-hero--photo .pm-container {
  position: relative;
  z-index: 1;
}

.pm-page-hero h1 {
  font-family: "Mahboubeh Mehravar", "IRAN Rounded", Tahoma, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--pm-heading);
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.pm-roadmap {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(145deg, #efe6ff 0%, #e8f2ff 52%, #f8f7fc 100%);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 1.5rem;
  box-shadow: var(--pm-shadow);
}

@media (min-width: 860px) {
  .pm-roadmap {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 2rem 2.25rem;
    gap: 2.5rem;
  }

  .pm-roadmap__art {
    order: 2;
  }

  .pm-roadmap__copy {
    order: 1;
  }
}

.pm-roadmap__art {
  margin: 0;
  border-radius: var(--pm-radius-sm);
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.pm-roadmap__art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pm-roadmap__tagline {
  font-weight: 700;
  color: var(--pm-ink);
  margin: 0 0 1.25rem;
}

.pm-section--roadmap {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.pm-card__thumb {
  width: 100%;
  max-width: 140px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 0.85rem;
  display: block;
  border-radius: 16px;
}

.pm-feature-row {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--pm-white);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  padding: 1.25rem;
}

@media (min-width: 800px) {
  .pm-feature-row {
    grid-template-columns: 140px 1fr;
    padding: 1.5rem 1.75rem;
  }
}

.pm-feature-row__media {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #efe6ff, #e4f0ff);
  display: grid;
  place-items: center;
}

.pm-feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-feature-row__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pm-lavender), var(--pm-sky));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.pm-feature-row__mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #efe6ff, #e4f0ff);
  color: var(--pm-ink);
  font-size: 1.7rem;
  font-weight: 800;
}

.pm-feature-row h3 {
  margin: 0 0 0.4rem;
  color: var(--pm-heading);
  font-size: 1.2rem;
}

.pm-feature-row p {
  margin: 0;
  line-height: 1.85;
  color: var(--pm-muted);
}

.pm-reveal {
  animation: pmFadeUp 0.7s ease both;
}

.pm-reveal-delay-1 { animation-delay: 0.12s; }
.pm-reveal-delay-2 { animation-delay: 0.24s; }
.pm-reveal-delay-3 { animation-delay: 0.36s; }

@keyframes pmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pmSway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}

@keyframes pmFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-visual--float,
  .pm-visual--sway,
  .pm-hero__figure img,
  .pm-reveal,
  .pm-reveal-delay-1,
  .pm-reveal-delay-2,
  .pm-reveal-delay-3,
  .pm-step,
  .pm-btn,
  .pm-card,
  .pm-article {
    animation: none !important;
    transition: none !important;
  }
}
