/* Features Page - Scrollable Phone Frames */

/* Hero Section - centered single column */
.feature-hero {
  padding: 80px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
}

.hero-content p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 24px;
  color: var(--text);
}

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

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.92;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.cta-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  filter: brightness(1.2);
}

/* Phone Container and Frame */
.phone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-frame {
  width: 340px;
  height: 680px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 42px;
  padding: 14px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(148, 163, 184, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 32px;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for phone screen */
.phone-screen::-webkit-scrollbar {
  width: 4px;
}

.phone-screen::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.phone-screen::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.phone-caption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

/* Feature Section - Alternating Layout */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.feature-section.reverse {
  direction: rtl;
}

.feature-section.reverse > * {
  direction: ltr;
}

.text-content h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 16px;
  color: var(--text);
}

.text-content h3 {
  font-size: clamp(20px, 2vw, 24px);
  margin: 32px 0 12px;
  color: var(--brand);
}

.text-content h4 {
  font-size: clamp(17px, 1.8vw, 19px);
  margin: 24px 0 8px;
  color: var(--text);
  font-weight: 600;
}

.text-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0.92;
}

.text-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.text-content li {
  margin: 12px 0;
  line-height: 1.6;
  font-size: 16px;
}

.text-content strong {
  color: var(--brand);
  font-weight: 600;
}

.disclaimer-text {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  margin-top: 24px;
  border-radius: 4px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

/* Correlation Intro Section */
.correlation-intro-section {
  padding: 60px 20px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.correlation-intro-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 16px;
  color: var(--text);
}

.correlation-intro-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.92;
  margin: 0 auto;
  max-width: 700px;
}

/* Remove border from sections following intro */
.correlation-intro-section + .feature-section {
  border-top: none;
  padding-top: 40px;
}

/* Correlation Grid Section */
.correlation-grid-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.correlation-grid-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 12px;
  color: var(--text);
  text-align: center;
}

.correlation-grid-section .section-intro {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.92;
  margin: 0 auto 32px;
  max-width: 700px;
}

.correlation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.correlation-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.correlation-card:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.correlation-card .card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.correlation-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 600;
}

.correlation-card p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}

/* Recommendations Grid - 3x2 layout */
.recommendations-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Understanding Section */
.understanding-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.understanding-section h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 0 0 20px;
  color: var(--text);
  text-align: center;
}

.understanding-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.understanding-section li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.92;
}

.understanding-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
}

/* Export Section */
.export-section {
  padding: 40px 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.export-section h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 0 0 16px;
  color: var(--text);
}

.export-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.92;
  margin: 0 0 12px;
}

.export-section .export-note {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-top: 16px;
}

/* Disclaimer Section */
.disclaimer-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 24px 32px;
  margin: 60px auto;
  max-width: 900px;
  text-align: center;
}

.disclaimer-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 16px;
  color: var(--text);
}

.cta p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

/* Mobile Responsiveness */
@media (max-width: 980px) {
  .feature-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px 40px;
  }

  .hero-content {
    text-align: center;
  }

  .feature-list li {
    text-align: left;
  }

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

  .feature-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }

  .feature-section.reverse {
    direction: ltr;
  }

  .text-content {
    text-align: left;
  }

  .phone-frame {
    width: 300px;
    height: 600px;
  }

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

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

@media (max-width: 640px) {
  .phone-frame {
    width: 280px;
    height: 560px;
    padding: 12px;
    border-radius: 36px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .text-content h2 {
    font-size: 24px;
  }

  .text-content h3 {
    font-size: 20px;
  }

  .disclaimer-section {
    padding: 20px;
    margin: 40px 20px;
  }

  .disclaimer-section p {
    font-size: 14px;
  }

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

/* Tabs Overview Section */
.tabs-overview-section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.tabs-overview-section .tagline {
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.tabs-overview-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 16px;
  color: var(--text);
  text-align: center;
}

.tabs-overview-section .section-intro {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.92;
  margin: 0 auto 40px;
  max-width: 700px;
}

.tabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Make Resources card span full width at bottom */
.tabs-grid .tab-card:last-child {
  grid-column: 1 / -1;
  max-width: 600px;
  justify-self: center;
}

.tab-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tab-card:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.tab-card .tab-icon {
  font-size: 24px;
  margin-right: 8px;
}

.tab-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.tab-card > p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--muted);
}

.tab-card ul {
  margin: 0;
  padding-left: 20px;
}

.tab-card li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0;
}

.tab-card li strong {
  color: var(--text);
  font-weight: 600;
}

.tab-card .tab-note {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin: 12px 0 0;
  opacity: 0.85;
}

/* Mobile Responsiveness for Tabs Overview */
@media (max-width: 980px) {
  .tabs-grid {
    grid-template-columns: 1fr;
  }

  .tabs-grid .tab-card:last-child {
    max-width: none;
  }
}
