*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-hi:  #161410;
  --border:      #1e1e1e;
  --border-soft: #2e2a26;
  --text:        #ddd6cc;
  --text-dim:    #a09585;
  --text-faint:  #5c5450;
  --gold:        #b8976a;
  --gold-bright: #d4b485;
  --white:       #f0ece4;
  --radius:      10px;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Crimson Pro", Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.25rem 6rem;
}

main {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  padding-top: 3rem;
}

/* ── Shared Page Header ── */

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-14px);
  animation: fadeSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.page-eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.7;
}

.page-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.06em;
  text-align: center;
}

.page-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 420px;
  line-height: 1.7;
}

.page-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  margin-top: 0.3rem;
}

/* ── FAQ ── */

.faq-page main {
  max-width: 660px;
  gap: 3rem;
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: background 0.2s;
  position: relative;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-question:hover::before,
.faq-item.open .faq-question::before {
  transform: scaleY(1);
}

.faq-question:hover .faq-q-text,
.faq-item.open .faq-q-text {
  color: var(--white);
}

.faq-q-text {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.7rem;
  transition: border-color 0.25s, color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-icon {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-text {
  padding: 0 0.25rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
  border-left: 1px solid rgba(184, 151, 106, 0.25);
  padding-left: 1rem;
  margin-left: 0.1rem;
}

.faq-footer {
  opacity: 0;
  animation: fadeIn 0.5s ease 0.7s forwards;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-align: center;
}

.faq-footer a {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.faq-footer a:hover {
  opacity: 1;
}

/* ── Patronage ── */

.plans-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeSlideIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  transition: background 0.3s;
}

.plan-card:hover {
  border-color: var(--border-soft);
  box-shadow: 0 0 40px rgba(184, 151, 106, 0.04);
}

.plan-card.featured {
  border-color: rgba(184, 151, 106, 0.35);
  background: var(--surface-hi);
}

.plan-card.featured::before {
  background: linear-gradient(to right, transparent, rgba(184, 151, 106, 0.6), transparent);
}

.plan-card.featured:hover {
  border-color: rgba(184, 151, 106, 0.55);
  box-shadow: 0 0 50px rgba(184, 151, 106, 0.07);
}

.plan-badge {
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: rgba(184, 151, 106, 0.1);
  border: 1px solid rgba(184, 151, 106, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  align-self: flex-start;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.plan-badge.invisible {
  opacity: 0;
  pointer-events: none;
}

.plan-name {
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
}

.plan-price-amount {
  font-family: "Cinzel", serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
}

.plan-price-period {
  font-family: "Crimson Pro", serif;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.plan-price-free {
  font-family: "Cinzel", serif;
  font-size: 1.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.plan-tagline {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-faint);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.plan-sep {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  margin-bottom: 2rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.feature-icon {
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 0.18rem;
  color: var(--text-faint);
}

.feature-icon.yes {
  color: var(--gold);
}

.feature-icon.no {
  color: var(--text-faint);
  opacity: 0.5;
}

.feature-label {
  color: var(--text-dim);
}

.feature-value {
  color: var(--text-faint);
  font-size: 0.82rem;
  display: block;
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.feature-value.active {
  color: var(--gold);
  opacity: 0.85;
}

.plan-cta {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-align: center;
  text-decoration: none;
  display: block;
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
  background: transparent;
}

.plan-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184, 151, 106, 0.06);
}

.plan-cta.featured-cta {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184, 151, 106, 0.08);
}

.plan-cta.featured-cta:hover {
  background: rgba(184, 151, 106, 0.16);
}

.patronage-footer {
  opacity: 0;
  animation: fadeIn 0.5s ease 0.75s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.patronage-footer p {
  font-family: "Cinzel", serif;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  text-align: center;
}

.patronage-footer a {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.patronage-footer a:hover {
  opacity: 1;
}

/* ── Animations ── */

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .plan-card.featured {
    order: -1;
  }
}

@media (max-width: 520px) {
  body {
    padding: 2.5rem 1rem 5rem;
  }

  main {
    padding-top: 2rem;
    gap: 2.25rem;
  }

  .faq-q-text {
    font-size: 0.78rem;
  }

  .faq-answer-text {
    font-size: 0.98rem;
  }
}

@media (min-width: 521px) and (max-width: 740px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card:last-child {
    grid-column: 1 / -1;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
}