/* ============================================
   TAADAA — Sub-page Shared Styles
   ============================================ */

/* Page hero banner for sub-pages */
.page-hero {
  background: var(--gradient-hero);
  padding: calc(var(--space-32) + var(--space-4)) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(46, 86, 224, 0.3);
  filter: blur(100px);
}

.page-hero__title {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
  margin: 0 auto;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-highlight);
}

.page-content {
  padding: var(--section-padding) 0;
}

/* Timeline for how-it-works */
.timeline {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-200);
}

.timeline__item {
  position: relative;
  padding-left: 5rem;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  z-index: 2;
  box-shadow: 0 0 0 6px var(--bg-warm);
}

.timeline__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Values grid for about page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Legal pages */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

.legal-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  list-style: disc;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* 404 page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-warm);
}

.error-page__code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: var(--weight-black);
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.15;
}

.error-page__emoji {
  font-size: 4rem;
  margin-bottom: var(--space-6);
}

.error-page__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.error-page__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

/* Referral steps */
.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin: var(--space-12) 0;
}

@media (max-width: 640px) {
  .referral-steps {
    grid-template-columns: 1fr;
  }
}

.referral-step {
  text-align: center;
  padding: var(--space-6);
}

.referral-step__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-extrabold);
  margin: 0 auto var(--space-4);
}
