/**
 * About Page Stylesheet
 * Responsive, educator-friendly presentation with accessible contrast and clean typography.
 */

:root {
  --primary-blue: #3373cc;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #eff6ff;
  --accent-yellow: #f59e0b;
  --accent-green: #22c55e;
  --bg-slate: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-light: #e2e8f0;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.about-navbar {
  position: sticky;
  top: 0;
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.15rem;
}

.about-brand-badge {
  background: var(--accent-yellow);
  color: #78350f;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.about-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-launch-studio {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-launch-studio:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(51, 115, 204, 0.35);
}

.btn-nav-outline {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
}

.btn-nav-outline:hover {
  background: var(--bg-slate);
  color: var(--text-main);
}

/* Page Container */
.about-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Hero Section */
.about-hero {
  text-align: center;
  padding: 30px 10px 50px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.about-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #0f172a;
}

.about-hero p.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--primary-blue);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(51, 115, 204, 0.4);
  transition: all 0.15s ease;
}

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

.btn-hero-secondary {
  background: #ffffff;
  color: var(--text-main);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
  background: #f1f5f9;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 0 48px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.disclaimer-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.disclaimer-content h3 {
  color: #92400e;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 6px;
}

.disclaimer-content p {
  color: #78350f;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Content Sections */
.about-section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.about-section h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #0f172a;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

/* Story / Why section */
.story-highlight {
  background: #f8fafc;
  border-left: 4px solid var(--primary-blue);
  padding: 18px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  color: #334155;
  font-size: 0.95rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 8px;
  color: #0f172a;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Dual Modes Showcase */
.modes-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.mode-column {
  border-radius: var(--radius-md);
  padding: 24px;
  border: 2px solid var(--border-light);
}

.mode-column.mode-icon-blocks {
  background: #fffdf5;
  border-color: #fde047;
}

.mode-column.mode-word-blocks {
  background: #f8faff;
  border-color: #bfdbfe;
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mode-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.mode-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.mode-tag-icon {
  background: #fef08a;
  color: #713f12;
}

.mode-tag-word {
  background: #dbeafe;
  color: #1e40af;
}

.mode-list {
  list-style: none;
  margin-top: 14px;
}

.mode-list li {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mode-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 800;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Compatibility Table */
.compat-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.compat-table th,
.compat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.compat-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.badge-status-yes {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  background: #f8fafc;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Footer */
.about-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-footer a {
  color: var(--primary-blue);
  text-decoration: none;
}

.about-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2rem;
  }
  .modes-showcase,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .about-section {
    padding: 24px 18px;
  }
}
