/* Results */
.results-section {
  padding-top: 2rem;
  background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

@media (min-width: 1024px) {
  .results-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4rem 5rem;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
  }

  .result-header h2 {
    font-size: 2.25rem;
  }

  .result-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    position: relative;
  }

  .result-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
  }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.result-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

/* Score Cards */
.score-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
  .score-cards {
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    gap: 2rem;
  }

  .score-card.main-score {
    grid-column: 1 / -1;
  }
}

.score-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.score-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.score-card.main-score {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid rgba(102, 126, 234, 0.2);
}

@media (min-width: 1024px) {
  .score-card.main-score {
    padding: 3rem;
    gap: 3rem;
  }

  .score-circle {
    width: 150px;
    height: 150px;
  }

  .score-value {
    font-size: 3rem;
  }

  .score-info h3 {
    font-size: 2rem;
  }

  .grade-letter {
    font-size: 4rem;
  }

  .grade-label {
    font-size: 1.5rem;
  }
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e293b;
}

.score-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.score-grade {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.grade-letter {
  font-size: 3rem;
  font-weight: 900;
  color: #667eea;
}

.grade-label {
  font-size: 1.25rem;
  color: #64748b;
}

.score-mini {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.score-label {
  color: #64748b;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .score-card:not(.main-score) {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
  }

  .score-mini {
    font-size: 3rem;
    margin-bottom: 0.75rem;
  }

  .score-label {
    font-size: 1rem;
  }
}

/* Metrics */
.metrics-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.metrics-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 800;
}

.metrics-section h3 i {
  color: #667eea;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .metrics-section {
    margin: 4rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .metrics-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #10b981;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-card.metric-fair {
  border-left-color: #f59e0b;
}

.metric-card.metric-poor {
  border-left-color: #ef4444;
}

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.metric-label {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.metric-abbr {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .metric-card {
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .metric-value {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .metric-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .metric-abbr {
    font-size: 0.875rem;
  }
}

/* Opportunities */
.opportunities-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.opportunities-section h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 800;
}

.opportunities-section h3 i {
  color: #f59e0b;
}

.section-subtitle {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.opportunities-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .opportunities-section {
    max-width: 1400px;
    margin: 4rem auto;
  }

  .opportunities-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .opportunities-list {
    gap: 1.5rem;
  }
}

.opportunity-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #667eea;
}

.opportunity-header {
  display: flex;
  align-items: start;
  gap: 1.5rem;
}

.opportunity-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opportunity-icon i {
  font-size: 1.5rem;
  color: white;
}

.opportunity-info {
  flex: 1;
}

.opportunity-info h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.opportunity-info p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
}

.opportunity-savings {
  text-align: right;
}

.savings-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #10b981;
}

.savings-label {
  font-size: 0.75rem;
  color: #64748b;
}

@media (min-width: 1024px) {
  .opportunity-item {
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .opportunity-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .opportunity-icon {
    width: 60px;
    height: 60px;
  }

  .opportunity-icon i {
    font-size: 1.75rem;
  }

  .opportunity-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .opportunity-info p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .savings-value {
    font-size: 2rem;
  }

  .savings-label {
    font-size: 0.875rem;
  }
}

/* Result CTA */
.result-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  color: white;
  text-align: center;
}

@media (min-width: 1024px) {
  .result-cta {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    padding: 4rem;
  }

  .result-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .result-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    gap: 1.5rem;
  }

  .cta-buttons .btn {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
  }
}

.result-cta h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.result-cta p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Info Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

.info-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-icon i {
  font-size: 1.75rem;
  color: white;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.info-card p {
  color: #475569;
  line-height: 1.6;
}

/* Revenue Impact Section */
.revenue-impact-section {
  margin: 3rem 0;
}

@media (min-width: 1024px) {
  .revenue-impact-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    margin-bottom: 4rem;
  }
}

.impact-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 6px solid #10b981;
}

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

.impact-card.impact-critical {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.impact-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.impact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  flex-shrink: 0;
}

.impact-card.impact-warning .impact-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.impact-card.impact-critical .impact-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.impact-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

@media (min-width: 1024px) {
  .impact-header h3 {
    font-size: 2rem;
  }

  .impact-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.impact-card.impact-critical .stat-value {
  color: #ef4444;
}

.impact-card.impact-warning .stat-value {
  color: #f59e0b;
}

@media (min-width: 1024px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

.stat-label {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .stat-label {
    font-size: 1rem;
  }
}

.impact-message {
  color: #1e293b;
  line-height: 1.7;
  font-size: 1.125rem;
}

.impact-message strong {
  color: #667eea;
}

.impact-card.impact-critical .impact-message strong {
  color: #ef4444;
}

@media (min-width: 1024px) {
  .impact-message {
    font-size: 1.25rem;
    line-height: 1.8;
  }
}

/* CTA Badge */
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.cta-badge i {
  font-size: 1rem;
}

/* CTA Benefits */
.cta-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .cta-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 600;
}

.benefit i {
  font-size: 1.25rem;
}

/* Emergency CTA */
.cta-emergency {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  animation: pulse-cta 3s infinite;
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 12px 48px rgba(220, 38, 38, 0.5); }
}

