/* ================= pricing ================= */
.pricing {
  position: relative; padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px);
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(217, 178, 106, 0.09), transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(57, 217, 138, 0.04), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.pricing__inner { max-width: 1080px; margin: 0 auto; }
.pricing__head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 7vh, 72px); }
.pricing__h { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.pricing__h em, .plan__name em {
  font-style: italic;
  background: linear-gradient(100deg, #b3843a, #f7dc9c 40%, #d9b26a 65%, #a27630);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.05em;
}

.pricing__refund {
  display: inline-flex; align-items: center; gap: 10px; margin: 22px auto 0; padding: 9px 18px 9px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--green);
  border: 1px solid rgba(57, 217, 138, 0.35); background: rgba(57, 217, 138, 0.07);
}
.pricing__refund svg { width: 20px; height: 20px; flex: none; }

/* DM hand-off toast */
.dm-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; width: min(440px, calc(100% - 32px));
  translate: -50% 16px; opacity: 0; transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
  padding: 14px 18px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
  border: 1px solid rgba(217, 178, 106, 0.4); background: rgba(13, 12, 16, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}
.dm-toast.is-on { opacity: 1; translate: -50% 0; }
.dm-toast b { color: var(--ink); }
.dm-toast span { display: block; margin-top: 6px; color: var(--gold-2); font-weight: 600; }

.plans { display: grid; grid-template-columns: 1fr 1.12fr; gap: 24px; align-items: center; }

.plan {
  position: relative; padding: clamp(28px, 3.4vw, 40px);
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.pricing.is-in .plan { opacity: 1; transform: none; }
.pricing.is-in .plan--yearly { transition-delay: 0.12s; }

/* featured: gold gradient border + glow */
.plan--yearly {
  padding: clamp(34px, 4vw, 48px);
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, #15130f, #0b0a0c 60%) padding-box,
    linear-gradient(140deg, #f5d896, rgba(217, 178, 106, 0.25) 40%, rgba(217, 178, 106, 0.1) 60%, #d9b26a) border-box;
  box-shadow: 0 40px 120px -50px rgba(217, 178, 106, 0.55), 0 0 0 1px rgba(217, 178, 106, 0.05);
}

.plan__ribbon {
  position: absolute; top: -14px; right: 28px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #04140b;
  background: linear-gradient(120deg, #6ff0b0, var(--green) 55%, #23b06c);
  box-shadow: 0 8px 30px -8px rgba(57, 217, 138, 0.8);
}

.plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.plan__tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.plan__desc { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }

.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 28px 0 0; }
.plan__amount { font-size: clamp(52px, 5.4vw, 72px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan--yearly .plan__amount { font-weight: 400; color: var(--gold-2); text-shadow: 0 0 40px rgba(217, 178, 106, 0.35); }
.plan__cur { font-size: 24px; font-weight: 400; color: var(--ink-2); }
.plan__per { font-size: 15px; color: var(--ink-3); }
.plan__was { width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 15px; color: var(--ink-3); }
.plan__was s, .plan__note s { text-decoration-color: rgba(240, 80, 94, 0.8); text-decoration-thickness: 1.5px; }
.plan__note s { color: var(--ink-3); }
.plan__off {
  padding: 4px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffb3ba; background: rgba(240, 80, 94, 0.14); border: 1px solid rgba(240, 80, 94, 0.35);
}
.plan__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.plan__note b { color: var(--ink); font-weight: 600; }

/* 12-month strip: 10 paid + 2 free */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin: 26px 0 0; }
.months i {
  height: 8px; border-radius: 4px; background: linear-gradient(90deg, #a77c34, #d9b26a);
  opacity: 0; transform: scaleY(0.3);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.5s + var(--k) * 0.05s);
}
.months i.is-gift { background: linear-gradient(90deg, #2fc47d, #6ff0b0); box-shadow: 0 0 14px rgba(57, 217, 138, 0.7); }
.pricing.is-in .months i { opacity: 1; transform: none; }
.months__caption { display: flex; justify-content: space-between; margin: 9px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.months__caption span:last-child { color: var(--green); }

.plan__cta { width: 100%; justify-content: center; margin-top: 30px; }

.plan__list { list-style: none; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(217, 178, 106, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23f5d896' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.pricing__trust {
  list-style: none; margin: clamp(40px, 6vh, 56px) 0 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.pricing__trust li { display: inline-flex; align-items: center; gap: 10px; }
.pricing__trust li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; gap: 36px; max-width: 520px; margin: 0 auto; }
  .plan--yearly { order: -1; } /* featured plan first on small screens */
}
@media (prefers-reduced-motion: reduce) {
  .plan, .months i { transition-duration: 0.01s; transition-delay: 0s; }
}

/* screenshot/debug mode (?pr) */
.debug-pricing .hero, .debug-pricing .trends, .debug-pricing .demo, .debug-pricing .cov, .debug-pricing .faq { display: none; }
