/* ============================================================
   Comment generator page.

   The tool carries its own styles from the plugin. This is only
   the page around it, and it is deliberately dense: two columns
   of short blocks rather than one long scroll.
   ============================================================ */

.cg-hero {
  background:
    radial-gradient(900px 420px at 20% -10%, #9B23D41f, transparent 60%),
    var(--paper);
}

.cg-hero-inner {
  padding: clamp(2rem, 4.5vw, 3.2rem) var(--pad) clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.cg-hero-inner .svc-h1 { max-width: 20ch; margin: .3rem 0 0; }
.cg-hero-inner .svc-lede { max-width: 52rem; margin: .9rem 0 0; }
.cg-eyebrow { margin: 0; color: var(--violet); }

/* The tool sits tight under the hero: it is what the page is for. */
.cg-tool-section { padding-top: 0; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.cg-h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 .7rem;
}

.cg-h3 { font-size: 1.02rem; line-height: 1.3; margin: 1.3rem 0 .4rem; }
.cg-p  { margin: 0 0 .7rem; font-size: .93rem; line-height: 1.6; color: var(--ink-2); }

/* ---------------- two columns ---------------- */

.cg-cols {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  align-items: start;
}

.cg-steps {
  margin: 0; padding-left: 1.1rem;
  display: flex; flex-direction: column; gap: .4rem;
  font-size: .93rem; line-height: 1.55; color: var(--ink-2);
}

.cg-steps li::marker { color: var(--violet); font-weight: 800; }

/* ---------------- use cases ---------------- */

.cg-uses {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-bottom: 1.4rem;
}

.cg-use {
  padding: .9rem 1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.cg-use-title { font-size: .95rem; line-height: 1.25; margin: 0 0 .3rem; }
.cg-use-body  { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }

/* ---------------- the honest bit ---------------- */

.cg-callout {
  padding: 1.2rem 1.25rem;
  border-radius: var(--r);
  background: var(--violet-soft);
  border-left: 3px solid var(--violet);
}

.cg-callout .cg-h3 { margin-top: 0; }
.cg-callout .cg-p:last-of-type { margin-bottom: 0; }

.cg-fine { margin: .8rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* ---------------- other tools ---------------- */

.cg-more {
  margin-top: 1.2rem;
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.cg-more-card {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--hairline);
  text-decoration: none;
  transition: border-color .16s, transform .16s;
}

.cg-more-card:hover { border-color: var(--violet); transform: translateY(-2px); }

.cg-more-title { font-weight: 800; font-size: .98rem; }
.cg-more-body  { font-size: .87rem; line-height: 1.5; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .cg-more-card { transition: none; }
  .cg-more-card:hover { transform: none; }
}
