/**
 * Pattern Maker SEO content styles — Kick-Start aligned, cross-browser.
 * Variables match .pm-app in the tool stylesheet.
 */

.pm-seo {
  --pm-accent: #6366f1;
  --pm-accent-soft: #eef2ff;
  --pm-border: #e5e7eb;
  --pm-bg: #f9fafb;
  --pm-surface: #ffffff;
  --pm-text: #111827;
  --pm-muted: #6b7280;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 0.75rem 2rem;
  color: var(--pm-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  font-size: 1rem;
}

.pm-seo *,
.pm-seo *::before,
.pm-seo *::after {
  box-sizing: border-box;
}

.pm-seo__intro {
  max-width: 42rem;
  margin: 0 auto 2.25rem;
  padding: 1.5rem 1.25rem;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.pm-seo__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pm-accent);
}

.pm-seo__lead-heading {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--pm-text);
}

.pm-seo__lead {
  margin: 0;
  color: var(--pm-muted);
  font-size: 1.05rem;
}

.pm-seo__lead strong {
  color: var(--pm-text);
  font-weight: 600;
}

.pm-seo__section {
  margin: 0 0 2.5rem;
}

.pm-seo__section > h2 {
  margin: 0 0 1.15rem;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--pm-text);
}

/* How-to steps */

.pm-seo__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.75rem;
}

.pm-seo__step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
}

.pm-seo__step-num {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--pm-accent-soft);
  color: var(--pm-accent);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

.pm-seo__step-body {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.pm-seo__step-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.pm-seo__step-body p {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.95rem;
}

/* Features table */

.pm-seo__table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  background: var(--pm-surface);
}

.pm-seo__table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.pm-seo__table th,
.pm-seo__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--pm-border);
}

.pm-seo__table thead th {
  background: var(--pm-bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pm-muted);
}

.pm-seo__table tbody th {
  font-weight: 600;
  color: var(--pm-text);
  white-space: nowrap;
  width: 28%;
}

.pm-seo__table tbody td {
  color: var(--pm-muted);
}

.pm-seo__table tbody tr:last-child th,
.pm-seo__table tbody tr:last-child td {
  border-bottom: none;
}

/* Audience cards */

.pm-seo__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.75rem 1fr 0.75rem 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pm-seo__card {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
}

.pm-seo__card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.pm-seo__card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pm-muted);
}

/* Benefits & tips */

.pm-seo__benefits,
.pm-seo__tips {
  margin: 0;
  padding: 0 0 0 1.25rem;
  max-width: 42rem;
}

.pm-seo__benefits li,
.pm-seo__tips li {
  margin: 0 0 0.65rem;
  color: var(--pm-muted);
}

.pm-seo__benefits li:last-child,
.pm-seo__tips li:last-child {
  margin-bottom: 0;
}

.pm-seo__benefits strong {
  color: var(--pm-text);
}

/* FAQ — details/summary */

.pm-seo__faq-list {
  max-width: 42rem;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pm-surface);
}

.pm-seo__faq-item {
  border-bottom: 1px solid var(--pm-border);
}

.pm-seo__faq-item:last-child {
  border-bottom: none;
}

.pm-seo__faq-q {
  display: block;
  padding: 0.9rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.4;
  list-style: none;
}

.pm-seo__faq-q::-webkit-details-marker {
  display: none;
}

.pm-seo__faq-q::marker {
  content: "";
}

.pm-seo__faq-q:focus {
  outline: none;
}

.pm-seo__faq-q:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: -2px;
  background: var(--pm-accent-soft);
}

.pm-seo__faq-a {
  padding: 0 1.1rem 1rem;
}

.pm-seo__faq-a p {
  margin: 0;
  color: var(--pm-muted);
  font-size: 0.95rem;
}

.pm-seo__faq-a a {
  color: var(--pm-accent);
  font-weight: 600;
  text-decoration: underline;
}

.pm-seo__faq-a a:hover {
  text-decoration: none;
}

.pm-seo__faq-a a:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

/* Responsive */

@media (max-width: 1024px) {
  .pm-seo__cards {
    -ms-grid-columns: 1fr 0.75rem 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pm-seo {
    margin-top: 1.75rem;
    padding: 0 0.5rem 1.5rem;
  }

  .pm-seo__intro {
    padding: 1.15rem 1rem;
    text-align: left;
  }

  .pm-seo__lead-heading {
    font-size: 1.25rem;
  }

  .pm-seo__section > h2 {
    font-size: 1.2rem;
  }

  .pm-seo__cards {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }

  .pm-seo__table tbody th {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-seo * {
    -webkit-transition: none !important;
    transition: none !important;
  }
}

@media print {
  .pm-seo {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .pm-seo__intro,
  .pm-seo__step,
  .pm-seo__card,
  .pm-seo__table-wrap,
  .pm-seo__faq-list {
    box-shadow: none;
    border-color: #ccc;
  }

  .pm-seo__faq-item {
    break-inside: avoid;
  }

  .pm-seo__faq-item[open] .pm-seo__faq-a,
  .pm-seo__faq-a {
    display: block !important;
  }
}
