/* ================================================================
   subscription.css — AirCityShops Subscription Plans
   Dark theme, fully responsive
   ================================================================ */

:root {
  --sub-bg:        #0b0e1a;
  --sub-surface:   #111827;
  --sub-card:      #1a2035;
  --sub-border:    rgba(255,255,255,0.08);
  --sub-accent:    #6366f1;
  --sub-accent-h:  #4f46e5;
  --sub-green:     #22c55e;
  --sub-gold:      #f59e0b;
  --sub-text:      #e2e8f0;
  --sub-secondary: #94a3b8;
  --sub-dim:       #64748b;
}

/* ── Page wrapper ────────────────────────────────────────────── */
.sub-page {
  background: var(--sub-bg);
  min-height: calc(100vh - 64px);
  padding: 40px 16px 60px;
}

.sub-hero {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.sub-hero h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--sub-text);
  margin: 0 0 12px;
  line-height: 1.2;
}

.sub-hero p {
  font-size: 16px;
  color: var(--sub-dim);
  margin: 0;
  line-height: 1.6;
}

/* ── Plans grid ─────────────────────────────────────────────── */
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Plan card ───────────────────────────────────────────────── */
.sub-plan-card {
  background: var(--sub-surface);
  border: 1px solid var(--sub-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.sub-plan-card:hover {
  border-color: var(--sub-accent);
  box-shadow: 0 8px 32px rgba(99,102,241,.18);
  transform: translateY(-3px);
}

/* Featured / highlighted card */
.sub-plan-card.featured {
  border-color: var(--sub-accent);
  background: linear-gradient(145deg, #1a1f35, #111827);
  box-shadow: 0 4px 24px rgba(99,102,241,.2);
}

.sub-plan-card.featured:hover {
  box-shadow: 0 12px 40px rgba(99,102,241,.3);
  transform: translateY(-5px);
}

/* Popular badge */
.sub-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--sub-accent), #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Card header ─────────────────────────────────────────────── */
.sub-plan-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.sub-plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--sub-text);
  margin: 0 0 6px;
  text-transform: capitalize;
}

.sub-plan-tagline {
  font-size: 13px;
  color: var(--sub-dim);
  margin: 0 0 20px;
  min-height: 36px;
}

/* ── Features list ───────────────────────────────────────────── */
.sub-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}

.sub-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--sub-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.sub-features li:last-child { border-bottom: none; }

.sub-feature-check {
  color: var(--sub-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Billing variants (month / year inside same card) ────────── */
.sub-billing-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-billing-option {
  background: var(--sub-card);
  border: 1px solid var(--sub-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.sub-billing-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.sub-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--sub-text);
}

.sub-price sup {
  font-size: 16px;
  font-weight: 600;
  vertical-align: super;
  color: var(--sub-secondary);
}

.sub-cycle {
  font-size: 13px;
  color: var(--sub-dim);
}

.sub-save-badge {
  background: rgba(34,197,94,.15);
  color: var(--sub-green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.sub-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: filter .15s, transform .1s;
  box-sizing: border-box;
}

.sub-btn:active { transform: scale(.97); }

.sub-btn-primary {
  background: var(--sub-accent);
  color: #fff;
}

.sub-btn-primary:hover { filter: brightness(1.1); }

.sub-btn-outline {
  background: transparent;
  color: var(--sub-accent);
  border: 1px solid rgba(99,102,241,.4);
}

.sub-btn-outline:hover { background: rgba(99,102,241,.1); }

/* Free plan active badge */
.sub-free-active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--sub-green);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
}

/* ── Trust bar ───────────────────────────────────────────────── */
.sub-trust {
  text-align: center;
  margin-top: 48px;
  color: var(--sub-dim);
  font-size: 14px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.sub-trust p { margin: 6px 0; }

.sub-trust strong { color: var(--sub-secondary); }

/* ── FAQ accordion ───────────────────────────────────────────── */
.sub-faq {
  max-width: 680px;
  margin: 48px auto 0;
}

.sub-faq h3 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--sub-text);
  margin-bottom: 24px;
}

.sub-faq-item {
  background: var(--sub-surface);
  border: 1px solid var(--sub-border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.sub-faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: none;
  border: none;
  color: var(--sub-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: color .13s;
}

.sub-faq-q:hover { color: var(--sub-accent); }

.sub-faq-arrow {
  font-size: 12px;
  color: var(--sub-dim);
  transition: transform .2s;
  flex-shrink: 0;
}

.sub-faq-item.open .sub-faq-arrow { transform: rotate(180deg); }

.sub-faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--sub-dim);
  line-height: 1.6;
}

.sub-faq-item.open .sub-faq-a { display: block; }

/* ================================================================
   RESPONSIVE — TABLET  ≤ 800px
   ================================================================ */
@media (max-width: 800px) {
  .sub-hero h2        { font-size: 26px; }
  .sub-plans-grid     { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ================================================================
   RESPONSIVE — MOBILE  ≤ 560px
   ================================================================ */
@media (max-width: 560px) {
  .sub-page           { padding: 24px 12px 48px; }
  .sub-hero           { margin-bottom: 32px; }
  .sub-hero h2        { font-size: 22px; }
  .sub-hero p         { font-size: 14px; }

  .sub-plans-grid     { grid-template-columns: 1fr; gap: 16px; }

  .sub-plan-card      { padding: 22px 18px; }
  .sub-plan-name      { font-size: 18px; }
  .sub-price          { font-size: 24px; }

  .sub-features li    { font-size: 13px; }

  .sub-trust          { font-size: 13px; }

  .sub-faq h3         { font-size: 18px; }
  .sub-faq-q          { font-size: 13px; padding: 14px 16px; }
  .sub-faq-a          { padding: 0 16px 14px; font-size: 13px; }
}
