/* Shared helpers for the generated use-case and language-pair landing pages.
   Everything here sits on top of styles.css and only adds what those pages
   need beyond the homepage system, so the two files stay in one design. */

.uc-hero { text-align: center; }
.uc-hero h1 { margin: 0 auto; max-width: 16ch; }
.uc-hero .uc-sub {
  max-width: 62ch;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.6;
}
.uc-hero .hero-actions { justify-content: center; margin-top: 30px; }
/* Headline lengths vary per page, so the italic line has to be free to wrap.
   styles.css handles this globally now; this stays as a guard in case that
   rule ever goes back to nowrap. */
.uc-hero h1 .heading-italic { white-space: normal; }

.uc-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uc-shot {
  width: min(100%, 1100px);
  height: auto;
  margin: 48px auto 0;
  display: block;
  border-radius: 14px;
  position: relative;
  z-index: 1;
}

/* Step number sits in the shared .feature-icon accent circle. */
.feature-icon .step-num { color: #fff; font-weight: 800; font-size: 1rem; line-height: 1; }

.uc-copy-only { display: block; max-width: 760px; text-align: center; }
.uc-copy-only .split-feature__copy { text-align: center; }
.uc-copy-only .split-feature__copy p { max-width: 620px; margin: 0 auto 20px; }

.split-feature__media img.uc-keep-voice { max-width: 540px; }

.uc-related { text-align: center; font-size: 0.95rem; margin: 0 auto 26px; }
.uc-related a { color: var(--accent); text-decoration: none; font-weight: 600; }
.uc-related a:hover { text-decoration: underline; }

/* ── Prose block: the paragraphs that carry the real keyword depth ── */
.uc-prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}
.uc-prose p { margin: 0 0 18px; }
.uc-prose p:last-child { margin-bottom: 0; }
.uc-prose strong { color: var(--text); }
.uc-prose a { color: #7c4fbf; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Link grid used for the related-pages block ── */
.uc-links {
  max-width: 1064px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.uc-link-card {
  display: block;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 22, 0.08);
  background: rgba(255, 255, 255, 0.84);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.uc-link-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.uc-link-card b {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.uc-link-card span { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

/* ── Comparison table for the tools roundup ── */
.uc-table {
  max-width: 1064px;
  margin: 0 auto;
  border: 1px solid rgba(17, 17, 22, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.uc-table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid rgba(17, 17, 22, 0.07);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
.uc-table-row:first-child { border-top: 0; }
.uc-table-row--head {
  background: rgba(17, 17, 22, 0.035);
  color: var(--text);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.uc-table-row strong { color: var(--text); font-weight: 700; }
.uc-table-row--featured { background: rgba(207, 157, 255, 0.14); }

/* ── Numbered roundup entries ── */
.uc-rank {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.uc-rank article {
  padding: 26px 28px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 22, 0.08);
  background: rgba(255, 255, 255, 0.84);
}
.uc-rank article.is-first { border-color: var(--accent); box-shadow: 0 10px 30px rgba(207, 157, 255, 0.22); }
.uc-rank h3 { margin: 0 0 10px; font-size: 1.05rem; }
.uc-rank h3 .uc-rank-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  vertical-align: middle;
}
.uc-rank p { margin: 0 0 10px; color: var(--muted); font-size: 0.85rem; line-height: 1.65; }
.uc-rank p:last-child { margin-bottom: 0; }
.uc-rank p strong { color: var(--text); }

@media (max-width: 900px) {
  .uc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-table-row { grid-template-columns: 1fr; gap: 6px; }
  .uc-table-row--head { display: none; }
  .uc-table-row { border-top: 1px solid rgba(17, 17, 22, 0.07); }
}

@media (max-width: 600px) {
  .uc-links { grid-template-columns: 1fr; }
  .uc-hero h1 { max-width: 100%; }
}
