/* ============================================
   AFP Viewer Page - Modern 2026 Design
   Consistent with Consulting Page Style
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #6bb8be;
  --primary-dark: #4a9ea5;
  --primary-light: rgba(107, 184, 190, 0.12);
  --primary-glow: rgba(107, 184, 190, 0.25);
  --text-dark: #1e293b;
  --text-medium: #475569;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-warm: #faf9f7;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  
  /* Plan card accent colors */
  --accent-corporate: #10b981;
  --accent-single: #6bb8be;
  --accent-free: #8b5cf6;
}

/* ===== Hero Section ===== */
.afp-hero {
  position: relative;
  background-image: linear-gradient(
      100deg,
      rgba(30, 41, 59, 0.92) 0%,
      rgba(45, 55, 72, 0.8) 35%,
      rgba(55, 65, 81, 0.5) 60%,
      rgba(100, 116, 139, 0.25) 100%
    ),
    url("/images/covers/afp-t1_h.jpg");
  background-size: cover;
  background-position: center 66%;
  padding: 65px 0 60px;
  overflow: hidden;
}

.afp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 20% 80%,
    rgba(107, 184, 190, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.afp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.afp-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.afp-hero-label i {
  color: var(--primary);
  font-size: 1.1em;
}

.afp-hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.ws-hero-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6 !important;
  font-size: 2rem !important;
  margin: 0 !important;
}

/* ===== Section Headers ===== */
.afp-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.afp-section-header-left {
  text-align: left;
  margin-bottom: 24px;
}

.afp-section-label {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.afp-section-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.afp-section-header-left h2 {
  margin-bottom: 0;
}

/* ===== Pricing Plans Section ===== */
.afp-plans-section {
  padding: 90px 0;
  background: var(--white);
}

.afp-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}

.afp-plan-card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.afp-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.afp-plan-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.afp-plan-card:hover .afp-plan-accent {
  opacity: 1;
}

.afp-plan-corporate .afp-plan-accent {
  background: linear-gradient(90deg, var(--accent-corporate), #34d399);
}

.afp-plan-single .afp-plan-accent {
  background: linear-gradient(90deg, var(--accent-single), #81d4d9);
}

.afp-plan-free .afp-plan-accent {
  background: linear-gradient(90deg, var(--accent-free), #a78bfa);
}

.afp-plan-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.afp-plan-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  transition: all 0.4s ease;
}

.afp-plan-corporate .afp-plan-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(52, 211, 153, 0.08) 100%);
  color: var(--accent-corporate);
}

.afp-plan-single .afp-plan-icon {
  background: linear-gradient(135deg, rgba(107, 184, 190, 0.12) 0%, rgba(129, 212, 217, 0.08) 100%);
  color: var(--accent-single);
}

.afp-plan-free .afp-plan-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(167, 139, 250, 0.08) 100%);
  color: var(--accent-free);
}

.afp-plan-card:hover .afp-plan-icon {
  transform: scale(1.1) rotate(5deg);
}

