/*
 * Content pages written for this site: hub pages (/solutions/, /playbooks/, /articles/),
 * articles and legal pages. Matches the home page: Figtree, navy ink, soft blue-white background,
 * teal and the Nova AI gradient as accents. Scoped to .pg so it never reaches the top bar or footer.
 * For app interface mockups inside these pages, add /css/app-ui.css.
 */
.pg {
  --ink: #13233d;
  --body: #3b4658;
  --muted: #64748b;
  --faint: #94a3b8;
  --bg: #f9fcfe;
  --card: #fff;
  --line: #e2e7ef;
  --teal: #15bba4;
  --teal-dark: #0d7566;
  --teal-tint: #ddf7f3;
  --blue: #5170ff;
  --blue-tint: #eef1ff;
  --gradient: linear-gradient(135deg, #5170ff 0%, #2dcdb5 100%);
  background: var(--bg);
  color: var(--body);
  font-family: Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { color: var(--teal-dark); font-weight: 650; text-decoration: none; }
.pg a:hover { text-decoration: underline; }
.pg img { max-width: 100%; height: auto; }

.pg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.pg-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.pg-hero { position: relative; padding: 72px 0 40px; text-align: center; }
.pg-hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, rgba(81, 112, 255, 0.10), transparent 70%),
              radial-gradient(40% 50% at 70% 30%, rgba(45, 205, 181, 0.10), transparent 70%);
}
.pg-hero > * { position: relative; z-index: 1; }
.pg-hero.left { text-align: left; }
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.pg-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.pg h1 {
  margin: 0 auto 18px; max-width: 880px; color: var(--ink);
  font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance;
}
.pg-hero.left h1 { margin-left: 0; }
.pg-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-lead { margin: 0 auto 28px; max-width: 680px; color: var(--muted); font-size: clamp(18px, 2.2vw, 20px); line-height: 1.55; text-wrap: pretty; }
.pg-hero.left .pg-lead { margin-left: 0; }
.pg-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pg-hero.left .pg-ctas { justify-content: flex-start; }
.pg-micro { margin: 16px 0 0; color: var(--faint); font-size: 13.5px; }

.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: #fff !important;
  font-size: 15.5px; font-weight: 700 !important; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.pg-btn:hover { text-decoration: none !important; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(19, 35, 61, 0.18); }
.pg-btn.ghost { background: #fff; color: var(--ink) !important; border-color: #d2d9e3; }
.pg-btn.ghost:hover { border-color: var(--ink); box-shadow: none; }

/* ---------- Sections ---------- */
.pg-section { padding: 48px 0; }
.pg-section-head { max-width: 720px; margin: 0 0 28px; }
.pg-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.pg h2 { margin: 0 0 12px; color: var(--ink); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.pg h3 { margin: 0 0 8px; color: var(--ink); font-size: 19px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
.pg-section-head p { margin: 0; color: var(--muted); font-size: 18px; }

/* ---------- Cards ---------- */
.pg-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .pg-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--body) !important; font-weight: 450 !important;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.pg-card:hover { text-decoration: none !important; border-color: #c9d7f5; box-shadow: 0 1px 2px rgba(19, 35, 61, 0.04), 0 12px 32px rgba(19, 35, 61, 0.08); transform: translateY(-2px); }
.pg-card h3 { margin: 0; }
.pg-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.pg-card .pg-more { margin-top: auto; padding-top: 10px; color: var(--teal-dark); font-size: 14.5px; font-weight: 700; }
.pg-card .pg-more::after { content: " →"; }
.pg-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px;
  background: var(--blue-tint); color: #2f45b8; font-size: 12px; font-weight: 700;
}
.pg-tag.teal { background: var(--teal-tint); color: var(--teal-dark); }
.pg-tag.untranslated { background: #fef3c7; color: #92400e; }
.pg-icon {
  width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue); font-size: 20px;
}
.pg-icon.teal { background: var(--teal-tint); color: var(--teal-dark); }
.pg svg.lucide { width: 1em; height: 1em; stroke-width: 2; flex: none; }

/* ---------- Final call to action ---------- */
.pg-final { margin: 40px 0 0; padding: 64px 16px; text-align: center; background: var(--ink); color: #c5cedb; }
.pg-final h2 { color: #fff; margin-left: auto; margin-right: auto; max-width: 760px; }
.pg-final p { margin: 0 auto 26px; max-width: 600px; font-size: 18px; }
.pg-final .pg-btn { background: #fff; color: var(--ink) !important; border-color: #fff; }
.pg-final .pg-btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.4); }

/* ---------- Breadcrumbs ---------- */
.pg-crumbs { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.pg-crumbs a { color: var(--muted); font-weight: 600; }
.pg-crumbs span[aria-hidden] { margin: 0 7px; color: var(--faint); }

/* ---------- Long-form text (articles, legal) ---------- */
.pg-article-head { padding-top: 56px; padding-bottom: 8px; }
.pg-article-head h1 { margin-left: 0; font-size: clamp(34px, 5vw, 50px); }
.pg-byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.prose { padding-top: 16px; padding-bottom: 64px; }
.prose > * { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose h2 { margin: 52px 0 14px; font-size: clamp(24px, 3vw, 30px); }
.prose h3 { margin: 32px 0 10px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--ink); font-size: 19px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--faint); font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.prose .table-scroll { overflow-x: auto; }
.prose figure.ui { margin: 32px 0; }
.prose figure.ui figcaption { font-size: 14px; }
.pg-callout { margin: 28px 0; padding: 18px 20px; border-radius: 14px; background: var(--blue-tint); border: 1px solid #d3e3fe; }
.pg-callout.teal { background: var(--teal-tint); border-color: transparent; }
.pg-callout p:last-child { margin-bottom: 0; }
.pg-callout-title { margin: 0 0 4px !important; color: var(--ink); font-weight: 800; }
.pg-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 28px 0; }
.pg-stat { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pg-stat b { display: block; color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pg-stat span { color: var(--muted); font-size: 14px; }
.pg-related { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.pg-related ul { list-style: none; padding: 0; }

/* ---------- 404 ---------- */
.pg-404 { min-height: 60vh; }
