/**
 * Portal Landing Page Base Styles
 *
 * Shared CSS for all industry portal landing pages.
 * Theme colors are set via CSS custom properties in each page.
 *
 * Usage:
 *   --portal-primary: Main brand color
 *   --portal-primary-dark: Darker shade for hover/active states
 *   --portal-accent: Lighter accent color
 *   --portal-light: Very light background tint
 *   --portal-danger: Red for warnings/risk highlights
 *   --portal-warning: Orange for caution items (optional)
 *   --portal-dark: Dark background color (optional)
 */

/* ===========================================
   WCAG 2.2 AA COMPLIANCE
   =========================================== */

/* Skip to main content link - WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--portal-primary-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--portal-accent);
  outline-offset: 2px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible styles - WCAG 2.4.7, 2.4.11, 2.4.12 */
.portal-page *:focus-visible {
  outline: 3px solid var(--portal-primary);
  outline-offset: 2px;
}

.portal-page button:focus-visible,
.portal-page .btn:focus-visible,
.portal-page a:focus-visible {
  outline: 3px solid var(--portal-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(var(--portal-primary-rgb, 59, 130, 246), 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .portal-page {
    --portal-primary: #0000ff;
    --portal-danger: #ff0000;
  }

  .btn--primary {
    border: 2px solid white;
  }

  .risk-card {
    border-left-width: 6px;
  }
}

/* Reduced motion - WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {
  .portal-page *,
  .portal-page *::before,
  .portal-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .portal-hero::after {
    display: none;
  }
}

/* Minimum target size - WCAG 2.5.8 (44x44px) */
.btn,
.share-btn,
.audience-chip {
  min-height: 44px;
  min-width: 44px;
}

/* ===========================================
   BASE & RESET
   =========================================== */
.portal-page {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.6;
}

.portal-page *,
.portal-page *::before,
.portal-page *::after {
  box-sizing: border-box;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--portal-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--portal-primary-dark);
  transform: translateY(-2px);
}

.btn--primary:focus-visible {
  outline: 3px solid var(--portal-primary-dark, #1e40af);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.btn--white {
  background: white;
  color: var(--portal-primary-dark);
}

.btn--white:hover {
  /* v18.0: More visible hover with shadow instead of subtle color change */
  background: #f3f4f6; /* neutral-100 for visible contrast */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--white:focus-visible {
  outline: 3px solid var(--portal-primary-dark, #1e40af);
  outline-offset: 2px;
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
}

/* ===========================================
   TOP BANNER (Timely announcements)
   =========================================== */
.portal-top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  flex-wrap: wrap;
}

.portal-top-banner--warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-bottom: 1px solid #f59e0b;
}

.portal-top-banner--info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-bottom: 1px solid #3b82f6;
}

.portal-top-banner--success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border-bottom: 1px solid #22c55e;
}

.portal-top-banner .banner-icon {
  font-size: 1.1rem;
}

.portal-top-banner .banner-text {
  line-height: 1.4;
}

.portal-top-banner .banner-text strong {
  font-weight: 700;
}

.portal-top-banner .banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-top-banner .banner-cta:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 600px) {
  .portal-top-banner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }
}

/* ===========================================
   AUDIENCE TOGGLE (User segmentation)
   =========================================== */
.audience-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem auto 0;
  padding: 0.5rem;
}

