/* ============================================================
   COMPONENTS — nav, footer, buttons, cards, hero, forms
   ============================================================ */

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 68px;
  background: rgba(8,14,28,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--t-base), border-color var(--t-base);
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--lb);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: var(--sp-8);
}

.nav-logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: var(--weight-semi);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav-logo em {
  font-style: italic;
  color: var(--teal);
}

.scrolled .nav-logo {
  color: var(--lt);
}

.nav-crumb {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(15,185,158,0.12);
  vertical-align: middle;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

/* --- Mega menu --- */
.mega {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--lb);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 28px;
  min-width: 640px;
  z-index: 300;
  gap: 32px;
}

.nav-links > li:hover .mega {
  display: flex;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 160px;
}

.mega-col-label {
  font-size: 10px;
  font-weight: var(--weight-semi);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lm);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lb);
}

.mega-col a {
  font-size: 13px !important;
  color: var(--lbo) !important;
  text-decoration: none;
  padding: 7px 0 !important;
  border-radius: 0 !important;
  background: none !important;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast);
  font-weight: var(--weight-light) !important;
  display: block;
}

.mega-col a:hover {
  color: var(--lt) !important;
  background: none !important;
}

.mega-card {
  background: linear-gradient(135deg, rgba(91,63,138,0.10) 0%, rgba(15,185,158,0.07) 100%);
  border: 1px solid var(--lb);
  border-radius: 10px;
  padding: 20px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-card-label {
  font-size: 10px;
  font-weight: var(--weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purpled);
  margin-bottom: 8px;
}

.mega-card-title {
  font-size: 15px;
  font-weight: var(--weight-semi);
  color: var(--lt);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.mega-card-desc {
  font-size: 12px;
  color: var(--lm);
  line-height: 1.6;
  font-weight: var(--weight-light);
  margin-bottom: 16px;
}

.mega-card-cta {
  font-size: 12px !important;
  font-weight: var(--weight-semi) !important;
  color: var(--purpled) !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

.mega-card-cta:hover {
  opacity: 0.8;
  color: var(--purpled) !important;
  background: none !important;
}

.nav-links a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--ink2);
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.08);
}

.scrolled .nav-links a {
  color: var(--lbo);
}

.scrolled .nav-links a:hover {
  color: var(--lt);
  background: var(--surface);
}

.nav-cta { margin-left: var(--sp-4); }

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--lt) !important;
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.btn-nav-cta:hover {
  background: var(--surface2);
  box-shadow: var(--shadow-sm);
}

.scrolled .btn-nav-cta {
  background: var(--lt);
  color: var(--white) !important;
  border-color: var(--lt);
}

.scrolled .btn-nav-cta:hover {
  background: var(--navy3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink2);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .mega { display: none !important; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: var(--sp-4);
    box-shadow: var(--shadow-lg);
  }

  .scrolled .nav-links {
    background: var(--white);
    border-bottom-color: var(--lb);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: var(--sp-3) var(--sp-4);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--sp-2);
  }

  .btn-nav-cta {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* --- Page sub-nav (product pages) --- */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 190;
  background: rgba(8,14,28,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.subnav-inner a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--t-base), border-color var(--t-base);
  letter-spacing: -0.01em;
}

.subnav-inner a:hover {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

.subnav-inner a.subnav-cta {
  margin-left: auto;
  color: var(--teal);
  font-weight: 600;
  padding-right: 0;
  border-bottom: none;
}

.subnav-inner a.subnav-cta:hover {
  color: #fff;
  border-bottom: none;
}

@media (max-width: 768px) {
  .subnav { display: none; }
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: 36px 72px;
  gap: var(--sp-6);
}

.footer-logo {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: var(--weight-semi);
  letter-spacing: -0.025em;
  color: var(--ink2);
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo em {
  font-style: italic;
  color: var(--teal);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink3);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-nav a:hover {
  color: var(--ink2);
}

.footer-copy {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink3);
  max-width: none;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px var(--sp-5);
    gap: var(--sp-5);
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 15px 32px;
  border-radius: var(--r-lg);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

/* Primary — white bg, dark text (on dark sections) */
.btn--primary {
  background: var(--white);
  color: var(--lt);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.btn--primary:hover {
  background: var(--surface);
  color: var(--lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

/* Secondary — ghost outlined (on dark sections) */
.btn--secondary {
  background: transparent;
  color: var(--ink2);
  border-color: rgba(255,255,255,0.3);
}

.btn--secondary:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--ink);
}

/* Teal — primary CTA */
.btn--teal {
  background: var(--teal2);
  color: var(--white);
  border-color: var(--teal2);
  font-weight: var(--weight-semi);
}

.btn--teal:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}

/* Dark — for light sections, dark bg button */
.btn--dark {
  background: var(--lt);
  color: var(--white);
  border-color: var(--lt);
}

.btn--dark:hover {
  background: var(--navy3);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outlined {
  background: transparent;
  color: var(--lbo);
  border-color: var(--lb2);
}

.btn--outlined:hover {
  border-color: var(--lbo);
  color: var(--lt);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 17px 38px;
  font-size: var(--text-base);
}

/* --- Section tag (eyebrow) --- */
.stag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lm);
  margin-bottom: 20px;
}

.stag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--purpled), var(--teal2));
  opacity: 0.7;
  flex-shrink: 0;
}

