/* =========================================================
   SUBSCRIPTION PAGE — SHARED BASE
   Used by:
   - subscription.php Version A during beta
   - subscription.php Version B after beta
   This block replaces the old SUBSCRIPTION / PRICING LAYOUT block.
   ========================================================= */

.subscription-page {
  padding-bottom: 90px;
}

/* Top message above the cards */
.pricing-hero {
  text-align: center;
  margin: 24px auto 22px;
}

.pricing-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  color: #081a3e;
  margin-bottom: 8px;
}

.pricing-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Plan card grid wrapper */
.pricing-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

/* Shared plan card styling */
.plan-card {
  border-radius: 16px;
  padding: 18px 17px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 218px;
  text-align: left;
}

/* Top content inside each card */
.plan-card-main {
  margin-bottom: 16px;
}

/* Card title */
.plan-name {
  font-size: 1.18rem;
  color: #081a3e;
  margin-bottom: 6px;
}

/* Price / access level */
.plan-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #081a3e;
  margin-bottom: 6px;
  text-shadow: 0px 1px 0px rgba(255,255,255,0.6);
}

/* Short value line below price */
.plan-tagline {
  font-size: 0.98rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

/* Short supporting sentence in the card */
.plan-short-text {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.42;
}

/* Shared card button */
.plan-button {
  background: #081a3e;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: background 0.2s ease;
}

.plan-button:hover {
  background: #0b265e;
}

/* Primary button style */
.plan-button-primary {
  background: #16b34a;
}

.plan-button-primary:hover {
  background: #12953d;
}

/* Card color themes */
.plan-tester {
  background: linear-gradient(180deg, #efe5fb 0%, #dde7f5 100%);
  border: 1px solid #c5cee0;
}

.plan-free {
  background: linear-gradient(180deg, #e8ecf5 0%, #d5dcec 100%);
  border: 1px solid #c5cee0;
}

.plan-premium,
.plan-week,
.plan-month,
.plan-year {
  background: linear-gradient(180deg, #e0f4f6 0%, #c6e9ec 100%);
  border: 1px solid #abd7da;
}

/* Featured plan highlight */
.plan-featured {
  border: 2px solid #16b34a;
  box-shadow: 0 8px 20px rgba(22,179,74,0.14);
}

/* Premium card price buttons in Version A */
.premium-price-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

/* ===== PREMIUM PLAN BUTTON COLORS ===== */

/* Base style for the three Premium period buttons */
.premium-price-options button {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: assistant;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.premium-price-options button:hover {
  transform: translateY(-1px);
}

/* 1 Week — WHITE (entry level) */
.premium-price-options button:nth-child(1) {
    background: #ffffff;
    color: #081a3e;
    border: 1px solid #c8d3df;
}

/* 1 Month — GREEN (main action) */
.premium-price-options button:nth-child(2) {
    background: #16b34a;
    color: #ffffff;
    border: 1px solid #16b34a;
    font-weight: 700;
}

/* 1 Year — GRAY (long-term commitment) */
.premium-price-options button:nth-child(3) {
    background: #e9edf3;
    color: #081a3e;
    border: 1px solid #c8d3df;
}

/* ===== HOVER STATES (keep color logic) ===== */

/* Week hover */
.premium-price-options button:nth-child(1):hover {
    background: #f5f7fa;
}

/* Month hover (slightly darker green) */
.premium-price-options button:nth-child(2):hover {
    background: #0e7a33;
}

/* Year hover */
.premium-price-options button:nth-child(3):hover {
    background: #dfe5ec;
}

/* Premium comparison section */
.premium-unlocks {
  margin-top: 16px;
  padding-top: 4px;
}

.section-heading-block {
  text-align: center;
  margin-bottom: 16px;
}

.section-heading-block h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  color: #081a3e;
  margin-bottom: 8px;
}

.section-heading-block p {
  max-width: 780px;
  margin: 0 auto 6px;
  color: #444;
  line-height: 1.55;
}

.scroll-hint {
  font-size: 0.95rem;
  color: #0b2f73 !important;
  font-weight: 700;
}

/* Comparison table wrapper */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #d6dae3;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.95rem;
}

.comparison-table th {
  background: #081a3e;
  color: #ffffff;
  padding: 12px 14px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef1f5;
  color: #222;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  text-align: center;
  width: 100px;
}

.comparison-table tr:nth-child(even):not(.comparison-group-row) {
  background: #f8f9fb;
}

.comparison-group-row td {
  background: #e7edf7;
  color: #081a3e;
  font-weight: 800;
  text-align: left !important;
  padding: 10px 14px;
}

/* Green V and red X */
.feature-yes {
  color: #168a3a;
  font-weight: 900;
  font-size: 1.28rem;
}

.feature-no {
  color: #c62828;
  font-weight: 900;
  font-size: 1.28rem;
}

/* Upgrade explanation section below the table */
.upgrade-reason {
  margin: 28px auto 0;
}

.upgrade-reason h2 {
  text-align: center;
  color: #081a3e;
  margin-bottom: 14px;
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.upgrade-grid div {
  background: #f6f7f9;
  border: 1px solid #d6dae3;
  border-radius: 14px;
  padding: 16px;
}

.upgrade-grid strong {
  display: block;
  color: #081a3e;
  margin-bottom: 6px;
}

.upgrade-grid span {
  display: block;
  color: #444;
  line-height: 1.45;
}

/* =========================================================
   SUBSCRIPTION PAGE — VERSION A: BETA PERIOD
   3 cards: Beta Tester | Free | Premium
   ========================================================= */

.subscription-version-a .pricing-cards-a {
  grid-template-columns: repeat(3, 1fr);
}

.subscription-version-a .plan-premium {
  background: linear-gradient(180deg, #dff7e8 0%, #b9edcd 100%);
}

/* =========================================================
   SUBSCRIPTION PAGE — VERSION B: REGULAR USE
   4 cards: Free | Premium 1 Week | Premium 1 Month | Premium 1 Year
   ========================================================= */

.subscription-version-b .pricing-cards-b {
  grid-template-columns: repeat(4, 1fr);
}

.subscription-version-b .plan-month {
  background: linear-gradient(180deg, #dff7e8 0%, #b9edcd 100%);
}

/* =========================================================
   SUBSCRIPTION PAGE — RESPONSIVE
   Applies to both versions
   ========================================================= */

@media (max-width: 980px) {
  .subscription-version-a .pricing-cards-a,
  .subscription-version-b .pricing-cards-b,
  .upgrade-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }

  .comparison-table {
    min-width: 640px;
  }
}

@media (max-width: 600px) {
  .pricing-hero {
    margin: 18px auto 18px;
  }

  .pricing-hero p {
    font-size: 1rem;
  }

  .plan-card {
    padding: 17px 15px;
  }

  .plan-price {
    font-size: 1.55rem;
  }

  .premium-unlocks {
    margin-top: 10px;
  }

  .comparison-table-wrap {
    border-radius: 12px;
  }

  .comparison-table {
    min-width: 560px;
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}

/* ======================= END SUBSCRIPTION PAGE ======================= */