.audience-toggle__label {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.audience-toggle__buttons {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.25rem;
}

.audience-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.audience-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.audience-toggle__btn--active {
  background: white;
  color: var(--portal-primary-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.audience-toggle__btn--active:hover {
  background: white;
  color: var(--portal-primary-dark);
}

.audience-toggle__btn .toggle-icon {
  font-size: 1.1rem;
}

/* Light background variant */
.audience-toggle--light .audience-toggle__label {
  color: #374151;
}

.audience-toggle--light .audience-toggle__buttons {
  background: #f3f4f6;
}

.audience-toggle--light .audience-toggle__btn {
  color: #6b7280;
}

.audience-toggle--light .audience-toggle__btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.audience-toggle--light .audience-toggle__btn--active {
  background: var(--portal-primary);
  color: white;
}

@media (max-width: 600px) {
  .audience-toggle {
    flex-direction: column;
    gap: 0.75rem;
  }

  .audience-toggle__buttons {
    width: 100%;
    justify-content: center;
  }

  .audience-toggle__btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===========================================
   SECTION CONTAINERS
   =========================================== */
.portal-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.portal-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.portal-section__header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.portal-section__header p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.portal-section__header--light h2,
.portal-section__header--light p {
  color: white;
}

.portal-section__header--light p {
  opacity: 0.9;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.portal-hero {
  background: linear-gradient(
    135deg,
    var(--portal-primary) 0%,
    var(--portal-primary-dark) 100%
  );
  padding: 5rem 2rem 6rem;
  text-align: center;
  color: white;
  position: relative;
}

.portal-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.portal-hero--dark {
  background: var(--portal-dark, #1e293b);
}

.portal-hero--dark::after {
  background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

.portal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.portal-hero__badge .badge-icon {
  font-size: 1rem;
}

.portal-hero__title {
  font-size: 3rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.1;
}

.portal-hero__title em {
  font-style: normal;
  color: var(--portal-accent);
}

.portal-hero__subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.portal-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===========================================
   COMPANY LOGOS (Gig Workers)
   =========================================== */
.portal-companies {
  background: #f8fafc;
  padding: 2rem;
  text-align: center;
}

.portal-companies p {
  color: #64748b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.portal-companies__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(100%);
}

.company-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #475569;
}

/* ===========================================
   STATS SECTION
   =========================================== */
.portal-stats {
  background: var(--portal-light);
  padding: 3rem 2rem;
}

.portal-stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--portal-primary-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1;
}

.stat-value .stat-unit {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.stat-item .stat-label {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* ===========================================
   RISKS / PAIN POINTS SECTION
   =========================================== */
.portal-risks {
  padding: 5rem 2rem;
  background: white;
}

/* ===========================================
   TRUST LOGOS BAR
   =========================================== */
.portal-trust-logos {
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.portal-trust-logos__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem 0;
}

.portal-trust-logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.trust-logo img {
  height: 24px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.trust-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 600px) {
  .portal-trust-logos__grid {
    gap: 1rem;
  }

  .trust-logo {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ===========================================
   CAROUSEL COMPONENT
   =========================================== */
.portal-carousel {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  padding: 0 1rem;
}

.portal-carousel__container {
  overflow: hidden;
  border-radius: 12px;
}

.portal-carousel__track {
  display: flex;
  gap: 1.5rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0.5rem;
}

.portal-carousel__track::-webkit-scrollbar {
  display: none;
}

.portal-carousel__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.portal-carousel__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.carousel-item__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.carousel-item__severity {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.carousel-item__severity--critical {
  background: #fef2f2;
  color: #dc2626;
}

.carousel-item__severity--high {
  background: #fff7ed;
  color: #ea580c;
}

.carousel-item__severity--medium {
  background: #fffbeb;
  color: #d97706;
}

.carousel-item__severity--low {
  background: #f0fdf4;
  color: #16a34a;
}

.carousel-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.carousel-item__description {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.carousel-item__clause {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
  border-left: 3px solid var(--portal-danger, #dc2626);
}

/* Navigation Dots */
.portal-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.portal-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.portal-carousel__dot:hover {
  background: var(--portal-primary, #3b82f6);
  opacity: 0.7;
}

.portal-carousel__dot:focus-visible {
  outline: 3px solid var(--portal-primary, #3b82f6);
  outline-offset: 2px;
}

.portal-carousel__dot--active {
  background: var(--portal-primary, #3b82f6);
  width: 24px;
  border-radius: 4px;
}

/* Navigation Arrows */
.portal-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 1.5rem;
  color: #64748b;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.portal-carousel__arrow:hover {
  background: var(--portal-primary, #3b82f6);
  color: white;
}

.portal-carousel__arrow:focus-visible {
  outline: 3px solid var(--portal-primary, #3b82f6);
  outline-offset: 2px;
  background: var(--portal-primary, #3b82f6);
  color: white;
}

.portal-carousel__arrow--prev {
  left: -20px;
}

.portal-carousel__arrow--next {
  right: -20px;
}

@media (min-width: 768px) {
  .portal-carousel {
    padding: 0 3rem;
  }

  .portal-carousel__arrow {
    display: flex;
  }

  .portal-carousel__item {
    flex: 0 0 320px;
  }
}

@media (min-width: 1024px) {
  .portal-carousel__item {
    flex: 0 0 350px;
  }
}

/* ===========================================
   PAIN POINTS / RISKS SECTION
   =========================================== */
.portal-risks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.risk-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--portal-danger);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.risk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.risk-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.risk-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

.risk-card__description {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.risk-card__clause {
  background: #fef2f2;
  border-radius: 8px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #991b1b;
  line-height: 1.4;
  border-left: 3px solid var(--portal-danger);
}

.risk-card__state-note {
  background: #dbeafe;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #1e40af;
  line-height: 1.4;
  margin-top: 0.5rem;
  border-left: 3px solid #3b82f6;
}

/* ===========================================
   TRAFFIC LIGHT SEVERITY SYSTEM
   Red = Dealbreakers, Yellow = Hidden Costs, Green = Protections
   =========================================== */
.risk-card--critical {
  border-left-color: #dc2626;
}

.risk-card--critical .risk-card__clause {
  background: #fef2f2;
  color: #991b1b;
  border-left-color: #dc2626;
}

.risk-card--critical .risk-card__icon::before {
  content: "🚫";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1rem;
}

.risk-card--warning {
  border-left-color: #f59e0b;
}

.risk-card--warning .risk-card__clause {
  background: #fffbeb;
  color: #92400e;
  border-left-color: #f59e0b;
}

.risk-card--caution {
  border-left-color: #3b82f6;
}

.risk-card--caution .risk-card__clause {
  background: #eff6ff;
  color: #1e40af;
  border-left-color: #3b82f6;
}

.risk-card--protection {
  border-left-color: #10b981;
}

.risk-card--protection .risk-card__clause {
  background: #ecfdf5;
  color: #065f46;
  border-left-color: #10b981;
}

/* Severity badge for risk cards */
.risk-card__severity {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem; /* WCAG: Min readable size (was 0.7rem/11.2px) */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.risk-card--critical .risk-card__severity {
  background: #fef2f2;
  color: #dc2626;
}

.risk-card--warning .risk-card__severity {
  background: #fffbeb;
  color: #f59e0b;
}

.risk-card--caution .risk-card__severity {
  background: #eff6ff;
  color: #3b82f6;
}

/* ===========================================
   WARNINGS SECTION (Seniors)
   =========================================== */
.portal-warnings {
  background: #fffbeb;
  padding: 4rem 2rem;
}

.portal-warnings h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 2rem;
}

.portal-warnings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.warning-item {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.warning-item p {
  font-size: 0.95rem;
  color: #78350f;
  margin: 0;
}

.warning-item p strong {
  color: #92400e;
}

/* ===========================================
   OPT OUT SECTION (Gig Workers)
   =========================================== */
.portal-optout {
  background: var(--portal-dark, #1e293b);
  color: white;
  padding: 5rem 2rem;
}

.portal-optout__timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.portal-optout__timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--portal-primary);
}

.optout-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.optout-step__number {
  width: 50px;
  height: 50px;
  background: var(--portal-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--portal-dark, #1e293b);
  z-index: 1;
}

.optout-step__content {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
}

.optout-step__content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.optout-step__content p {
  color: rgba(
    255,
    255,
    255,
    0.9
  ); /* WCAG 2.2 AA: solid color instead of opacity */
  font-size: 0.95rem;
  margin: 0;
}

/* ===========================================
   DEACTIVATION SECTION (Gig Workers)
   =========================================== */
.portal-deactivation {
  padding: 5rem 2rem;
  background: #fef2f2;
  text-align: center;
}

.portal-deactivation h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--portal-danger);
  margin-bottom: 1rem;
}

.portal-deactivation > .portal-section__container > p {
  color: #7f1d1d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.portal-deactivation__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.deactivation-reason {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.deactivation-reason span {
  font-size: 1.25rem;
}

.deactivation-reason p {
  font-size: 0.95rem;
  color: #334155;
  margin: 0;
}

/* ===========================================
   WORKER RIGHTS SECTION (Gig Workers)
   =========================================== */
.portal-rights {
  padding: 5rem 2rem;
  background: white;
}

.portal-rights__list {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.rights-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
}

.rights-item__icon {
  width: 50px;
  height: 50px;
  background: var(--portal-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.rights-item__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.rights-item__content p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* ===========================================
   SOLUTIONS / HOW IT WORKS SECTION
   =========================================== */
.portal-solutions {
  padding: 5rem 2rem;
  background: #f8fafc;
}

.portal-solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.solution-step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.solution-step__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.solution-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

.solution-step p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* ===========================================
   TESTIMONIALS SECTION
   =========================================== */
.portal-testimonials {
  padding: 5rem 2rem;
  background: white;
}

.portal-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--portal-light);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-card__author strong {
  color: #1e293b;
  font-size: 0.95rem;
}

.testimonial-card__author span {
  color: #64748b;
  font-size: 0.85rem;
}

/* Dark theme testimonial text - WCAG 2.2 AA compliant */
.dark-theme .testimonial-card__quote,
.portal-page.dark-theme .testimonial-card__quote {
  color: #e2e8f0; /* 11.3:1 contrast on #161b22 */
}

.dark-theme .testimonial-card__author strong,
.portal-page.dark-theme .testimonial-card__author strong {
  color: #f1f5f9 !important; /* 13.7:1 contrast on #161b22 */
}

.dark-theme .testimonial-card__author span,
.portal-page.dark-theme .testimonial-card__author span {
  color: #94a3b8; /* 4.8:1 contrast on #161b22 - WCAG AA */
}

/* ===========================================
   TARGET AUDIENCES SECTION
   =========================================== */
.portal-audiences {
  padding: 3rem 2rem;
  background: #f8fafc;
  text-align: center;
}

.portal-audiences h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.portal-audiences__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.audience-chip span {
  font-size: 1.25rem;
}

/* ===========================================
   REAL TALK / WTF TRANSLATION SECTION
   =========================================== */
.portal-real-talk {
  background: linear-gradient(135deg, #1e1e2e 0%, #0f0f1a 100%);
  padding: 4rem 2rem;
  color: white;
}

.portal-real-talk .portal-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.portal-real-talk .portal-section__header h2 {
  color: white;
  font-size: 2rem;
}

.portal-real-talk .portal-section__header p {
  color: rgba(255, 255, 255, 0.7);
}

.real-talk__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 1rem;
}

.real-talk__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.real-talk__item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.real-talk__legalese {
  position: relative;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border-left: 3px solid #dc2626;
  border-radius: 0.5rem;
  font-family: "Georgia", serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.real-talk__legalese::before {
  content: "LEGALESE";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: #1e1e2e;
  padding: 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem; /* WCAG: Min readable size (was 0.65rem/10.4px) */
  font-style: normal;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: 0.1em;
}

.real-talk__arrow {
  text-align: center;
  font-size: 1.5rem;
  color: #f97316;
}

.real-talk__translation {
  position: relative;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  border-radius: 0.5rem;
}

.real-talk__translation::before {
  content: "REAL TALK";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: #1e1e2e;
  padding: 0 0.5rem;
  font-size: 0.75rem; /* WCAG: Min readable size (was 0.65rem/10.4px) */
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.1em;
}

.real-talk__wtf {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
}

.real-talk__explanation {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.real-talk__impact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fca5a5;
}

.real-talk__impact::before {
  content: "💸";
}

/* ===========================================
   NEGOTIATION SCRIPTS SECTION
   =========================================== */
.portal-negotiation {
  background: var(--portal-light, #f0fdf4);
  padding: 4rem 2rem;
}

.portal-negotiation .portal-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.negotiation__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--portal-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.negotiation__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.negotiation__card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.negotiation__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.negotiation__card-icon {
  width: 40px;
  height: 40px;
  background: var(--portal-light, #f0fdf4);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.negotiation__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.negotiation__situation {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.negotiation__script {
  position: relative;
  background: var(--portal-light, #f0fdf4);
  border: 1px solid var(--portal-primary);
  border-radius: 0.5rem;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray-800);
}

.negotiation__script::before {
  content: "SAY THIS:";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  background: var(--portal-light, #f0fdf4);
  padding: 0 0.5rem;
  font-size: 0.75rem; /* WCAG: Min readable size (was 0.65rem/10.4px) */
  font-weight: 700;
  color: var(--portal-primary);
  letter-spacing: 0.1em;
}

.negotiation__copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.negotiation__copy-btn:hover {
  background: var(--portal-primary);
  color: white;
  border-color: var(--portal-primary);
}

.negotiation__copy-btn:focus-visible {
  outline: 3px solid var(--portal-primary);
  outline-offset: 2px;
}

/* ===========================================
   ENTERPRISE / WHITE-LABEL CTA SECTION
   =========================================== */
.portal-enterprise {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.portal-enterprise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.portal-enterprise .portal-section__container {
  position: relative;
  z-index: 1;
}

.portal-enterprise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .portal-enterprise__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.portal-enterprise__content h2 {
  color: white;
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.portal-enterprise__content h2 span {
  background: linear-gradient(
    135deg,
    var(--portal-primary) 0%,
    var(--portal-accent, var(--portal-primary)) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-enterprise__content p {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.enterprise-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.enterprise-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.enterprise-feature::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--portal-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
}

.enterprise-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .enterprise-ctas {
    justify-content: center;
  }
}

.btn--enterprise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 48px;
}

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

.btn--enterprise-primary:hover {
  background: var(--portal-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn--enterprise-primary:focus-visible {
  outline: 3px solid var(--portal-primary-dark, #1e40af);
  outline-offset: 2px;
}

.btn--enterprise-secondary {
  background: transparent;
  color: white;
  border: 1px solid #475569;
}

.btn--enterprise-secondary:hover {
  border-color: var(--portal-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn--enterprise-secondary:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.portal-enterprise__visual {
  position: relative;
}

.enterprise-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #334155;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.enterprise-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
}

.enterprise-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--portal-primary) 0%,
    var(--portal-primary-dark) 100%
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.enterprise-card__title {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.enterprise-card__subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

.enterprise-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.enterprise-stat {
  text-align: center;
}

.enterprise-stat__value {
  display: block;
  color: white;
  font-size: 1.75rem;
  font-weight: 800;
}

.enterprise-stat__label {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ===========================================
   MAIN CTA SECTION
   =========================================== */
.portal-cta {
  background: linear-gradient(
    135deg,
    var(--portal-primary) 0%,
    var(--portal-primary-dark) 100%
  );
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.portal-cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.portal-cta p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.portal-cta .btn--primary {
  background: white;
  color: var(--portal-primary-dark);
}

.portal-cta .btn--primary:hover {
  background: var(--portal-light);
}

/* ===========================================
   TIME & COST COMPARISON SECTION
   =========================================== */
.portal-time-cost {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.time-cost__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .time-cost__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.time-cost__card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.time-cost__card--highlight {
  border-color: var(--portal-primary);
  box-shadow: 0 8px 30px rgba(var(--portal-primary-rgb, 37, 99, 235), 0.15);
}

.time-cost__card--highlight::before {
  content: "WITH SIGNSAFE";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--portal-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem;
}

.time-cost__card--highlight .time-cost__content {
  margin-top: 1rem;
}

.time-cost__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--portal-light, #f0f9ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.time-cost__card--old .time-cost__icon {
  background: #fef2f2;
}

.time-cost__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.time-cost__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.time-cost__card--old .time-cost__value {
  color: #dc2626;
  text-decoration: line-through;
  text-decoration-color: #dc2626;
}

.time-cost__card--highlight .time-cost__value {
  color: var(--portal-primary);
}

.time-cost__detail {
  font-size: 0.9rem;
  color: #64748b;
}

.time-cost__card--highlight .time-cost__detail {
  color: var(--portal-primary-dark);
  font-weight: 600;
}

/* ===========================================
   TECHNOLOGY / AI METHODOLOGY SECTION
   =========================================== */
.portal-technology {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.portal-technology::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(var(--portal-primary-rgb, 37, 99, 235), 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(var(--portal-primary-rgb, 37, 99, 235), 0.1) 0%,
      transparent 50%
    );
}

.portal-technology .portal-section__container {
  position: relative;
  z-index: 1;
}

.portal-technology .portal-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.portal-technology .portal-section__header h2 {
  color: white;
  font-size: 2rem;
}

.portal-technology .portal-section__header p {
  color: #94a3b8;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--portal-accent, #60a5fa);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-badge__dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tech__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tech__card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--portal-primary);
  transform: translateY(-4px);
}

.tech__card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    var(--portal-primary) 0%,
    var(--portal-primary-dark) 100%
  );
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tech__card-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.tech__card-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.tech__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.tech__stat {
  text-align: center;
}

.tech__stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.tech__stat-label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ===========================================
   COMPARISON TABLE SECTION
   =========================================== */
.portal-comparison {
  padding: 5rem 2rem;
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  font-size: 1rem;
  font-weight: 700;
  background: #f8fafc;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  /* v18.0: More visible hover state */
  background: #e2e8f0; /* slate-200 for visible contrast from white */
}

.comparison-table .feature-col {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  width: 35%;
}

.comparison-table th.signsafe-col {
  background: var(--portal-light);
  color: var(--portal-primary-dark);
  font-weight: 800;
  font-size: 1.1rem;
}

.comparison-table td.signsafe-col {
  background: var(--portal-light);
  color: var(--portal-primary-dark);
  font-weight: 600;
}

.comparison-table .lawyer-col {
  color: #64748b;
}

.comparison-table th.lawyer-col {
  color: #475569;
}

.check-icon {
  color: var(--portal-primary);
  font-weight: 700;
  margin-right: 0.25rem;
}

.cross-icon {
  color: #cbd5e1;
  font-size: 1.25rem;
}

.comparison-note {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.75rem;
  }

  .comparison-table .feature-col {
    width: 40%;
  }

  .comparison-table th.signsafe-col {
    font-size: 1rem;
  }
}

/* ===========================================
   SAMPLE REPORT SECTION (Portal wrapper)
   =========================================== */
.portal-sample-report {
  padding: 5rem 2rem;
  background: #f8fafc;
}

/* ===========================================
   SHARE SECTION (Viral Pages)
   =========================================== */
.portal-share {
  padding: 4rem 2rem;
  background: #f8fafc;
  text-align: center;
}

.portal-share h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.portal-share p {
  color: #64748b;
  margin: 0 0 2rem 0;
}

.portal-share__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn--facebook {
  background: #1877f2;
  color: white;
}
.share-btn--twitter {
  background: #1da1f2;
  color: white;
}
.share-btn--reddit {
  background: #ff4500;
  color: white;
}
.share-btn--email {
  background: #64748b;
  color: white;
}
.share-btn--copy {
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

/* ===========================================
   RESOURCES SECTION
   =========================================== */
.portal-resources {
  padding: 4rem 2rem;
  background: white;
}

.portal-resources h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
}

.portal-resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.resource-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.resource-card:hover {
  background: var(--portal-light);
  transform: translateY(-2px);
}

.resource-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.resource-card p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* ===========================================
   FAMILY SHARING SECTION (Seniors)
   =========================================== */
.portal-family-sharing {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  padding: 4rem 2rem;
}

.portal-family-sharing .portal-section__header {
  margin-bottom: 2rem;
}

.family-sharing__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.portal-family-sharing h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0d9488;
  margin-bottom: 0.75rem;
}

.portal-family-sharing p {
  font-size: 1.1rem;
  color: #0f766e;
}

.family-sharing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.family-sharing__item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.family-sharing__item-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.family-sharing__item p {
  font-size: 0.95rem;
  color: #1e293b;
  margin: 0;
  font-weight: 500;
}

.family-sharing__cta {
  text-align: center;
}

.family-sharing__cta .btn {
  background: #0d9488;
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.family-sharing__cta .btn:hover {
  background: #0f766e;
}

@media (max-width: 768px) {
  .portal-family-sharing h2 {
    font-size: 1.5rem;
  }

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

/* ===========================================
   FOOTER
   =========================================== */
.portal-footer {
  background: #1e293b;
  color: white;
  padding: 3rem 2rem;
}

.portal-footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.portal-footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-footer__brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.portal-footer__brand p {
  color: #9ca3af; /* WCAG 2.2 AA: 6.14:1 on #1e293b - was rgba(255,255,255,0.7) */
  font-size: 0.9rem;
  margin: 0;
}

.portal-footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.portal-footer__links a {
  color: #9ca3af; /* WCAG 2.2 AA: 6.14:1 on #1e293b - was rgba(255,255,255,0.7) */
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.portal-footer__links a:hover {
  color: white;
}

.portal-footer__disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.portal-footer__disclaimer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--portal-primary, #f59e0b);
  margin: 0 0 0.75rem 0;
}

.portal-footer__disclaimer p {
  font-size: 0.85rem;
  color: #9ca3af; /* WCAG 2.2 AA: 6.14:1 on #1e293b - was rgba(255,255,255,0.6) */
  line-height: 1.6;
  margin: 0;
}

.portal-footer__bottom {
  text-align: center;
}

.portal-footer__bottom p {
  font-size: 0.85rem;
  color: #9ca3af; /* WCAG 2.2 AA: 6.14:1 on #1e293b - was rgba(255,255,255,0.5) */
  margin: 0;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */
@media (max-width: 768px) {
  .portal-hero {
    padding: 3rem 1.5rem 5rem;
  }

  .portal-hero__title {
    font-size: 2rem;
  }

  .portal-hero__subtitle {
    font-size: 1.1rem;
  }

  .portal-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .portal-section__header h2 {
    font-size: 1.75rem;
  }

  .stat-item h3.stat-value {
    font-size: 2rem;
  }

  .portal-risks__grid,
  .portal-solutions__grid,
  .portal-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .portal-footer__main {
    flex-direction: column;
  }

  .portal-footer__links {
    flex-direction: column;
    gap: 1rem;
  }

  .portal-cta h2 {
    font-size: 1.75rem;
  }

  .portal-optout__timeline::before {
    left: 20px;
  }

  .optout-step {
    grid-template-columns: 40px 1fr;
  }

  .optout-step__number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ===========================================
   SENIORS PAGE ACCESSIBILITY OVERRIDES
   WCAG AAA Target: Larger fonts, higher contrast
   =========================================== */
.portal-seniors {
  font-size: 18px;
}

.portal-seniors .portal-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.portal-seniors .portal-hero__subtitle,
.portal-seniors .risk-card__description,
.portal-seniors .portal-section__header p,
.portal-seniors .solution-step p,
.portal-seniors .stat-label {
  font-size: 1.15rem;
  color: #1f2937; /* Higher contrast than default gray */
  line-height: 1.7;
}

.portal-seniors .risk-card__clause {
  font-size: 1rem;
}

.portal-seniors .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  min-height: 52px; /* Larger touch target for seniors */
}

.portal-seniors .warning-item p,
.portal-seniors .testimonial-card blockquote {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Dual CTA styling for seniors page */
.portal-seniors .portal-hero__ctas {
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 600px) {
  .portal-seniors .portal-hero__ctas {
    flex-direction: row;
    justify-content: center;
  }
}

.portal-seniors .btn--outline {
  border-width: 2px;
}

/* Photo-first emphasis */
.portal-seniors .solution-step:first-child {
  border: 2px solid var(--portal-primary);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--portal-light);
}

/* ===========================================
   FORENSIC SIGNATURE SECTION
   =========================================== */

/* Forensic Grid Layout - Two column grid for biometric info cards */
.forensic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Forensic Body Text - Descriptive paragraph after the grid */
.forensic-body {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
}

/* Mobile optimization for forensic grid */
@media (max-width: 640px) {
  .forensic-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===========================================
   DARK THEME OVERRIDES
   =========================================== */
.dark-theme.portal-page,
.dark-theme .portal-page {
  background: var(--bg, #0d1117);
  color: var(--text, #f0f6fc);
}

/* Cards and containers */
.dark-theme .portal-faq__item,
.dark-theme .portal-trust__item,
.dark-theme .portal-feature__card,
.dark-theme .feature-card,
.dark-theme .portal-testimonial,
.dark-theme .portal-pricing__card,
.dark-theme .portal-step,
.dark-theme .portal-stat,
.dark-theme .portal-check-card,
.dark-theme .portal-comparison__row,
.dark-theme .forensic-item,
.dark-theme .forensic-card,
.dark-theme .portal-form,
.dark-theme .portal-cta__card,
.dark-theme .portal-section--light,
.dark-theme .comparison-table,
.dark-theme .persona-card,
.dark-theme .demo-output-box {
  background: var(--surface-card, #161b22);
  border-color: var(--border, #30363d);
}

/* Elevated surfaces */
.dark-theme .portal-faq__item:hover,
.dark-theme .feature-card:hover,
.dark-theme .portal-testimonial:hover,
.dark-theme .forensic-card:hover {
  background: var(--surface-elevated, #21262d);
}

/* Text colors */
.dark-theme .portal-section__title,
.dark-theme .portal-faq__question,
.dark-theme .feature-card h3,
.dark-theme .forensic-card h4,
.dark-theme .portal-step__title {
  color: var(--text-primary, #f0f6fc);
}

.dark-theme .portal-section__subtitle,
.dark-theme .portal-faq__answer,
.dark-theme .feature-card p,
.dark-theme .forensic-card p,
.dark-theme .portal-step__desc,
.dark-theme .portal-testimonial__text,
.dark-theme .forensic-body {
  color: var(--text-secondary, #c9d1d9);
}

/* Light sections that should be dark */
.dark-theme .portal-section--light,
.dark-theme .portal-section--alt {
  background: var(--bg-alt, #161b22);
}

/* Inputs and forms */
.dark-theme input,
.dark-theme textarea,
.dark-theme select {
  background: var(--surface-card, #161b22);
  border-color: var(--border, #30363d);
  color: var(--text, #f0f6fc);
}

.dark-theme input::placeholder,
.dark-theme textarea::placeholder {
  color: var(--text-muted, #9ca3af);
}

/* ===========================================
   TABLET BREAKPOINTS (768px - 1024px)
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Hero adjustments */
  .portal-hero {
    padding: 4rem 1.5rem 3rem;
  }

  .portal-hero__title {
    font-size: 2.5rem;
  }

  .portal-hero__subtitle {
    font-size: 1.1rem;
  }

  .portal-hero__ctas {
    flex-direction: row;
    gap: 1rem;
  }

  /* Stats grid */
  .portal-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Solutions grid */
  .portal-solutions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Risk cards */
  .risk-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section padding */
  .portal-section__container {
    padding: 0 1.5rem;
  }

  /* Comparison table */
  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  /* Demo section */
  .live-demo__container {
    flex-direction: column;
    gap: 2rem;
  }

  .live-demo__input-panel,
  .live-demo__result-panel {
    width: 100%;
    max-width: 100%;
  }

  /* State protections grid */
  .state-protections__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .portal-footer__content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .portal-footer__links {
    justify-content: center;
  }
}

/* ===========================================
   ENHANCED MOBILE BREAKPOINT (max-width: 767px)
   =========================================== */
@media (max-width: 767px) {
  /* Comparison table - stack vertically */
  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .comparison-table thead {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  /* Coalition bars - vertical stacking */
  .coalition-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .coalition-label {
    min-width: auto;
    width: 100%;
  }

  /* FAQ items */
  .faq-item summary {
    padding: 1rem;
  }

  /* Floating CTA */
  .floating-cta {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    border-radius: 12px;
  }
}

/* ===========================================
   HOVER STATES - Enhanced Interactive Feedback
   =========================================== */
/* Solution steps */
.solution-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.solution-step {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Risk cards */
.risk-card:hover {
  border-left-width: 6px;
  transform: translateX(4px);
}

.risk-card {
  transition:
    transform 0.2s ease,
    border-left-width 0.2s ease;
}

/* Demo example buttons */
.demo-example-btn:hover {
  background: var(--portal-primary, #3b82f6);
  color: white;
  transform: translateY(-2px);
}

.demo-example-btn:focus-visible {
  outline: 3px solid var(--portal-primary, #3b82f6);
  outline-offset: 2px;
}

.demo-example-btn {
  transition: all 0.2s ease;
}

/* State selector */
.state-selector__select:hover {
  border-color: var(--portal-primary, #3b82f6);
}

.state-selector__select:focus {
  border-color: var(--portal-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(var(--portal-primary-rgb, 59, 130, 246), 0.2);
}

/* Trust badges */
.trust-badge:hover {
  transform: scale(1.05);
}

.trust-badge {
  transition: transform 0.2s ease;
}

/* FAQ items */
.faq-item summary:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Industry risks list items */
.industry-risks li:hover {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}

.industry-risks li {
  transition: background 0.2s ease;
  padding: 0.5rem;
  margin: -0.5rem;
}

/* ===========================================
   Z-INDEX HIERARCHY (Standardized)
   =========================================== */
:root {
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-modal-backdrop: 900;
  --z-modal-content: 910;
  --z-toast: 920;
  --z-skip-link: 999;
}

.portal-page .floating-cta {
  z-index: var(--z-sticky);
}

.portal-page .exit-modal__backdrop {
  z-index: var(--z-modal-backdrop);
}

.portal-page .exit-modal__content {
  z-index: var(--z-modal-content);
}

.portal-page .social-proof-toast,
.portal-page .live-activity-toast {
  z-index: var(--z-toast);
}

.portal-page .skip-link:focus {
  z-index: var(--z-skip-link);
}

/* ===========================================
   VISUALIZER COMPONENT (Healthcare Non-Compete)
   =========================================== */
.visualizer-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  margin: 0 auto;
}

.visualizer-map__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.visualizer-map__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.visualizer-map__subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.visualizer-zone {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.visualizer-zone--restricted {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.visualizer-zone--allowed {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}

.visualizer-zone__icon {
  font-size: 1.5rem;
}

.visualizer-zone__info strong {
  display: block;
  font-size: 1rem;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.visualizer-zone__info span {
  font-size: 0.875rem;
  color: #64748b;
}

.visualizer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.visualizer-stat {
  text-align: center;
}

.visualizer-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--portal-primary, #047857);
}

.visualizer-stat__label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.visualizer-cta {
  text-align: center;
  margin-top: 2rem;
}

.visualizer-cta p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .visualizer-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .visualizer-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .visualizer-stat:last-child {
    border-bottom: none;
  }
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
  .portal-hero__ctas,
  .portal-share,
  .btn {
    display: none;
  }

  .portal-hero::after {
    display: none;
  }
}
