/* =====================================================
   Microsoft Copilot Free vs Pro - Comparison Website
   Clean, Professional Design
   ===================================================== */

/* CSS Variables */
:root {
  --primary-color: #0078d4;
  --primary-dark: #005a9e;
  --secondary-color: #5c2d91;
  --accent-color: #00bcf2;
  --success-color: #107c10;
  --warning-color: #ffb900;
  --text-primary: #323130;
  --text-secondary: #605e5c;
  --text-light: #a19f9d;
  --bg-primary: #ffffff;
  --bg-secondary: #faf9f8;
  --bg-tertiary: #f3f2f1;
  --border-color: #edebe9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

/* Header & Navigation */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.logo-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

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

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.comparison-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.comparison-card.free {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
}

.comparison-card.pro {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0e8fa 100%);
  border: 2px solid var(--primary-color);
}

.comparison-card.pro::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tier-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list .check {
  color: var(--success-color);
  font-weight: bold;
  flex-shrink: 0;
}

.feature-list .cross {
  color: var(--text-light);
  flex-shrink: 0;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table th:not(:first-child) {
  text-align: center;
  min-width: 150px;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

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

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

.table-check {
  color: var(--success-color);
  font-size: 1.25rem;
}

.table-cross {
  color: var(--text-light);
  font-size: 1.25rem;
}

/* App Tabs */
.app-tabs {
  margin: 2rem 0;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--primary-color);
  background: var(--bg-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.app-feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.app-feature-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.app-feature-card ul {
  list-style: none;
}

.app-feature-card li {
  padding: 0.375rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.app-feature-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Example Box */
.example-box {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
  border-left: 4px solid var(--warning-color);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.example-box h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.example-box p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.example-box em {
  color: var(--text-primary);
  font-style: italic;
}

/* Decision Section */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.decision-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.decision-card h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.decision-card.free h3 {
  color: var(--text-secondary);
}

.decision-card.pro h3 {
  color: var(--primary-color);
}

.decision-list {
  list-style: none;
}

.decision-list li {
  padding: 0.625rem 0;
  padding-left: 2rem;
  position: relative;
}

.decision-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Bottom Line Section */
.bottom-line {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.bottom-line h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.bottom-line p {
  max-width: 700px;
  margin: 0 auto 1rem;
  opacity: 0.95;
}

.distinction-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}

.distinction-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.distinction-item h4 {
  color: white;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.distinction-item p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Documentation Links */
.docs-section {
  background: var(--bg-secondary);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.doc-link:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.doc-link-icon {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.doc-link span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer */
.footer {
  background: #e6e6e6;
  color: #3e3e3e;
  padding: 1.5rem 0;
  border-top: 1px solid #d0d0d0;
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  max-width: 120px;
  width: 100%;
  height: auto;
}

.footer-text {
  color: #3e3e3e;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer-link {
  color: #ba0c2f;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-disclaimer {
  color: #605e5c;
  font-size: 0.85rem;
  margin-bottom: 0;
  flex: 1;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #3e3e3e;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ba0c2f;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }

  .nav-links {
    gap: 1rem;
  }

  .comparison-grid,
  .decision-grid,
  .app-feature-grid,
  .distinction-box {
    grid-template-columns: 1fr;
  }

  .comparison-card.pro::before {
    top: -10px;
    right: 10px;
    font-size: 0.7rem;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .tab-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
  }

  .tab-btn {
    white-space: nowrap;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  .header, .footer, .btn {
    display: none;
  }

  .section {
    padding: 1rem 0;
  }

  .card, .comparison-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
