/*
 * Landing Page Styles for Hoppo
 */

/* Skip Link - Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary, #6366f1);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Screen reader only - visually hidden but accessible */
.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 styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary, #6366f1);
  outline-offset: 2px;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #1e293b;
  --accent: #10b981;
  --accent-light: #34d399;
  --text: #1e293b;
  --text-light: #475569; /* Improved contrast: 5.6:1 on white (was #64748b ~4.5:1) */
  --text-lighter: #64748b; /* Improved contrast: 4.5:1 on white (was #94a3b8 ~3:1) */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Hoppo head logo inside .logo-icon spans (nav + footer brand). Sizes to
 * the surrounding text height so the mark and wordmark optically align. */
.logo-icon img {
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, white 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
}

.hero-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.hero-visual {
  position: relative;
}

.hero-video-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
}

.video-wrapper {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  padding: 40px 60px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-wrapper:hover {
  background: rgba(0,0,0,0.4);
  transform: scale(1.05);
}

.video-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 600;
}

.play-icon {
  font-size: 2rem;
}

.floating-element {
  position: absolute;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.floating-1 { top: -20px; right: 20%; animation-delay: 0s; }
.floating-2 { bottom: 20%; right: -30px; animation-delay: 1s; }
.floating-3 { top: 30%; left: -20px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* Comparison Section */
.comparison {
  padding: 80px 0;
  background: white;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.comparison-card.theirs {
  background: var(--bg-alt);
}

.comparison-card.ours {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: var(--primary);
}

.comparison-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.comparison-card ul {
  list-style: none;
}

.comparison-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.comparison-card li:last-child {
  border-bottom: none;
}

.comparison-card.ours li {
  color: var(--text);
}

.comparison-card .icon {
  font-size: 1.25rem;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: white;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 60px;
}

.step {
  text-align: center;
  max-width: 250px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--text-lighter);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-alt);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  max-width: 700px;
  margin: 0 auto;
}

.privacy-icon {
  font-size: 2rem;
}

.privacy-note p {
  color: var(--text-light);
  margin: 0;
}

/* Teachers Section */
.teachers {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.teachers-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.teacher-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.teachers-text h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.teachers-text p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.teacher-uses {
  list-style: none;
  margin-bottom: 32px;
}

.teacher-uses li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
}

.teacher-uses li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: bold;
}

.teachers .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.teachers .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.testimonial-card p {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.author-name {
  font-weight: 600;
  opacity: 0.8;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.price-period {
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.need-based {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.need-based a {
  color: var(--primary);
  text-decoration: underline;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: white;
}

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

.faq-item {
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
  padding: 100px 0;
  background: var(--bg-dark);
  text-align: center;
  color: white;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.25rem;
  opacity: 0.8;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
  display: inline;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  margin-left: 8px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--text-lighter);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-lighter);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

/* Compact "Compare" footer group — vertical list of comparison pages. */
.footer-compare {
  flex-direction: column;
  gap: 10px;
}

.footer-compare .footer-group-title {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-lighter);
  font-size: 0.875rem;
}

/* Marketplace Section */
.marketplace {
  padding: 80px 0;
  background: white;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.product-card {
  position: relative;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-price {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
}

.marketplace-cta {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.marketplace-cta p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.notify-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.notify-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.notify-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.notify-form button {
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
    max-width: 500px;
    margin: 0 auto 40px;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .teachers-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .teacher-uses {
    display: inline-block;
    text-align: left;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

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

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

  .marketplace-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .notify-form {
    flex-direction: column;
  }

  .steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

  .footer-content {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* Learning Section (Free Educational Content) */
.learning-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}

.learning-section .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.free-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  }
}

.featured-learning {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, white 0%, rgba(16, 185, 129, 0.05) 100%);
}

.featured-learning:hover {
  border-color: var(--accent-light);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.featured-learning .feature-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Learning card styling for pricing */
.pricing-card.learning {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, white 0%, rgba(16, 185, 129, 0.05) 100%);
}

.pricing-card.learning .price {
  color: var(--accent);
}

.pricing-card.learning .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.pricing-card.learning .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Tech Truth Section */
.tech-truth {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a2744 100%);
  color: white;
}

.tech-truth .section-title {
  color: white;
}

.tech-truth .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.tech-explanation {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.tech-explanation h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--accent-light);
}

.tech-explanation p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.tech-note {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 1rem !important;
}

.comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto 48px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  color: var(--text);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table thead th.competitor {
  background: #fef2f2;
  color: #991b1b;
}

.comparison-table thead th.hoppo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: var(--primary);
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}

.comparison-table tbody td.competitor {
  color: var(--text-light);
}

.comparison-table tbody td.hoppo {
  color: var(--accent);
  font-weight: 600;
}

.comparison-table tbody tr:hover {
  background: var(--bg-alt);
}

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

.tech-bottom-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.bottom-line-icon {
  font-size: 2rem;
}

.tech-bottom-line p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1.1rem;
}