.cta-emergency .cta-buttons {
  gap: 1.5rem;
}

/* Warning CTA */
.cta-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Success CTA */
.cta-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.5s ease;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Device Comparison */
.device-comparison-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.device-comparison-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 800;
}

.device-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}

.device-score {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: #f9fafb;
}

.device-score.good {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.device-score.fair {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.device-score.poor {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.device-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.device-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.device-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e293b;
}

.comparison-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  color: #667eea;
}

.difference {
  font-size: 1.25rem;
  font-weight: 700;
  color: #64748b;
}

.difference.significant {
  color: #ef4444;
}

.comparison-note {
  text-align: center;
  color: #64748b;
  margin-top: 1rem;
}

/* Benchmarks */
.benchmarks-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benchmarks-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 800;
}

.benchmark-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.benchmark-stat {
  text-align: center;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
}

.benchmark-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.benchmark-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1e293b;
}

.benchmark-value.your-score {
  color: #667eea;
}

.percentile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
}

.percentile-badge.competitive {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.percentile-badge.non-competitive {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

/* Core Web Vitals Enhanced */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cwv-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  border-left: 4px solid #10b981;
}

.cwv-card.cwv-needs-improvement {
  border-left-color: #f59e0b;
}

.cwv-card.cwv-poor {
  border-left-color: #ef4444;
}

.cwv-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.cwv-header h4 {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 700;
}

.cwv-rating {
  text-transform: capitalize;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: #f9fafb;
  color: #64748b;
  font-weight: 600;
}

.cwv-value {
  font-size: 2rem;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.cwv-benchmark {
  font-size: 0.875rem;
  color: #64748b;
}

/* Code Examples */
.code-example-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.toggle-code {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.toggle-code:hover {
  transform: translateY(-2px);
}

.code-example {
  margin-top: 1rem;
  background: #1e293b;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
}

.code-example pre {
  margin: 0;
}

.code-example code {
  color: #a5b4fc;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Priority Badges */
.opportunity-badge {
  margin-bottom: 1rem;
}

.priority-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.priority-high {
  background: #fee2e2;
  color: #dc2626;
}

.priority-medium {
  background: #fef3c7;
  color: #d97706;
}

.priority-low {
  background: #e0f2fe;
  color: #0284c7;
}

/* Recommendations */
.recommendations-section {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recommendations-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 800;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  transition: transform 0.2s;
}

.recommendation-card:hover {
  transform: translateX(4px);
}

.rec-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.rec-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.rec-content p {
  color: #64748b;
  margin-bottom: 0.75rem;
}

.rec-link {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .speed-hero-content h1 {
    font-size: 2rem;
  }

  .test-card {
    padding: 1.5rem;
  }

  .input-with-button {
    flex-direction: column;
  }

  .score-cards {
    grid-template-columns: 1fr;
  }

  .score-card.main-score {
    flex-direction: column;
    text-align: center;
  }

  .opportunity-header {
    flex-direction: column;
  }

  .opportunity-savings {
    text-align: left;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .loading-progress {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .impact-header {
    flex-direction: column;
    text-align: center;
  }

  .impact-card {
    padding: 1.5rem;
  }

  .cta-benefits {
    grid-template-columns: 1fr;
  }

  .result-actions {
    flex-direction: column;
  }

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

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

  .benchmark-card {
    grid-template-columns: 1fr;
  }

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

@media print {
  .result-header,
  .result-actions,
  .toggle-code,
  header,
  footer,
  .info-grid,
  .btn {
    display: none !important;
  }

  .results-section {
    background: white !important;

/* Button Enhancements */
.btn-emergency,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.btn-emergency {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  flex-direction: column;
  padding: 1.5rem 2.5rem;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.4);
}

.btn-emergency i {
  font-size: 1.5rem;
}

.btn-emergency .btn-main {
  font-size: 1.25rem;
  font-weight: 800;
}

.btn-emergency .btn-sub {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 600;
}

.btn-primary.btn-lg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-secondary.btn-lg {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary.btn-lg:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-phone-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.125rem;
  backdrop-filter: blur(10px);
}

.btn-phone-large:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-phone-large i {
  font-size: 1.25rem;
}

/* Button Icons */
.cta-buttons a i {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .btn-emergency,
  .btn-primary.btn-lg,
  .btn-secondary.btn-lg,
  .btn-phone-large {
    width: 100%;
    justify-content: center;
    padding: 1.25rem 1.5rem;
  }
  
  .btn-emergency {
    padding: 1.75rem 1.5rem;
  }
}
