/* ============================================
   Pricing Page — Specifys Pro ($1.99/mo)
   ============================================ */

.pricing-page {
  min-height: 100vh;
  background: #fafafa;
}

/* ---- Hero ---- */
.pro-hero {
  margin-top: 60px;
  padding: 3.5rem 1.5rem 4rem;
  background: linear-gradient(165deg, #fff 0%, #fff8f5 45%, #fff 100%);
  border-bottom: 1px solid #eee;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.pro-hero.is-current-plan {
  box-shadow: inset 0 0 0 3px rgba(255, 107, 53, 0.35);
}

.pro-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.pro-hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  /* #B33A00 with white is about 6.1:1 */
  background: #B33A00;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@keyframes pro-badge-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pro-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  /* System face so LCP text paints without waiting on the webfont. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pro-hero-tagline {
  margin: 0 auto 2rem;
  max-width: 480px;
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pro-hero-price-block {
  margin-bottom: 1.75rem;
}

.pro-hero-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1;
}

.pro-hero-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #B33A00;
}

.pro-hero-amount {
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 800;
  color: #B33A00;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pro-hero-period {
  font-size: 1.1rem;
  color: #4a4a4a;
  margin-left: 0.25rem;
}

.pro-hero-price-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #4a4a4a;
}

.pro-hero-cta {
  min-width: 220px;
}

.pricing-page .btn-primary {
  background: #B33A00;
  border-color: #B33A00;
  color: #fff;
}

.pricing-page .btn-primary:hover {
  background: #8F2E00;
  border-color: #8F2E00;
  color: #fff;
}

.pro-hero-cta .btn-text {
  font-size: 1.05rem;
  font-weight: 600;
}

@keyframes pro-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-plan-status {
  max-width: 480px;
  margin: 1.25rem auto 0;
  padding: 0.75rem 1rem;
  background: #FFF4F0;
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 8px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-plan-status[hidden] {
  display: none;
}

.current-plan-badge {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #2d3748;
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pro-hero {
  position: relative;
}

.pro-hero .btn.is-current-cta,
.pro-footer-cta .btn.is-current-cta {
  background: #e9ecef;
  color: #5c6570;
  border-color: #dee2e6;
  cursor: default;
}

.pro-hero .btn.is-current-cta:hover,
.pro-footer-cta .btn.is-current-cta:hover {
  transform: none;
  box-shadow: none;
  background: #e9ecef;
  color: #5c6570;
}

/* ---- Alerts ---- */
.pricing-alert {
  display: none;
  max-width: 560px;
  margin: 0 auto 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.pricing-alert[data-type="success"] {
  background: #d1fae5;
  color: #065f46;
}

.pricing-alert[data-type="error"] {
  background: #fee2e2;
  color: #b91c1c;
}

.pricing-alert[data-type="info"] {
  background: #e0f2fe;
  color: #0369a1;
}

/* ---- Feature showcase ---- */
.pro-showcase {
  padding: 4rem 1.5rem 5rem;
  background: #fff;
}

.pro-showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pro-showcase-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pro-showcase-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.pro-showcase-header p {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.95rem;
}

.pro-showcase-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2rem;
  align-items: stretch;
}

.pro-feature-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pro-feature-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pro-feature-tab:hover {
  border-color: rgba(255, 107, 53, 0.4);
  background: #fff;
}

.pro-feature-tab.is-active {
  border-color: #B33A00;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.12);
  transform: translateX(4px);
}

.pro-feature-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.1);
  color: #B33A00;
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.pro-feature-tab.is-active .pro-feature-tab-icon {
  background: #B33A00;
  color: #fff;
}

@keyframes pro-icon-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.pro-feature-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  min-height: 320px;
  padding: 2rem 2.25rem;
  border: 1px solid #eee;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fffaf8 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.pro-feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-feature-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-feature-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #B33A00;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 12px 28px rgba(179, 58, 0, 0.28);
}

@keyframes pro-visual-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(255, 107, 53, 0.35); }
  50% { transform: scale(1.04); box-shadow: 0 16px 36px rgba(255, 107, 53, 0.45); }
}

