/* ============================================================
   landing.css — SEO page editorial styles
   Layered on top of main.css + converter.css for SEO pages.
   ============================================================ */

/* ----------------------------------------------------------
   Page Hero (editorial header above converter)
   ---------------------------------------------------------- */
.landing-hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  padding-block: var(--space-12) var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.landing-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.landing-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-bottom: var(--space-6);
}

.landing-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.landing-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.landing-hero__meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-success);
}

/* ----------------------------------------------------------
   Editorial Prose Sections
   ---------------------------------------------------------- */
.editorial {
  padding-block: var(--space-16);
}

.editorial + .editorial {
  padding-top: 0;
}

.editorial--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.editorial__header {
  margin-bottom: var(--space-8);
}

.editorial__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  display: block;
}

.editorial__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.editorial__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 680px;
}

/* ----------------------------------------------------------
   Prose Content (article body)
   ---------------------------------------------------------- */
.prose h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}

.prose p {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.prose ul, .prose ol {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.prose ol {
  list-style: decimal;
}

.prose li {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}

.prose strong {
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----------------------------------------------------------
   Step List (numbered how-to steps)
   ---------------------------------------------------------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.step-item {
  display: flex;
  gap: var(--space-5);
}

.step-item__number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item__content {
  flex: 1;
}

.step-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.step-item__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ----------------------------------------------------------
   FAQ Accordion (lightweight, CSS only)
   ---------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  transition: background-color var(--transition-fast);
}

.faq-item__question:hover {
  background: var(--color-surface);
}

.faq-item__icon {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  line-height: 1;
}

.faq-item__answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  background: var(--color-bg);
}

.faq-item--open .faq-item__answer {
  display: block;
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

/* ----------------------------------------------------------
   Comparison Table
   ---------------------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--text-sm);
}

.comparison-table th {
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.comparison-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

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

.comparison-table tr:hover td {
  background: var(--color-surface);
}

.comparison-table .check { color: var(--color-success); font-weight: var(--weight-bold); }
.comparison-table .cross { color: var(--color-error);   font-weight: var(--weight-bold); }

/* ----------------------------------------------------------
   CTA Block
   ---------------------------------------------------------- */
.cta-block {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
  border-radius: var(--radius-2xl);
  color: #ffffff;
}

.cta-block__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

.cta-block__text {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-bottom: var(--space-6);
}

.cta-block .btn--primary {
  background: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

.cta-block .btn--primary:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  .landing-hero__title {
    font-size: var(--text-3xl);
  }

  .landing-hero__subtitle {
    font-size: var(--text-base);
  }

  .cta-block {
    padding: var(--space-8) var(--space-4);
  }

  .cta-block__title {
    font-size: var(--text-2xl);
  }
}

/* ----------------------------------------------------------
   FAQ toggle script helper (no framework needed)
   ---------------------------------------------------------- */
