/* Prices page — essaysbot.com */

.pp-page { background: #fff; color: #1f2937; }
.pp-container { width: min(1170px, calc(100% - 40px)); margin: 0 auto; }

/* breadcrumb container reuse */
.ewc-container { width: min(1170px, calc(100% - 40px)); margin: 0 auto; }

/* ===== Hero ===== */
.pp-hero { padding: 60px 0 40px; text-align: center; }
.pp-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 21px; }
.pp-hero__trust { display: inline-flex; align-items: center; gap: 8px; }
.pp-hero__avatars { display: inline-flex; }
.pp-hero__avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -12px; }
.pp-hero__avatars img:first-child { margin-left: 0; }
.pp-hero__trust-text { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #000; }
.pp-hero__trust-text span { font-weight: 500; color: #4b5563; }
.pp-hero__title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 52px; line-height: 1.2; color: #1f2937; }
.pp-hero__title span { color: var(--color-green); }
.pp-hero__subtitle { margin: 0; max-width: 760px; font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--color-gray); }

/* ===== Plan selector ===== */
.pp-plans-section { padding: 20px 0 60px; }
.pp-plans { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.pp-plan { position: relative; background: var(--color-bg-light); border-radius: 16px; padding: 40px 8px 8px; cursor: pointer; transition: background .2s ease; }
.pp-plan__label { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--font-body); font-weight: 500; font-size: 14px; color: #1a1a1a; white-space: nowrap; }
.pp-plan__inner { background: #fff; border-radius: 16px; padding: 30px; }
.pp-plan__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 240px; }
.pp-plan__details { display: flex; align-items: center; gap: 14px; }
.pp-plan__radio { width: 28px; height: 28px; border-radius: 14px; border: 2px solid var(--color-green); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; }
.pp-plan__radio svg { width: 14px; height: 14px; display: none; }
.pp-plan__name { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: #1a1a1a; white-space: nowrap; }
.pp-plan__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.pp-plan__amount { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: #1a1a1a; }
.pp-plan__amount small { font-size: 14px; font-weight: 700; }
.pp-plan__note { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--color-gray); }

/* selected → green gradient (like "most popular") */
.pp-plan--selected { background: linear-gradient(180deg, #10b981 0%, #07533a 180%); }
.pp-plan--selected .pp-plan__label { color: #fff; }
.pp-plan--selected .pp-plan__radio { background: var(--color-green); border-color: var(--color-green); }
.pp-plan--selected .pp-plan__radio svg { display: block; }

.pp-plans-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 32px; }
.pp-get-started { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 40px; border-radius: 12px; background: var(--color-green); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s ease; }
.pp-get-started:hover { background: var(--color-green-dark); }
.pp-rating { display: flex; align-items: center; gap: 12px; }
.pp-rating__label { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: #1a1a1a; }
.pp-rating__stars { display: inline-flex; gap: 2px; }
.pp-rating__star { width: 18px; height: 18px; border-radius: 3px; background: var(--color-green); display: flex; align-items: center; justify-content: center; }
.pp-rating__star svg { width: 11px; height: 11px; }
.pp-rating__count { font-family: var(--font-body); font-size: 14px; color: #1a1a1a; text-decoration: underline; }

/* ===== Comparison table ===== */
.pp-compare { padding: 80px 0; }
.pp-compare__header { text-align: center; display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.pp-compare__title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 40px; color: #1f2937; }
.pp-compare__subtitle { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--color-gray); }
.pp-table { max-width: 986px; margin: 0 auto; border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; }
.pp-table__head, .pp-table__row { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid var(--color-border); }
.pp-table__head { background: var(--color-bg-light); }
.pp-table__row:last-child { border-bottom: 0; }
.pp-table__feature { flex: 1; font-family: var(--font-body); font-size: 16px; color: var(--color-dark); }
.pp-table__head .pp-table__feature, .pp-table__col-title { font-weight: 700; color: #1f2937; }
.pp-table__col { width: 160px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pp-table__val { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: #1f2937; }
.pp-table__val--green { color: var(--color-green); font-weight: 600; }
.pp-table__premium-badge { width: 24px; height: 24px; border-radius: 16px; background: #d4f8e7; display: flex; align-items: center; justify-content: center; }
.pp-table__premium-badge svg { width: 13px; height: 13px; }
.pp-table__cat { display: flex; padding: 16px 20px; background: #f3f4f6; border-bottom: 1px solid var(--color-border); font-family: var(--font-body); font-weight: 800; font-size: 14px; text-transform: uppercase; color: #000; }
.pp-mark { width: 24px; height: 24px; border-radius: 100px; display: flex; align-items: center; justify-content: center; }
.pp-mark--yes { background: #eaf9f1; }
.pp-mark--no { background: #fdf2f2; }
.pp-mark svg { width: 12px; height: 12px; }

/* ===== Testimonials ===== */
.pp-testimonials { background: var(--color-bg-light); padding: 80px 0; }
.pp-testimonials__header { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; }
.pp-testimonials__title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 40px; color: #1f2937; }
.pp-testimonials__subtitle { margin: 0; max-width: 720px; font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--color-gray); }
.pp-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pp-tcard { background: #fff; border: 1px solid var(--color-border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.pp-tcard__top { display: flex; align-items: center; justify-content: space-between; }
.pp-tcard__stars { display: inline-flex; gap: 4px; }
.pp-tcard__stars svg { width: 16px; height: 16px; }
.pp-tcard__badge { width: 16px; height: 16px; display: flex; align-items: center; }
.pp-tcard__badge img { width: 16px; height: 16px; }
.pp-tcard__text { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 24px; color: #1f2937; }
.pp-tcard__author { display: flex; align-items: flex-end; justify-content: space-between; }
.pp-tcard__name { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 14px; color: #1f2937; }
.pp-tcard__role { margin: 2px 0 0; font-family: var(--font-body); font-size: 12px; color: var(--color-gray); }
.pp-tcard__date { margin: 0; font-family: var(--font-body); font-size: 12px; color: var(--color-gray); }

/* ===== CTA card ===== */
.pp-cta { padding: 0 0 100px; }
.pp-cta__card { background: #e7f8f2; border-radius: 12px; padding: 50px 30px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.pp-cta__icon { width: 100px; height: 100px; border-radius: 100px; background: var(--color-green); display: flex; align-items: center; justify-content: center; }
.pp-cta__icon svg { width: 52px; height: 42px; }
.pp-cta__title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 40px; line-height: 1.2; color: #1f2937; }
.pp-cta__text { margin: 0; max-width: 760px; font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 26px; color: var(--color-gray); }
.pp-cta__btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 12px; background: #000; color: #fff; font-family: var(--font-body); font-size: 16px; text-decoration: none; transition: opacity .15s ease; }
.pp-cta__btn:hover { opacity: .88; }

/* ===== Responsive ===== */
.pp-plan, .pp-plan__inner { box-sizing: border-box; }

@media (max-width: 1024px) {
  .pp-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / mobile: plans stack full-width, price never spills the card */
@media (max-width: 900px) {
  .pp-plans { flex-direction: column; align-items: center; }
  .pp-plan { width: 100%; max-width: 440px; }
  .pp-plan__inner { width: 100%; }
  .pp-plan__row { width: 100%; }
}

@media (max-width: 768px) {
  .pp-hero { padding: 40px 0 30px; }
  .pp-hero__title { font-size: 32px; }
  .pp-hero__subtitle { font-size: 14px; line-height: 18px; }
  .pp-compare__subtitle, .pp-testimonials__subtitle, .pp-cta__text { font-size: 16px; }
  .pp-compare__title, .pp-testimonials__title { font-size: 24px; }
  .pp-cta__title { font-size: 28px; }
  .pp-testimonials__grid { grid-template-columns: 1fr; }
  .pp-compare { padding: 40px 0; }
  .pp-testimonials, .pp-plans-section { padding: 40px 0; }

  /* Comparison → mobile stacked layout (matches the Figma mobile frame):
     hide the column-header row; each feature name sits on its own line, then
     "Free: X" and "Premium: Y" appear side by side beneath it. */
  .pp-compare__header { text-align: left; align-items: flex-start; margin-bottom: 24px; }
  .pp-table__head { display: none; }
  .pp-table__cat { padding: 12px 16px; font-size: 12px; }
  .pp-table__row { flex-wrap: wrap; align-items: flex-start; gap: 8px 20px; padding: 16px; }
  .pp-table__feature { width: 100%; flex: none; padding: 0; font-size: 14px; font-weight: 500; }
  .pp-table__col { width: auto; justify-content: flex-start; gap: 6px; }
  .pp-table__col::before { content: "Free:"; color: var(--color-gray); font-family: var(--font-body); font-size: 14px; font-weight: 400; }
  .pp-table__col:last-child::before { content: "Premium:"; color: var(--color-green); }
  .pp-table__val { font-size: 13px; font-weight: 600; }
  .pp-mark { background: transparent; width: 16px; height: 16px; }
  .pp-mark svg { width: 14px; height: 14px; }

  .pp-tcard { padding: 24px; }
  .pp-cta__card { padding: 40px 20px; }
  .pp-cta__icon { width: 80px; height: 80px; }
  .pp-cta__icon svg { width: 40px; height: 34px; }
}
