/* content.css — marketing/content sections + footer shared by index.html and
   font-generator.html. Reuses design tokens; card surfaces are self-contained
   (not .panel-card, which only exists in layout.css / the PFP page). */

.content-block {
  display: grid;
  gap: 18px;
  margin: 56px 0 0;
}

/* On the PFP page the preview panel and content blocks share a right-column
   wrapper (.studio-right) so the content sits directly under the preview,
   independent of how tall the left control panel grows. The font page has no
   studio-layout, so this is a no-op there. */
.studio-right {
  align-content: start;
  display: grid;
  grid-column: 2;
  gap: 0;
}

/* Preview flows above the content blocks (no longer sticky). */
.studio-right > .preview-panel {
  position: static;
}

.studio-right > .content-block {
  margin-top: 56px;
}

/* CTA — closing call-to-action under the FAQ. */
.cta-card {
  background: linear-gradient(145deg, var(--violet), var(--violet-2));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.cta-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 0;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.cta-button {
  background: #fff;
  border-radius: 999px;
  color: var(--violet);
  font-weight: 700;
  justify-self: center;
  padding: 12px 24px;
  text-decoration: none;
}

.cta-button:hover {
  color: var(--violet-2);
}

@media (max-width: 980px) {
  .studio-right {
    grid-column: 1;
    order: 2;
  }
}

.content-block-head {
  display: grid;
  gap: 4px;
  text-align: center;
}

.content-block-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.content-block-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Features — auto-fit card grid */
.features-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.howto-step,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.feature-card p,
.howto-step p,
.faq-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* How-to — numbered step row */
.howto-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.howto-step {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.howto-num {
  align-items: center;
  background: linear-gradient(145deg, var(--violet), var(--violet-2));
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.howto-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

/* FAQ — disclosure list */
.faq-list {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 820px;
  width: 100%;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 18px 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] p {
  padding: 0 22px 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin-top: 64px;
  padding-top: 28px;
}

.footer-cols {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
}

.footer-thanks {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.footer-tools {
  display: grid;
  gap: 6px;
}

.footer-tools-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.footer-tools a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-tools a:hover {
  color: var(--ink);
}

.footer-rights {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Dark theme: lift card surfaces like the rest of the studio. */
body.dark .feature-card,
body.dark .howto-step,
body.dark .faq-item,
body[data-theme="dark"] .feature-card,
body[data-theme="dark"] .howto-step,
body[data-theme="dark"] .faq-item {
  background: rgba(255, 255, 255, 0.04);
}

/* Mobile */
@media (max-width: 720px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .content-block-head {
    text-align: left;
  }
}
