/* Shared Astra content pages (About Us, FAQ, etc.) */
:root {
  --cp-ink: #171717;
  --cp-muted: #626262;
  --cp-border: #e5e7eb;
  --cp-bg: #f9fafb;
  --cp-surface: #fff;
  --cp-lime: #d8f382;
  --cp-lime-hover: #b8d690;
  --cp-forest: #122b23;
  --cp-forest-soft: #eef6e8;
  --cp-accent: #5b8c5d;
  --cp-font: 'Figtree', system-ui, -apple-system, sans-serif;
  --cp-radius: 14px;
  --cp-max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.upl-content-page {
  margin: 0;
  padding: 0;
  font-family: var(--cp-font);
  color: var(--cp-ink);
  background: var(--cp-bg);
  -webkit-font-smoothing: antialiased;
}

body.upl-content-page.upl-landing-astra header.upl-topbar.upl-topbar--astra.upl-topbar--detached {
  position: sticky;
  top: 0;
  margin: 0;
  padding: 0;
  z-index: 200;
}

.cp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cp-main {
  width: min(100% - 40px, var(--cp-max));
  margin: 0 auto;
  padding: 28px 0 64px;
  flex: 1;
}

.cp-hero {
  background: linear-gradient(180deg, #b1d0de 0%, #d6effb 32%, #fff 100%);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}

.cp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-forest);
  background: var(--cp-forest-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0 0 14px;
}

.cp-hero__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cp-ink);
}

.cp-hero__sub {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-muted);
}

.cp-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius);
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 20px;
}

.cp-card:last-child {
  margin-bottom: 0;
}

.cp-card__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cp-ink);
}

.cp-prose {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.cp-prose p {
  margin: 0 0 14px;
}

.cp-prose p:last-child {
  margin-bottom: 0;
}

.cp-prose a {
  color: var(--cp-forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-prose ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.cp-prose li {
  margin-bottom: 6px;
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.cp-stat {
  background: var(--cp-forest-soft);
  border: 1px solid #d8e8d0;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.cp-stat__num {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--cp-forest);
}

.cp-stat__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-muted);
}

.cp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  background: var(--cp-lime);
  color: var(--cp-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cp-btn:hover {
  background: var(--cp-lime-hover);
  color: var(--cp-ink);
  text-decoration: none;
}

.cp-btn--ghost {
  background: transparent;
  border: 1px solid var(--cp-border);
  color: var(--cp-ink);
}

.cp-btn--ghost:hover {
  background: #f3f4f6;
}

/* FAQ layout */
.cp-faq {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.cp-faq__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 88px;
}

.cp-faq__tab {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cp-faq__tab:hover {
  background: #eef6e8;
  color: var(--cp-forest);
}

.cp-faq__tab.is-active {
  background: var(--cp-forest-soft);
  border-color: #d8e8d0;
  color: var(--cp-forest);
  box-shadow: inset 3px 0 0 var(--cp-accent);
}

.cp-faq__panel[hidden] {
  display: none !important;
}

.cp-faq__panel-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.cp-acc {
  border: 1px solid var(--cp-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cp-acc + .cp-acc {
  margin-top: 10px;
}

.cp-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cp-ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
}

.cp-acc > summary::-webkit-details-marker {
  display: none;
}

.cp-acc > summary::before {
  content: '+';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cp-lime);
  color: var(--cp-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.cp-acc[open] > summary::before {
  content: '−';
}

.cp-acc[open] > summary {
  border-bottom: 1px solid var(--cp-border);
  background: #fafafa;
}

.cp-acc__body {
  padding: 14px 16px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
}

.cp-acc__body p {
  margin: 0 0 10px;
}

.cp-acc__body p:last-child {
  margin-bottom: 0;
}

.cp-acc__body ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}

.cp-acc__body a {
  color: var(--cp-forest);
  font-weight: 600;
}

.cp-support {
  margin-top: 24px;
  text-align: center;
  background: var(--cp-forest-soft);
  border: 1px solid #d8e8d0;
  border-radius: var(--cp-radius);
  padding: 28px 20px;
}

.cp-support__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.cp-support__text {
  margin: 0 0 14px;
  color: var(--cp-muted);
  font-size: 14px;
}

#uplBackdrop {
  display: none;
}

.upl-login-dropdown,
.upl-login-dropdown--hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .cp-faq {
    grid-template-columns: 1fr;
  }

  .cp-faq__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cp-faq__tab {
    width: auto;
    flex: 1 1 auto;
  }

  .cp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cp-main {
    width: min(100% - 28px, var(--cp-max));
    padding: 18px 0 48px;
  }
}