/* Featured Product Card */
.product-card.featured-product {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, white 0%, rgba(99, 102, 241, 0.05) 100%);
}

.product-card.featured-product:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
}

.product-badge.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* No Hardware Note */
.no-hardware-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  padding: 20px 28px;
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto 40px;
  border: 1px solid var(--accent);
}

.note-icon {
  font-size: 1.5rem;
}

.no-hardware-note p {
  color: var(--text);
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive adjustments for Tech Truth */
@media (max-width: 768px) {
  .comparison-table-wrapper {
    margin-left: -24px;
    margin-right: -24px;
    border-radius: 0;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .tech-bottom-line {
    flex-direction: column;
    text-align: center;
  }

  .no-hardware-note {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   Compare Page Styles (compare.html)
   ================================================ */

.compare-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, white 100%);
  text-align: center;
}

.compare-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.compare-hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

.compare-section {
  padding: 80px 0;
}

.compare-section.alt {
  background: var(--bg-alt);
}

.compare-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 16px;
}

.compare-section .section-subtitle {
  margin-bottom: 48px;
}

.big-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.compare-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.compare-card.them {
  border-top: 4px solid #dc2626;
}

.compare-card.us {
  border-top: 4px solid var(--accent);
}

.compare-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.compare-card .price-tag {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.compare-card.them .price-tag {
  color: #dc2626;
}

.compare-card.us .price-tag {
  color: var(--accent);
}

.compare-card ul {
  list-style: none;
  padding: 0;
}

.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.compare-card li:last-child {
  border-bottom: none;
}

.compare-card .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.compare-card.them .icon {
  color: #dc2626;
}

.compare-card.us .icon {
  color: var(--accent);
}

.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item-large {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}

.faq-item-large h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-item-large p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.verdict-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.verdict-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.verdict-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
}

.verdict-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: 0.9;
}

.verdict-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.verdict-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  opacity: 0.85;
}

.verdict-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

.verdict-cta {
  margin-top: 32px;
}

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

/* Compare page responsive */
@media (max-width: 768px) {
  .big-comparison {
    grid-template-columns: 1fr;
  }

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

/* ================================================
   Article/Why-Hoppo Page Styles
   ================================================ */

.article-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a2744 100%);
  color: white;
  text-align: center;
}

.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.article-hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.article-content {
  padding: 60px 0;
  background: white;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-container h2 {
  font-size: 1.75rem;
  margin: 48px 0 20px;
  color: var(--text);
}

.article-container h3 {
  font-size: 1.25rem;
  margin: 32px 0 16px;
  color: var(--text);
}

.article-container p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.article-container ul,
.article-container ol {
  margin: 20px 0;
  padding-left: 24px;
}

.article-container li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 12px;
}

.article-container strong {
  color: var(--text);
}

.highlight-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-box p {
  margin: 0;
  font-size: 1.1rem;
}

.warning-box {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.warning-box p {
  margin: 0;
  color: #991b1b;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.spec-card {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}

.spec-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.spec-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

.device-comparison {
  overflow-x: auto;
  margin: 32px 0;
}

.device-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.device-comparison th,
.device-comparison td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.device-comparison th {
  background: var(--bg-alt);
  font-weight: 700;
}

.device-comparison tr:hover {
  background: var(--bg-alt);
}

.power-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.power-bar-fill {
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
}

.power-bar span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.bottom-cta {
  background: var(--bg-alt);
  padding: 60px 0;
  text-align: center;
}

.bottom-cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.bottom-cta p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Article page responsive */
@media (max-width: 768px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================
   Accessibility: Skip Link
   ================================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

/* Hidden utility for schema markup */
.schema-hidden {
  display: none;
}