.stag--teal   { color: var(--teal); }
.stag--purple { color: var(--purple); }
.stag--center { justify-content: center; }
.stag.dk      { color: var(--ink3); }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--lb);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.card:hover {
  border-color: var(--lb2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(91,63,138,0.12), rgba(10,144,128,0.12));
  border: 1px solid var(--lb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--teal2);
}

.card-title {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-normal);
  color: var(--lt);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-snug);
}

.card-body {
  font-size: var(--text-sm);
  color: var(--lbo);
  line-height: var(--lh-base);
}

/* --- Pillar cards (animated gradient border) --- */
.pillar-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 1px;
  background: var(--grad-135);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}

.pillar-card-inner {
  background: var(--navy3);
  border-radius: calc(var(--r-xl) - 1px);
  padding: var(--sp-8);
  height: 100%;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(91,63,138,0.25), rgba(10,144,128,0.25));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.pillar-card-title {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-normal);
  color: var(--ink);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-snug);
}

.pillar-card-body {
  font-size: var(--text-sm);
  color: var(--ink3);
  line-height: var(--lh-base);
}

/* --- Badge / pill --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: var(--weight-medium);
}

.badge--teal {
  background: rgba(15,185,158,0.12);
  color: var(--teal);
  border: 1px solid rgba(15,185,158,0.25);
}

.badge--teal::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--teal);
  flex-shrink: 0;
}

/* --- Trust item (dot + text) --- */
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--lm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--teal);
  flex-shrink: 0;
}

.tdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
  flex-shrink: 0;
}

/* --- Blog post card --- */
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lb);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--t-base), transform var(--t-base);
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-date {
  font-size: var(--text-xs);
  color: var(--lm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.post-card-title {
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-normal);
  color: var(--lt);
  margin-bottom: var(--sp-3);
  line-height: var(--lh-snug);
}

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--lbo);
  line-height: var(--lh-base);
  flex: 1;
}

.post-card-read-more {
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--teal2);
}

/* --- Blog post page --- */
.post-container {
  max-width: var(--max-w-prose);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-6);
}

.post-header {
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--lb);
}

