/* ==========================================================================
   پارسا میت — اشتراک پرو

   A page of its own on purpose. It shares the palette, the type and the
   14px radius from style.css and nothing else: no 3D scene, its own header,
   its own band treatment. Delete pro.html, this file, js/pro.js, the `pro/`
   route and the one button in the landing header, and no trace is left.

   z-index, for the whole app: 0 scene / 1 sections / 2 stage / 5 chat sheet /
   20 this sticky header / 50 the room's name gate.
   ========================================================================== */

.page-pro {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--rack);
}

.page-pro main { flex: 1; }

/* ------------------------------------------------------------------ nav */

.pro-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 16, 18, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.pro-nav-inner {
  width: min(100%, var(--page-w));
  margin-inline: auto;
  padding: 12px var(--stage-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
}

.pro-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.035);
  color: var(--dim);
  font-size: var(--fs-label);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.pro-back:hover { color: var(--ink); border-color: var(--hair-2); }

/* ----------------------------------------------------------------- hero */

/* The band the plans hang off the bottom edge of. Its lower padding is not
   breathing room - it is the room the overlap is cut out of. */
.pro-hero {
  background:
    radial-gradient(85% 130% at 88% 0%, rgba(52, 224, 176, 0.1), transparent 62%),
    radial-gradient(55% 90% at 6% 100%, rgba(52, 224, 176, 0.05), transparent 68%),
    var(--bay);
  border-bottom: 1px solid var(--hair);
}

.pro-hero-inner {
  width: min(100%, var(--page-w));
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--stage-pad) clamp(104px, 13vw, 156px);
}

.pro-title {
  max-width: 18ch;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
}

.pro-sub {
  margin-top: clamp(12px, 1.6vw, 18px);
  max-width: 34rem;
  color: var(--dim);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.85;
}

.pro-hero-inner > * {
  animation: settle 0.6s var(--ease) backwards;
}

.pro-hero-inner > *:nth-child(2) { animation-delay: 0.07s; }

/* ---------------------------------------------------------------- plans */

/* Overlaps the hero band rather than stacking under it: the cards read as
   attached to the band instead of as a second, unrelated row. */
.plans {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.plans-inner {
  width: min(100%, var(--page-w));
  margin-inline: auto;
  padding: 0 var(--stage-pad) clamp(56px, 8vw, 104px);
}

.plans-title {
  max-width: 22rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
}

.plan-grid {
  margin-top: clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2vw, 24px);
  background: var(--bay-2);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  animation: settle 0.6s var(--ease) backwards;
}

.plan:nth-child(1) { animation-delay: 0.05s; }
.plan:nth-child(2) { animation-delay: 0.11s; }
.plan:nth-child(3) { animation-delay: 0.17s; }
.plan:nth-child(4) { animation-delay: 0.23s; }

.plan-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dim);
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}

.plan-price b {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  font-size: 0.8125rem;
  color: var(--dim);
}

.plan-term {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.plan-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.85;
  color: var(--dim);
}

.plan-save {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--link);
}

/* The button is pushed to the bottom so every card ends on the same line no
   matter how many lines its copy took. */
.plan-buy {
  margin-top: auto;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--link-line);
  border-radius: var(--r);
  background: var(--bay);
  color: var(--link);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
              transform 0.16s var(--ease);
}

.plan-buy:hover { background: rgba(52, 224, 176, 0.1); border-color: var(--link); }
.plan-buy:active { transform: translateY(2px); }

/* The one card with an opinion: the biggest saving, and the only solid CTA
   in the grid - four mint slabs in a row would say nothing. */
.plan--pick {
  background:
    linear-gradient(var(--link-soft), var(--link-soft)),
    var(--bay-2);
  border-color: var(--link-line);
  box-shadow: var(--e2);
}

.plan--pick .plan-buy {
  background: var(--link);
  border-color: var(--link);
  color: var(--link-ink);
}

.plan--pick .plan-buy:hover {
  background: var(--link-hi);
  border-color: var(--link-hi);
}

.plan-badge {
  position: absolute;
  top: clamp(14px, 1.6vw, 20px);
  inset-inline-end: clamp(14px, 1.6vw, 20px);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--link-soft);
  border: 1px solid var(--link-line);
  color: var(--link);
  font-size: 0.6875rem;
  font-weight: 700;
}

.pay-note {
  margin-top: clamp(18px, 2.4vw, 28px);
  padding: 12px 16px;
  border-radius: var(--r);
  background:
    linear-gradient(var(--hold-soft), var(--hold-soft)),
    var(--bay-2);
  border: 1px solid var(--hold-line);
  border-inline-start: 3px solid var(--hold);
  color: var(--ink);
  font-size: var(--fs-label);
  line-height: 1.8;
}

/* -------------------------------------------------------------- benefits */

.benefits {
  background: var(--bay);
  border-top: 1px solid var(--hair);
}

.benefits-inner {
  width: min(100%, var(--page-w));
  margin-inline: auto;
  padding: clamp(44px, 6vw, 88px) var(--stage-pad) clamp(52px, 7vw, 96px);
}

.benefits-title {
  max-width: 24rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
}

.benefit-list {
  list-style: none;
  margin: clamp(24px, 3vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px) clamp(24px, 3vw, 44px);
}

.benefit {
  border-top: 1px solid var(--hair-2);
  padding-top: clamp(14px, 1.6vw, 18px);
}

.benefit h3 {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
}

.benefit p {
  margin: 0;
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.85;
}

/* Revealed only when pro.js has decided it is going to reveal them, so a
   visitor with reduced motion, or one whose script never loads, reads the
   list straight away instead of finding it blank. */
.benefit-list.will-reveal .benefit {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.benefit-list.will-reveal .benefit.is-in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------- foot */

.pro-foot {
  background: var(--rack);
  border-top: 1px solid var(--hair);
}

.pro-foot-inner {
  width: min(100%, var(--page-w));
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) var(--stage-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pro-foot .wordmark { color: var(--dim); }

/* ================================================================ responsive */

@media (max-width: 1000px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  /* No room to hang the cards off the band once the grid stacks, so the
     overlap comes off and the band closes on its own edge. */
  .plans { margin-top: 0; }

  .pro-hero-inner { padding-bottom: clamp(40px, 8vw, 64px); }

  .pro-title { max-width: none; }
}

@media (max-width: 620px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .benefit-list { grid-template-columns: minmax(0, 1fr); }

  .pro-nav-inner { padding-block: 10px; }
  .pro-back { padding: 0 11px; }
}

/* Brand and back link on one line at 320px: the label must not wrap, so the
   things around it give way instead. */
@media (max-width: 560px) {
  .pro-nav .lockup { gap: 12px; }
  .pro-nav .wordmark { font-size: 0.9375rem; }
  .pro-nav .mark { width: 46px; height: 34px; }
  .pro-back { padding: 0 10px; font-size: 0.75rem; }
}