.afp-plan-corporate:hover .afp-plan-icon {
  background: linear-gradient(135deg, var(--accent-corporate) 0%, #34d399 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.afp-plan-single:hover .afp-plan-icon {
  background: linear-gradient(135deg, var(--accent-single) 0%, #81d4d9 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(107, 184, 190, 0.3);
}

.afp-plan-free:hover .afp-plan-icon {
  background: linear-gradient(135deg, var(--accent-free) 0%, #a78bfa 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.afp-plan-header h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.3;
}

.afp-plan-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.afp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.afp-badge-users {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(107, 184, 190, 0.2);
}

.afp-badge-maintenance {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.afp-badge-maintenance.afp-badge-none {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.afp-badge i {
  font-size: 0.9em;
}

.afp-plan-features {
  flex: 1;
  margin-bottom: 28px;
}

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

.afp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-medium);
  line-height: 1.6;
}

.afp-feature-list li i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.afp-plan-action {
  margin-top: auto;
}

.afp-plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.afp-btn-primary {
  background: var(--accent-corporate);
  color: var(--white);
  border: none;
}

.afp-btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  color: var(--white);
  text-decoration: none;
}

.afp-btn-secondary {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.afp-btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
  color: var(--white);
  text-decoration: none;
}

.afp-btn-outline {
  background: transparent;
  color: var(--accent-free);
  border: 2px solid var(--accent-free);
}

.afp-btn-outline:hover {
  background: var(--accent-free);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  text-decoration: none;
}

.afp-plan-btn i {
  transition: transform 0.2s ease;
}

.afp-plan-btn:hover i {
  transform: translateX(4px);
}

/* ===== Video Section ===== */
.afp-video-section {
  padding: 90px 0;
  background: var(--bg-light);
  position: relative;
}

.afp-video-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(107, 184, 190, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(107, 184, 190, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.afp-video-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.afp-video-content {
  position: relative;
  z-index: 1;
}

.afp-video-lead {
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0 0 32px;
}

.afp-video-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afp-video-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.afp-video-feature:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.afp-video-feature i {
  color: var(--primary);
  font-size: 1.2rem;
}

.afp-video-feature span {
  color: var(--text-medium);
  font-weight: 500;
}

.afp-video-player {
  position: relative;
  z-index: 1;
}

.afp-video-embed {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.afp-video-embed:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.afp-video-thumbnail {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.afp-video-thumbnail-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.afp-video-thumbnail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.afp-video-thumbnail:hover .afp-video-thumbnail-img img {
  transform: scale(1.05);
}

.afp-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.3) 0%,
    rgba(107, 184, 190, 0.2) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.afp-video-thumbnail:hover .afp-video-play-overlay {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.4) 0%,
    rgba(107, 184, 190, 0.3) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.afp-video-play-btn {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--primary-dark);
  font-size: 1.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.afp-video-thumbnail:hover .afp-video-play-btn {
  transform: scale(1.1);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 36px rgba(107, 184, 190, 0.4);
}

/* ===== Content Section ===== */
.afp-content-section {
  padding: 90px 0;
  background: var(--white);
}

.afp-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.afp-main-content h3 {
  font-weight: 700;
  color: var(--text-dark);
  margin: 48px 0 20px;
  padding-top: 48px;
  border-top: 1px solid var(--border-light);
}

.afp-main-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.afp-intro-card {
  position: relative;
  display: flex;
  gap: 20px;
  background: rgba(107, 184, 190, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 184, 190, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
  overflow: hidden;
}

.afp-intro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.afp-intro-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.afp-intro-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.afp-intro-lead {
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0;
  font-weight: 500;
}

/* ===== Highlights Grid ===== */
.afp-highlights-section {
  margin-bottom: 48px;
}

.afp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.afp-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.afp-highlight-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.afp-highlight-item i {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.afp-highlight-item p {
  color: var(--text-medium);
  margin: 0;
  line-height: 1.6;
}

/* ===== Text Sections ===== */
.afp-text-section {
  margin-bottom: 40px;
}

.afp-text-section p {
  line-height: 1.8;
  color: var(--text-medium);
  margin: 0 0 16px;
}

.afp-text-section p:last-child {
  margin-bottom: 0;
}

.afp-text-section a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.afp-text-section a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Related Resources ===== */
.afp-resources-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid var(--border);
}

.afp-resources-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.afp-resources-section h3 i {
  color: var(--primary);
}

.afp-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.afp-resource-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.afp-resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.afp-resource-card a {
  text-decoration: none;
  display: block;
}

.afp-resource-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

.afp-resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.afp-resource-card:hover .afp-resource-image img {
  transform: scale(1.05);
}

.afp-resource-content {
  padding: 24px;
}

.afp-resource-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 12px;
}

.afp-resource-content h4 {
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.4;
}

.afp-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  transition: all 0.2s ease;
}

.afp-resource-card:hover .afp-resource-link {
  color: var(--primary);
  gap: 12px;
}

.afp-resource-link i {
  transition: transform 0.2s ease;
}

.afp-resource-card:hover .afp-resource-link i {
  transform: translateX(4px);
}

/* ===== Release Notes Accordion ===== */
.afp-release-notes {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid var(--border);
}

.afp-release-notes h3 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.afp-accordion {
  margin-top: 32px;
}

.afp-accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.afp-accordion-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.afp-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
  text-align: left;
}

.afp-accordion-header:hover {
  color: var(--primary-dark);
}

.afp-accordion-header i {
  color: var(--primary);
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.afp-accordion-header[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.afp-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.afp-accordion-content ul {
  list-style: none;
  padding: 0 24px 24px;
  margin: 0;
}

.afp-accordion-content ul li {
  padding: 12px 0;
  line-height: 1.7;
  color: var(--text-medium);
}

.afp-accordion-content ul li strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 6px;
}

.afp-accordion-content ul li p {
  margin: 6px 0 0;
  line-height: 1.7;
}

.afp-accordion-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Video Modal Popup ===== */
.afp-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.afp-video-modal.active {
  opacity: 1;
  visibility: visible;
}

.afp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.afp-modal-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  background: transparent;
  border-radius: 24px;
  padding: 0;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.afp-video-modal.active .afp-modal-content {
  transform: scale(1);
}

.afp-modal-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.afp-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: scale(1.1);
}

.afp-modal-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.afp-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .afp-plans-grid {
    gap: 24px;
  }

  .afp-video-wrapper {
    gap: 50px;
  }

  .afp-highlights-grid {
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .afp-hero {
    padding: 50px 0 45px;
  }

  .afp-hero h1 {
    font-size: 2.4rem;
  }

  .afp-hero-subtitle {
    font-size: 1.25rem;
  }

  .afp-plans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
  }

  .afp-video-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .afp-video-player {
    order: -1;
  }

  .afp-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .afp-resources-grid {
    grid-template-columns: 1fr;
  }

  .afp-intro-card {
    flex-direction: column;
    padding: 24px 28px;
    text-align: center;
  }

  .afp-intro-icon {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .afp-hero {
    padding: 50px 0 40px;
  }

  .afp-hero h1 {
    font-size: 2rem;
  }

  .afp-hero-subtitle {
    font-size: 1.15rem;
  }

  .afp-plans-section {
    padding: 70px 0;
  }

  .afp-plan-card {
    padding: 32px 24px;
  }

  .afp-plan-badges {
    gap: 8px;
  }

  .afp-badge {
    font-size: 1.2rem;
    padding: 8px 12px;
  }

  .afp-video-section {
    padding: 70px 0;
  }

  .afp-video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .afp-content-section {
    padding: 70px 0;
  }

  .afp-section-header h2 {
    font-size: 2.2rem;
  }

  .afp-highlights-grid {
    grid-template-columns: 1fr;
  }

  .afp-main-content h3 {
    margin: 40px 0 16px;
    padding-top: 40px;
  }

  .afp-intro-card {
    padding: 20px 24px;
  }

  .afp-intro-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .afp-modal-content {
    width: 95%;
  }

  .afp-modal-close {
    top: -50px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .afp-hero {
    padding: 40px 0 35px;
  }

  .afp-hero h1 {
    font-size: 1.75rem;
  }

  .ws-hero-subtitle {
    font-size: 1.4rem !important;
  }

  .afp-section-header h2 {
    font-size: 1.9rem;
  }

  .afp-plan-card {
    padding: 28px 20px;
  }

  .afp-badge {
    font-size: 1.2rem;
  }

  .afp-video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .afp-video-feature {
    padding: 10px 14px;
  }

  .afp-highlight-item {
    padding: 20px 16px;
  }

  .afp-accordion-header {
    padding: 16px 20px;
  }

  .afp-accordion-content ul {
    padding: 0 20px 20px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.afp-scroll-indicator:focus,
.afp-plan-btn:focus,
.afp-video-thumbnail:focus,
.afp-resource-card a:focus,
.afp-accordion-header:focus {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .afp-plan-card,
  .afp-plan-icon,
  .afp-video-embed,
  .afp-video-thumbnail img,
  .afp-video-play,
  .afp-resource-card,
  .afp-resource-image img,
  .afp-accordion-header i,
  .afp-accordion-content {
    transition: none;
    animation: none;
  }
}

/* High contrast */
@media (prefers-contrast: high) {
  .afp-plan-card,
  .afp-video-feature,
  .afp-highlight-item,
  .afp-resource-card,
  .afp-accordion-item {
    border-width: 2px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .afp-hero {
    background: #f0f0f0 !important;
    padding: 30px 0;
  }

  .afp-hero h1,
  .afp-hero-subtitle,
  .afp-hero-description {
    color: #000 !important;
  }

  .afp-hero-scroll {
    display: none !important;
  }

  .afp-plan-card,
  .afp-resource-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .afp-plans-grid,
  .afp-highlights-grid,
  .afp-resources-grid {
    display: block;
  }

  .afp-plans-grid > *,
  .afp-highlights-grid > *,
  .afp-resources-grid > * {
    margin-bottom: 20px;
  }

  .afp-video-section {
    display: none;
  }
}