.post-date {
  font-size: var(--text-sm);
  color: var(--lm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
}

.post-title {
  font-family: var(--serif);
  font-size: var(--text-4xl);
  font-weight: var(--weight-normal);
  line-height: var(--lh-tight);
  color: var(--lt);
  margin-bottom: var(--sp-4);
}

.post-author {
  font-size: var(--text-sm);
  color: var(--lm);
}

.post-body {
  font-family: var(--serif);
  font-size: var(--text-lg);
  line-height: var(--lh-loose);
  color: var(--lt);
}

.post-body p { margin-bottom: var(--sp-6); max-width: none; }
.post-body h2 { font-family: var(--sans); font-size: var(--text-2xl); font-weight: var(--weight-semi); margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.post-body h3 { font-family: var(--sans); font-size: var(--text-xl); font-weight: var(--weight-semi); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.post-body ul, .post-body ol { margin-bottom: var(--sp-6); }
.post-body li { margin-bottom: var(--sp-2); }
.post-body blockquote {
  border-left: 3px solid var(--teal);
  padding-left: var(--sp-6);
  margin-block: var(--sp-8);
  font-style: italic;
  color: var(--lbo);
}

/* --- Contact / forms --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--lbo);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--lb);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: var(--text-base);
  color: var(--lt);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,185,158,0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Page hero (non-home) --- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--lb);
  padding-block: var(--sp-16);
  text-align: center;
  padding-top: calc(68px + var(--sp-16));
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-normal);
  color: var(--lt);
  margin-bottom: var(--sp-4);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--lbo);
  max-width: 55ch;
  margin-inline: auto;
}

/* --- 404 --- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--sp-16) var(--sp-6);
}

.error-code {
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: var(--weight-normal);
  color: var(--lb2);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.error-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-3);
}

.error-message {
  color: var(--lbo);
  margin-bottom: var(--sp-8);
}

/* ============================================================
   GLOBAL CHROME & ANIMATIONS
   ============================================================ */

/* Top gradient accent line — appears on every page */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purpled) 0%, var(--teal) 60%, transparent 100%);
  z-index: 9999;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rotateBorder {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.sr {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sr.vis {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SECTION HEADLINE  (.sh)
   ============================================================ */
.sh {
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 400;
  color: var(--lt);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sh em { font-style: italic; color: var(--purpled); }
.sh.dk { color: var(--ink); }
.sh.dk em { color: rgba(195,175,255,0.9); }

/* Section sub-headline */
.sh-sub { font-size: 18px; color: var(--lbo); line-height: 1.65; font-weight: 300; max-width: 720px; margin-top: 22px; }
.sh-sub.dk { color: var(--ink2); }

/* ============================================================
   PRODUCT STACKED SECTIONS  (.ps-wrap / .ps-inner / .ps-content)
   Used by product pages (engagement-tracker, intelligence, etc.).
   NOT used by the homepage — homepage uses .home-ps-wrap / .home-ps-inner.
   ============================================================ */
.ps-wrap { padding: 140px 72px; position: relative; background: var(--navy); overflow: hidden; }
.ps-wrap-light   { background: var(--white); }
.ps-wrap-surface { background: var(--surface); }
.ps-wrap-dark    { background: #100830; }

.ps-wrap-p::before { content: ''; position: absolute; top: -80px; right: -80px; width: 480px; height: 480px; background: radial-gradient(circle at top right, rgba(91,63,138,0.32) 0%, rgba(91,63,138,0.14) 35%, transparent 65%); pointer-events: none; z-index: 0; }
.ps-wrap-t::before { content: ''; position: absolute; top: -80px; left: -80px;  width: 480px; height: 480px; background: radial-gradient(circle at top left,  rgba(15,185,158,0.22) 0%, rgba(15,185,158,0.08) 40%, transparent 65%); pointer-events: none; z-index: 0; }
.ps-wrap-light.ps-wrap-p::before   { background: radial-gradient(circle at top right, rgba(91,63,138,0.18) 0%, rgba(91,63,138,0.06) 40%, transparent 68%); }
.ps-wrap-light.ps-wrap-t::before   { background: radial-gradient(circle at top left,  rgba(15,185,158,0.14) 0%, rgba(15,185,158,0.04) 40%, transparent 68%); }
.ps-wrap-surface.ps-wrap-p::before { background: radial-gradient(circle at top right, rgba(91,63,138,0.14) 0%, rgba(91,63,138,0.04) 40%, transparent 68%); }

.ps-inner { max-width: var(--max-w-wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.25fr; gap: 88px; align-items: center; position: relative; z-index: 1; }
.ps-wrap-rev .ps-inner   { grid-template-columns: 1.25fr 1fr; gap: 88px; }
.ps-wrap-rev .ps-content { order: 2; }
.ps-wrap-rev .ps-visual  { order: 1; }

.ps-content { display: flex; flex-direction: column; }
.ps-visual  { display: flex; flex-direction: column; }

.ps-content h2 { font-family: var(--serif); font-size: clamp(32px,3.4vw,48px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 22px; }
.ps-wrap-light   .ps-content h2 { color: var(--lt); }
.ps-wrap-surface .ps-content h2 { color: var(--lt); }
.ps-content h2 em { font-style: italic; color: rgba(195,175,255,0.9); }
.ps-wrap-light   .ps-content h2 em { color: var(--purpled); }
.ps-wrap-surface .ps-content h2 em { color: var(--purpled); }

.ps-content .ps-lede { font-size: 17px; color: var(--ink2); line-height: 1.7; font-weight: 300; margin-bottom: 28px; }
.ps-wrap-light   .ps-content .ps-lede { color: var(--lbo); }
.ps-wrap-surface .ps-content .ps-lede { color: var(--lbo); }

.ps-list { list-style: none; margin: 0 0 28px; padding: 0; }
.ps-list li { font-size: 15px; color: var(--ink2); line-height: 1.65; font-weight: 300; display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ps-wrap-light   .ps-list li { color: var(--lbo); border-bottom-color: var(--lb); }
.ps-wrap-surface .ps-list li { color: var(--lbo); border-bottom-color: var(--lb); }
.ps-list li:last-child  { border-bottom: none; }
.ps-list li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: rgba(15,185,158,0.12); flex-shrink: 0; margin-top: 2px; }
.ps-list li::after  { display: none; }
.ps-list li span    { flex: 1; }

.ps-key { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-md); padding: 18px 22px; font-size: 15px; color: var(--ink); font-weight: 400; line-height: 1.55; font-style: italic; border-left: 2px solid var(--teal); }
.ps-wrap-light   .ps-key { background: var(--surface); border-color: var(--lb); color: var(--lt); border-left-color: var(--purpled); }
.ps-wrap-surface .ps-key { background: var(--white);   border-color: var(--lb); color: var(--lt); border-left-color: var(--purpled); }

/* ============================================================
   TESTIMONIAL CARD  (.t-card)
   ============================================================ */
.t-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.t-card p {
  font-size: 13px;
  color: var(--ink2);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  padding-top: 12px;
  margin-bottom: 11px;
  max-width: none;
}

.t-card cite {
  font-size: 11px;
  font-style: normal;
  color: var(--ink3);
  font-weight: 500;
}

.t-card cite span { color: var(--teal); }

/* Testimonial card sub-components */
.t-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--lb);
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.t-avatar--purple { background: linear-gradient(135deg, var(--purpled), var(--teal2)); }
.t-avatar--teal   { background: linear-gradient(135deg, var(--teal2), #56B4A0); }

.t-name { font-size: 13px; font-weight: 500; color: var(--lt); }
.t-role { font-size: 12px; color: var(--lm); }
.t-role-accent { color: var(--teal2); }

.t-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.t-badge--purple { color: var(--purpled); background: rgba(91,63,138,0.08); }
.t-badge--teal   { color: var(--teal2);   background: rgba(15,185,158,0.08); }

/* Stat card variant */
.t-card--stat { text-align: center; padding: 28px 20px; }

.t-stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}

.t-stat-label {
  font-size: 12px;
  color: var(--ink3);
  font-weight: 300;
  line-height: 1.4;
}

.t-stat-sup { font-size: 32px; }

/* ============================================================
   RESOURCE CARDS  (.rc)
   ============================================================ */
.rc {
  border: 1px solid var(--lb);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.rc:hover {
  border-color: rgba(91,63,138,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.rc-icon {
  width: 100%;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  display: block;
}

.rc-icon img { width: 100%; height: 160px; object-fit: cover; display: block; }

/* Icon area tints */
.rci-p { background: #EEEDFB; }
.rci-t { background: #E1F5EE; }
.rci-n { background: #E6EEF8; }

.rc h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--lt);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  padding: 20px 24px 0;
  line-height: var(--lh-snug);
}

.rc > p {
  font-size: 13px;
  color: var(--lbo);
  line-height: 1.65;
  font-weight: 300;
  padding: 0 24px;
  margin-top: 5px;
  flex: 1;
  max-width: none;
}

.rc-bot { padding: 18px 26px 24px; }

.rc-fmt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rc-fmt::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lm);
  display: block;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--r-md);
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: -0.005em;
}

.rc-btn:hover { opacity: 0.88; transform: translateX(2px); }

.rb-p { background: var(--purpled); color: #fff; }
.rb-t { background: var(--teal2);   color: #fff; }
.rb-n { background: var(--navy2);   color: #fff; }

/* ============================================================
   RESOURCES SECTION — featured panel, video + article list
   ============================================================ */
.res-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.res-all-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal2);
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 8px;
}

.res-all-link:hover { color: var(--teal); }

.res-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 36px;
}

.res-video {
  background: var(--white);
  border: 1px solid var(--lb);
  border-radius: var(--r-md);
  overflow: hidden;
}

.res-video-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.res-video-link img {
  width: 100%;
  height: auto;
  display: block;
}

.res-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 28, 0.35);
}

.res-video-body {
  padding: 14px 16px;
}

.res-video-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--teal2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.res-video-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--lt);
  line-height: 1.4;
}

.res-articles {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--lb);
  border: 1px solid var(--lb);
  border-radius: var(--r-md);
  overflow: hidden;
}

.res-article {
  background: var(--white);
  padding: 16px 20px;
  text-decoration: none;
  display: block;
  flex: 1;
  transition: background var(--t-fast);
}

.res-article:hover { background: var(--surface); }

.res-article-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.res-article-tag--teal   { color: var(--teal2); }
.res-article-tag--purple { color: var(--purpled); }
.res-article-tag--muted  { color: var(--lm); }

.res-article-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--lt);
  line-height: 1.4;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.res-article-date {
  font-size: 11px;
  color: var(--lm);
}

.res-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.res-divider-line {
  flex: 1;
  height: 1px;
  background: var(--lb);
}

.res-divider-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lm);
}

@media (max-width: 768px) {
  .res-featured { grid-template-columns: 1fr; }
}

/* ============================================================
   USED-BY TAGS
   ============================================================ */
.used-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.used-tag {
  font-size: 11px;
  color: var(--lt);
  background: var(--surface);
  border: 1px solid var(--lb);
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 400;
  white-space: nowrap;
}
