/* Subscription plans — Speech Saathi */

:root {
  --sp-bg: #fff8f7;
  --sp-text: #271716;
  --sp-muted: #5c4c4a;
  --sp-accent: #9c1c2e;
  --sp-accent-deep: #7a1524;
  --sp-card: #ffffff;
  --sp-faq-bg: #fff0f0;
  --sp-banner: #ffeef0;
  --sp-elite-btn: #3d4f5f;
  --sp-radius: 16px;
  --sp-radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.plans-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--sp-text);
  background: var(--sp-bg);
}

.plans-page a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.plans-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 28px 20px;
  background: rgba(255, 252, 251, 0.92);
  border-bottom: 1px solid #f0deda;
}

.plans-logo-link {
  display: inline-block;
  line-height: 0;
}

.plans-logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

a.plans-logo-link:hover .plans-logo-img {
  opacity: 0.92;
}

.plans-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.plans-header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sp-muted);
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
}

.plans-header-nav a:hover {
  color: var(--sp-text);
}

.plans-header-nav a.active {
  color: var(--sp-text);
  border-bottom-color: var(--sp-accent);
}

.plans-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plans-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #edd5d5;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #5c4c4a;
  padding: 0;
}

.plans-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* Main */
.plans-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}

.plans-hero {
  text-align: center;
  margin-bottom: 40px;
}

.plans-hero h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1.2;
}

.plans-hero h1 span {
  color: var(--sp-accent);
}

.plans-hero p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sp-muted);
}

/* Card row */
.plans-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-bottom: 48px;
}

.plan-card {
  background: var(--sp-card);
  border-radius: var(--sp-radius-lg);
  padding: 28px 24px 26px;
  box-shadow: 0 10px 36px rgba(39, 23, 22, 0.08);
  border: 1px solid #f5ebe9;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  background: linear-gradient(165deg, #b91c2c 0%, #9c1c2e 45%, #7a1524 100%);
  color: #fff;
  border: none;
  box-shadow: 0 20px 50px rgba(156, 28, 46, 0.45);
  transform: scale(1.03);
  z-index: 1;
  padding-top: 36px;
}

.plan-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--sp-accent);
}

.plan-card h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-card.featured h2 {
  color: #fff;
  margin-top: 8px;
}

.plan-price {
  margin: 0 0 20px;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-card.featured .plan-price {
  color: #fff;
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
}

.plan-save {
  display: block;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sp-accent);
}

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--sp-muted);
}

.plan-card.featured .plan-features li {
  color: rgba(255, 255, 255, 0.92);
}

.plan-features li.muted {
  color: #9a8a88;
  text-decoration: none;
}

.plan-card.featured .plan-features li.muted {
  color: rgba(255, 255, 255, 0.55);
}

.plan-features .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--sp-accent);
}

.plan-card.featured .plan-features .check {
  color: #fff;
}

.plan-features .x-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #c2410c;
}

.plan-features .star-inline {
  display: inline-flex;
  margin-right: 4px;
  vertical-align: middle;
  color: var(--sp-accent);
}

.plan-card .plan-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
  text-decoration: none;
}

.plan-starter .plan-cta {
  background: #fff;
  color: var(--sp-accent);
  border: 2px solid var(--sp-accent);
}

.plan-starter .plan-cta:hover {
  background: #fff5f5;
}

.plan-pro .plan-cta {
  background: #fff;
  color: var(--sp-accent);
}

.plan-pro .plan-cta:hover {
  background: #fff5f5;
}

.plan-elite .plan-cta {
  background: var(--sp-elite-btn);
  color: #fff;
  border: none;
}

.plan-elite .plan-cta:hover {
  filter: brightness(1.06);
}

/* FAQ */
.plans-faq {
  margin-bottom: 36px;
}

.plans-faq > h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sp-text);
}

.plans-faq > .intro {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--sp-muted);
  max-width: 520px;
}

.faq-item {
  background: var(--sp-faq-bg);
  border-radius: var(--sp-radius);
  padding: 18px 20px 18px 56px;
  margin-bottom: 12px;
  border: 1px solid #f5d8d8;
  position: relative;
}

.faq-icon {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--sp-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sp-muted);
}

/* Footer banner */
.plans-banner {
  background: var(--sp-banner);
  border-radius: var(--sp-radius-lg);
  padding: 24px 28px;
  border: 1px solid #f5d0d0;
  text-align: center;
}

.plans-banner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sp-muted);
}

.plans-banner strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sp-text);
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .plans-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .plan-card.featured {
    transform: none;
    order: -1;
  }
}

@media (max-width: 640px) {
  .plans-header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
  }

  .plans-main {
    padding: 24px 16px 40px;
  }
}
