/*
 * 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; }

/* ---------- Playbook guides (/playbooks/governance/, /playbooks/all-hands/) ---------- */
.pg-toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px auto 0; max-width: 820px; padding: 0; list-style: none; }
.pg-toc a {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 650;
}
.pg-toc a:hover { border-color: #c9d7f5; text-decoration: none; }
.pg-toc b { color: var(--teal-dark); font-weight: 800; }
.pg-guide [id] { scroll-margin-top: 90px; }
.pg-guide .prose { padding-bottom: 24px; }
.pg-part { padding: 40px 0 8px; border-top: 1px solid var(--line); }
.pg-part:first-of-type { border-top: 0; }
.pg-part-num { display: block; margin: 0 0 10px; color: var(--teal-dark); font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.prose .pg-part h2 { margin-top: 0; font-size: clamp(28px, 3.6vw, 38px); }

/* Numbered steps: one card per step, with a time or moment in the corner. */
.prose ol.pg-steps { list-style: none; padding: 0; margin: 24px 0 28px; counter-reset: pgstep; display: grid; gap: 12px; }
.pg-steps > li {
  position: relative; margin: 0; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  counter-increment: pgstep;
}
.pg-steps > li::before {
  content: counter(pgstep); position: absolute; left: 18px; top: 17px; width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; background: var(--teal-tint); color: var(--teal-dark); font-size: 15px; font-weight: 800;
}
.pg-steps h3 { margin: 2px 0 6px !important; font-size: 18px; }
.pg-steps p { margin: 0 0 8px !important; font-size: 16px; }
.pg-steps p:last-child { margin-bottom: 0 !important; }
.pg-steps ul { margin: 6px 0 0 !important; font-size: 16px; }
.pg-steps li li { margin-bottom: 4px; }
.pg-when { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 6px; background: var(--blue-tint); color: #2f45b8; font-size: 12px; font-weight: 750; }

/* Short checklist with ticks. */
.prose ul.pg-checks { list-style: none; padding: 0; }
.pg-checks li { position: relative; padding-left: 30px; }
.pg-checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--teal-tint);
}
.pg-checks li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--teal-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* The template bar: always on screen, fixed to the bottom of the window. */
.pg-sticky {
  position: fixed; left: 50%; bottom: 14px; z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; width: min(760px, calc(100% - 24px)); padding: 10px 10px 10px 16px;
  background: var(--ink); color: #c5cedb; border-radius: 16px; box-shadow: 0 10px 30px rgba(19, 35, 61, 0.28);
}
.pg-sticky-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-size: 18px; }
.pg-sticky-text { flex: 1; min-width: 0; line-height: 1.3; }
.pg-sticky-text b { display: block; color: #fff; font-size: 15px; font-weight: 750; }
.pg-sticky-text span { display: block; font-size: 13px; }
.pg-sticky .pg-btn { flex: none; height: 42px; padding: 0 18px; background: #fff; border-color: #fff; color: var(--ink) !important; font-size: 14.5px; }
body:has(.pg-sticky) { padding-bottom: 84px; }
@media (max-width: 560px) {
  .pg-sticky { gap: 10px; padding: 8px 8px 8px 12px; bottom: 10px; }
  .pg-sticky-icon { display: none; }
  .pg-sticky-text b { font-size: 14px; }
  .pg-sticky-text span { display: none; }
  .pg-sticky .pg-btn { padding: 0 14px; font-size: 14px; }
}