.pro-orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.5);
}

.pro-orbit-dot-1 {
  top: 8%;
  left: 50%;
}

.pro-orbit-dot-2 {
  bottom: 12%;
  right: 8%;
}

.pro-orbit-dot-3 {
  bottom: 20%;
  left: 6%;
}

@keyframes pro-orbit-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(12px, 8px) scale(1.2); opacity: 1; }
}

@keyframes pro-orbit-2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-10px, -12px); opacity: 0.9; }
}

@keyframes pro-orbit-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(8px, -8px); opacity: 0.85; }
}

.pro-feature-copy {
  animation: none;
}

.pro-feature-panel.is-switching .pro-feature-copy {
  animation: none;
  opacity: 0;
}

@keyframes pro-panel-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pro-feature-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.pro-feature-desc {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
}

.pro-feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pro-feature-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.925rem;
  color: #444;
}

.pro-feature-highlights li i {
  color: #B33A00;
  font-size: 0.8rem;
}

/* ---- FAQ ---- */
.pricing-faq {
  background: #f5f5f5;
  padding: 4rem 1.5rem;
}

.pricing-faq .container {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-faq h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-item {
  background: #fff;
  padding: 1.35rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
  font-weight: 600;
}

.faq-item p {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.55;
  margin: 0;
}

/* ---- Footer CTA ---- */
.pro-footer-cta {
  padding: 3rem 1.5rem 4rem;
  background: #B33A00;
  text-align: center;
}

.pro-footer-cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.pro-footer-cta-text {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.pricing-page .pro-footer-cta-btn {
  background: #fff;
  color: #B33A00;
  border-color: #fff;
  min-width: 240px;
}

.pricing-page .pro-footer-cta-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #8F2E00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Buttons (checkout loading) ---- */
.btn.loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.pricing-page .pro-footer-cta-btn .btn-spinner {
  border-color: rgba(179, 58, 0, 0.25);
  border-top-color: #B33A00;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .pro-showcase-layout {
    grid-template-columns: 1fr;
  }

  .pro-feature-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pro-feature-tab {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 140px;
  }

  .pro-feature-tab.is-active {
    transform: translateY(-2px);
  }

  .pro-feature-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.75rem 1.5rem;
  }

  .pro-feature-highlights li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .pro-hero {
    padding: 2.5rem 1.25rem 3rem;
  }

  .pro-showcase {
    padding: 3rem 1.25rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pro-feature-tab {
    flex: 1 1 100%;
  }

  .pro-feature-orbit {
    width: 120px;
    height: 120px;
  }

  .pro-feature-visual-icon {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .pro-hero-cta,
  .pricing-page .pro-footer-cta-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-hero-badge,
  .pro-hero h1,
  .pro-hero-tagline,
  .pro-hero-price-block,
  .pro-hero-cta,
  .pro-feature-visual-icon,
  .pro-orbit-dot,
  .pro-feature-copy {
    animation: none;
  }

  .pro-feature-tab.is-active .pro-feature-tab-icon {
    animation: none;
  }
}

.plan-compare {
  padding: 48px 20px;
  background: #fff;
}

.plan-compare-inner {
  max-width: 880px;
  margin: 0 auto;
}

.plan-compare h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: #1a1510;
}

.plan-compare p {
  margin: 0 0 16px;
  color: #333;
  font-size: 1rem;
}

.plan-compare-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.plan-compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 1rem;
}

.plan-compare-table th,
.plan-compare-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e6e0da;
  color: #1a1510;
  vertical-align: top;
}

.plan-compare-table thead th {
  background: #9A3412;
  color: #fff;
  font-weight: 650;
}

.plan-compare-table tbody th {
  font-weight: 650;
}

@media (max-width: 640px) {
  .plan-compare-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .plan-compare-table thead th:first-child,
  .plan-compare-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  .plan-compare-table thead th:first-child {
    background: #9A3412;
  }

  .plan-compare-table tbody th {
    background: #fff;
  }
}
