/* pricing-wizard.css — Multi-step purchase wizard (pricing.html + pricing-addons.html) */

.pw-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.pw-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary, #4a5568);
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.pw-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-muted, #f1f5f9);
  border-radius: 999px;
  font-weight: 500;
}
.pw-step--active {
  background: var(--brand-deep-teal, #0E6B6B);
  color: #fff;
  font-weight: 600;
}
.pw-step--done {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
}
.pw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  font-weight: 700;
}
.pw-step--done .pw-step-num { background: #065f46; color: #fff; }
.pw-step:not(.pw-step--active):not(.pw-step--done) .pw-step-num {
  background: #fff;
  color: var(--text-muted, #64748b);
}
.pw-step-sep {
  width: 24px;
  height: 2px;
  background: var(--border-subtle, #e2e8f0);
}
.pw-step-sep--done { background: #86efac; }

.pw-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.pw-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 24px;
}

.pw-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-muted, #f1f5f9);
  border-radius: 999px;
  margin-bottom: 24px;
  cursor: pointer;
  user-select: none;
}
.pw-toggle-wrap:hover { background: #e2e8f0; }
.pw-toggle-btn {
  border: 0;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-secondary, #4a5568);
  transition: all 0.15s ease;
}
.pw-toggle-btn.active {
  background: #fff;
  color: var(--brand-deep-teal, #0E6B6B);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pw-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
  border-radius: 999px;
  margin-left: 4px;
}

.pw-selected-plan {
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text, #1e293b);
  margin-bottom: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pw-selected-plan:hover {
  border-color: var(--brand-deep-teal, #0E6B6B);
  box-shadow: 0 0 0 2px rgba(14, 107, 107, 0.12);
}
.pw-sel-label {
  color: var(--text-muted, #64748b);
  font-weight: 500;
  margin-right: 4px;
}

.pw-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--brand-deep-teal, #0E6B6B);
  text-decoration: none;
  font-weight: 500;
}
.pw-back:hover { text-decoration: underline; }

.pw-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
}
.pw-included-section { padding-top: 40px; }
.pw-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  margin: 24px 0 6px;
}
.pw-section-heading {
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.pw-section-sub {
  color: var(--text-muted, #64748b);
  margin: 0 0 24px;
}

.pw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pw-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .pw-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pw-grid--4 { grid-template-columns: 1fr; }
}

.pw-card {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}
.pw-card--featured {
  border: 2px solid var(--brand-deep-teal, #0E6B6B);
  box-shadow: 0 10px 40px rgba(14,107,107,0.15);
}
.pw-card--gamify {
  border: 2px dashed var(--brand-deep-teal, #0E6B6B);
  background: linear-gradient(180deg, var(--bg-surface, #fff) 0%, var(--bg-muted, #f0fdfa) 100%);
}
.pw-card--addon { min-height: 380px; }

.pw-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #c2410c; /* orange-700 — 4.71:1 on white, WCAG AA pass */
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(194,65,12,0.25);
}
.pw-badge--alt {
  background: var(--brand-deep-teal, #0E6B6B); /* teal — Standalone */
  box-shadow: 0 2px 8px rgba(14,107,107,0.25);
}

.pw-plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.pw-plan-tagline {
  font-size: 0.86rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 14px;
  min-height: 2.6em;
  line-height: 1.4;
}
.pw-seats {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-deep-teal, #0E6B6B);
  background: #ccfbf1;
  padding: 3px 9px;
  border-radius: 6px;
  margin: 0 0 12px;
  align-self: flex-start;
}
.pw-amount {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.pw-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
}
.pw-period-note {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 16px;
  min-height: 1.2em;
}
.pw-mo-equiv {
  color: var(--text-muted, #64748b);
  font-weight: 500;
}
.pw-addon-extra {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep-teal, #0E6B6B);
  background: #ccfbf1;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  margin: 0 0 10px;
  align-self: flex-start;
}
.pw-addon-extra--muted {
  background: var(--bg-muted, #f1f5f9);
  color: var(--text-muted, #64748b);
}

.pw-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.pw-features li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 0.85rem;
  color: var(--text-primary, #1e293b);
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
  line-height: 1.4;
}
.pw-features li:last-child { border-bottom: 0; }
.pw-features li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--brand-deep-teal, #0E6B6B);
  font-weight: 700;
}

.pw-breakdown {
  list-style: none;
  padding: 12px 0;
  margin: 0 0 18px;
  flex: 1;
  border-top: 1px solid var(--border-subtle, #f1f5f9);
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}
.pw-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.82rem;
  color: var(--text, #1e293b);
}
.pw-breakdown li span:last-child {
  color: var(--text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.pw-btn {
  display: block;
  width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  text-decoration: none;
}
.pw-btn-primary {
  background: var(--brand-deep-teal, #0E6B6B);
  color: #fff;
}
.pw-btn-primary:hover { background: #0a5757; }
.pw-btn-primary:disabled { opacity: 0.7; cursor: wait; }
.pw-btn-outline {
  background: #fff;
  color: var(--text, #1e293b);
  border: 1px solid var(--border, #e2e8f0);
}
.pw-btn-outline:hover {
  border-color: var(--brand-deep-teal, #0E6B6B);
  color: var(--brand-deep-teal, #0E6B6B);
}

.pw-error {
  max-width: 560px;
  margin: 14px auto 0;
  padding: 10px 14px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: center;
}

.pw-included {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pw-included-card {
  background: var(--bg-muted, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 12px;
  padding: 16px 18px;
}
.pw-included-name { font-weight: 700; margin: 0 0 2px; }
.pw-included-tag {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  margin: 0;
}
.pw-included-free {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.pw-faq {
  max-width: 820px;
  margin: 40px auto 0;
}
.pw-faq details {
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.pw-faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.pw-faq summary::-webkit-details-marker { display: none; }
.pw-faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-deep-teal, #0E6B6B);
  font-weight: 700;
}
.pw-faq details[open] summary::after { content: "−"; }
.pw-faq p {
  margin: 10px 0 0;
  color: var(--text-muted, #475569);
  line-height: 1.6;
}

.pw-footnote {
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.88rem;
  margin: 40px auto 60px;
  max-width: 640px;
}

@media (max-width: 640px) {
  .pw-amount { font-size: 1.85rem; }
  .pw-hero { padding: 24px 16px 0; }
  .pw-card { padding: 20px 16px; }
}

/* ── Dark mode — pricing wizard contrast fixes ─────────────── */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pw-step:not(.pw-step--active):not(.pw-step--done) {
    background: var(--bg-surface-alt, #1E293B);
    color: var(--text-secondary, #94A3B8);
  }
  html:not([data-theme="light"]) .pw-step:not(.pw-step--active):not(.pw-step--done) .pw-step-num {
    background: var(--bg-surface, #1E293B);
    color: var(--text-secondary, #94A3B8);
  }
  html:not([data-theme="light"]) .pw-toggle-btn { color: var(--text-secondary, #94A3B8); }
  html:not([data-theme="light"]) .pw-toggle-wrap { background: var(--bg-surface-alt, #1E293B); }
  html:not([data-theme="light"]) .pw-subtitle,
  html:not([data-theme="light"]) .pw-section-label,
  html:not([data-theme="light"]) .pw-section-sub,
  html:not([data-theme="light"]) .pw-section-heading + .pw-section-sub,
  html:not([data-theme="light"]) .pw-footnote,
  html:not([data-theme="light"]) .pw-plan-tagline,
  html:not([data-theme="light"]) .pw-period-note,
  html:not([data-theme="light"]) .pw-mo-equiv,
  html:not([data-theme="light"]) .pw-amount span,
  html:not([data-theme="light"]) .pw-breakdown li span:last-child,
  html:not([data-theme="light"]) .pw-sel-label,
  html:not([data-theme="light"]) .pw-back,
  html:not([data-theme="light"]) .pw-faq p { color: var(--text-secondary, #94A3B8); }
  html:not([data-theme="light"]) .pw-section-title { color: var(--text-primary, #E2E8F0); }
  html:not([data-theme="light"]) .pw-included-card { background: var(--bg-surface-alt, #1E293B); }
  html:not([data-theme="light"]) .pw-faq details { background: var(--bg-surface, #1E293B); }
  html:not([data-theme="light"]) .pw-card--gamify {
    background: linear-gradient(180deg, var(--bg-surface, #1E293B) 0%, var(--bg-muted, #263347) 100%) !important;
  }
}
