.footer, .footer * {
  color: #fff !important;
}
.footer a {
  color: #fff !important;
  text-decoration: underline;
}
.footer a:hover, .footer a:focus {
  color: #fff !important;
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 9999;
  background: #0f172a;
  color: #fff;
  border: 1px solid #1e293b;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-text {
  margin: 0;
  line-height: 1.4;
  font-size: 0.95rem;
}

.cookie-banner-button {
  border: 0;
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner-button:hover,
.cookie-banner-button:focus {
  background: #16a34a;
  outline: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-button {
    width: 100%;
  }
}
/* Hamburger Menu Styles */
.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 120;
}
.hamburger-box {
  width: 40px;
  height: 40px;
  display: inline-block;
  position: relative;
}
.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
  width: 28px;
  height: 4px;
  background: #073d79;
  border-radius: 2px;
  position: absolute;
  left: 6px;
  transition: all 0.3s;
}
.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 28px;
  height: 4px;
  background: #073d79;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.hamburger-inner::before {
  top: -10px;
}
.hamburger-inner::after {
  top: 10px;
}
.hamburger.is-active .hamburger-inner {
  background: transparent;
}
.hamburger.is-active .hamburger-inner::before {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.is-active .hamburger-inner::after {
  transform: translateY(-10px) rotate(-45deg);
}

.primary-nav {
  position: absolute;
  top: 72px;
  right: 0;
  left: auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-120%);
  transition: transform 0.3s;
  z-index: 110;
  padding: 1rem 1rem 0.75rem;
  display: inline-block;
  width: max-content;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  pointer-events: none;
}
.primary-nav.nav-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.primary-nav ul.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.header-inner {
  position: relative;
}
/* Why Choose Section Styles */
.why-choose-section {
  background: #073D79;
  color: #fff;
  padding: 60px 0;
}

.why-choose-section .container {
  font-size: 1.15rem;
}

.why-choose-section h2 {
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
}

.why-choose-section ul {
  list-style: disc inside;
  margin: 24px 0 0 0;
  padding: 0;
}

.why-choose-section li {
  margin-bottom: 12px;
  font-size: 1.1em;
}

.product-features {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.feature-icon {
  color: #fff;
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.why-choose-emphasis {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.35rem;
}

@media (min-width: 768px) {
  .product-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* AI-Replacing-Accountants Section */
.ai-replacing-accountants-section {
  background: #fff;
  color: #101827;
  padding: 60px 0;
}

.ai-replacing-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ai-replacing-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.ai-replacing-text {
  flex: 1 1 60%;
}

.ai-replacing-text ul {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
}

.ai-replacing-text li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
}

.ai-replacing-text li::before {
  content: "\f3ed";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-primary);
}

.ai-replacing-image {
  flex: 1 1 40%;
}

.ai-replacing-emphasis {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.3rem;
}

@media (max-width: 900px) {
  .ai-replacing-content {
    flex-direction: column;
  }
}

/* The Architecture Section */
.architecture-section {
  background: #073d79;
  color: #fff;
  padding: 60px 0;
}

.architecture-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.architecture-title {
  margin: 0 0 0.5rem;
}

.architecture-left,
.architecture-right {
  flex: 1 1 calc(50% - 1rem);
}

.architecture-section h2,
.architecture-section p,
.architecture-section li {
  color: #fff;
}

.architecture-left img {
  margin: 1rem 0;
  max-width: 100%;
  height: auto;
}

.architecture-emphasis {
  flex: 0 0 100%;
  margin: 0.5rem 0 0;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
}

.architecture-right ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .architecture-content {
    flex-direction: column;
  }

  .architecture-left,
  .architecture-right {
    flex: 1 1 100%;
  }
}

/* Designed For Section */
.designed-for-section {
  background: #fff;
  color: #101827;
  padding: 60px 0;
}

.designed-for-title {
  text-align: center;
  margin-bottom: 2rem;
}

.designed-for-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.designed-for-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}

.designed-for-icon {
  color: #073d79;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.designed-for-card h3 {
  margin-bottom: 0.75rem;
}

.designed-for-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.designed-for-card li {
  margin-bottom: 0.4rem;
}

/* Services Page */
.services-hero-section {
  background: #073d79;
  color: #fff;
  padding: 70px 0;
}

.services-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.services-hero-text {
  flex: 1 1 70%;
}

.services-hero-text h1 {
  color: #fff;
  margin: 0;
  font-style: italic;
}

.services-hero-image {
  flex: 0 0 170px;
}

.analytics-suite-section {
  background: #fff;
  color: #101827;
  padding: 60px 0;
}

.analytics-suite-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.analytics-suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.analytics-suite-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #f8fafc;
}

.analytics-suite-card h3 {
  margin-bottom: 0.75rem;
  font-style: italic;
}

.analytics-suite-section sup {
  font-size: 0.65em;
}

.btn-services-suite,
.btn-services-demo {
  background: #4f86c6;
  color: #fff;
  border: 1px solid #4f86c6;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-services-suite:hover,
.btn-services-demo:hover {
  background: #3e74b4;
  border-color: #3e74b4;
}

.analytics-suite-demo-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* About page */
.about-who-section {
  background: #fff;
  color: #101827;
  padding: 64px 0;
}

.about-who-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-who-image-wrap {
  margin: 0;
}

.about-who-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.about-who-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.about-who-text p {
  margin: 0;
  line-height: 1.7;
}

.about-who-text p + p {
  margin-top: 1rem;
}

.about-stats-section {
  background: #e8eaed;
  padding: 56px 0;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-stat-item {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(16, 24, 39, 0.08);
  padding: 1.75rem;
  height: 100%;
}

.about-stat-item h3 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: #172233;
}

.about-stat-item p {
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #0a2448;
}

.about-company-section {
  background: #073d79;
  color: #fff;
  padding: 64px 0;
}

.about-company-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: center;
}

.about-company-image-wrap {
  margin: 0;
}

.about-company-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.about-company-text h2 {
  color: #fff;
  margin: 0 0 1rem;
}

.about-company-text p {
  margin: 0;
  line-height: 1.7;
  color: #fff;
}

.about-company-text p + p {
  margin-top: 1rem;
}

.btn-services-demo i {
  margin-right: 0.35rem;
}

@media (max-width: 900px) {
  .services-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .analytics-suite-grid {
    grid-template-columns: 1fr;
  }

  .about-who-content {
    grid-template-columns: 1fr;
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-company-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .designed-for-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .designed-for-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Book a Demo page
   ========================================================= */

/* Hero */
.demo-hero-section {
  background: #073d79;
  padding: 60px 0 50px;
  text-align: center;
}

.demo-hero-headline {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.demo-hero-headline i {
  color: #fff;
  font-style: normal;
}

.demo-hero-headline em {
  font-style: italic;
}

.demo-hero-subheading {
  color: #fff;
  max-width: 920px;
  margin: 0 auto 1.75rem;
  font-size: 1.06rem;
  line-height: 1.7;
}

/* Carousel */
.demo-carousel {
  position: relative;
  max-width: 675px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.demo-carousel-slide {
  min-width: 100%;
  height: 315px;
  object-fit: cover;
  display: block;
}

.demo-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.40);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  padding: 0.2rem 0.65rem 0.35rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2;
  transition: background 0.2s;
}

.demo-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.demo-carousel-prev { left: 10px; }
.demo-carousel-next { right: 10px; }

.demo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.demo-carousel-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.demo-carousel-dot.active {
  background: #fff;
}

/* Book Demo section */
.demo-book-section {
  background: #fff;
  padding: 65px 0;
  text-align: center;
}

.demo-book-headline {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.demo-book-text {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
  color: var(--color-accent);
  line-height: 1.75;
}

.demo-book-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 2.25rem 0 1.75rem;
  flex-wrap: wrap;
  overflow: visible;
  min-height: 0;
}

.demo-book-figure {
  text-align: center;
  margin: 0;
  display: block;
  max-width: 440px;
  flex: 0 0 auto;
}

.demo-book-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  display: block;
}

.demo-book-figure figcaption {
  margin-top: 0.55rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-primary);
  font-weight: 600;
}

.demo-book-figure figcaption sup {
  font-size: 0.65em;
}

.demo-book-cta-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

.btn-book-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #4f86c6;
  color: #fff;
  padding: 0.8rem 2.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.btn-book-demo:hover {
  background: #3b6da8;
  color: #fff;
}

@media (max-width: 700px) {
  .demo-hero-headline {
    font-size: 1.35rem;
  }

  .demo-carousel-slide {
    height: 165px;
  }

  .demo-book-images {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================================
   FirmMetrics page
   ========================================================= */

.firmmetrics-hero-section {
  background: #073d79;
  padding: 70px 0;
  text-align: center;
}

.firmmetrics-hero-section h1 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 2.15rem;
  line-height: 1.3;
}

.firmmetrics-hero-section p {
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.firmmetrics-foundation-section {
  background: #fff;
  padding: 65px 0;
}

.firmmetrics-foundation-section h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.firmmetrics-foundation-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.firmmetrics-foundation-left p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.firmmetrics-foundation-left h3,
.firmmetrics-foundation-right h3 {
  color: var(--color-primary);
  margin: 1.4rem 0 0.8rem;
  font-style: italic;
}

.firmmetrics-foundation-left h4 {
  position: relative;
  padding-left: 1rem;
  margin: 1rem 0 0.4rem;
  color: var(--color-accent);
}

.firmmetrics-foundation-left h4::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

.firmmetrics-foundation-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
}

.firmmetrics-delivers-block {
  margin-top: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
}

.firmmetrics-delivers-block ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.firmmetrics-delivers-block li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.55rem;
}

.firmmetrics-delivers-block li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: #22c55e;
  font-weight: 700;
}

.firmmetrics-foundation-emphasis {
  margin: 2rem auto 0;
  max-width: 950px;
  text-align: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
}

.firmmetrics-demo-cta-wrap {
  text-align: center;
  margin-top: 1.25rem;
}

.firmmetrics-foundation-section sup,
.firmmetrics-hero-section sup {
  font-size: 0.5em;
}

@media (max-width: 900px) {
  .firmmetrics-foundation-content {
    grid-template-columns: 1fr;
  }

  .firmmetrics-hero-section h1 {
    font-size: 1.75rem;
  }
}

/* =========================================================
   Base Reset & Variables
   ========================================================= */

:root {
  --color-primary: #073d79;
  --color-dark: #101827;
  --color-light: #ffffff;
  --color-muted: #6b7280;
  --color-bg: #f4f5f7;
  --color-accent: #1f2937;

  --font-body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Open Sans", system-ui, sans-serif;

  --container-max: 1200px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Accessibility
   ========================================================= */

.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
}

/* =========================================================
   Layout Utilities
   ========================================================= */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-light);
}

.center {
  text-align: center;
}

.emphasis {
  font-weight: 600;
  margin-top: 1rem;
}

/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem 0;
  color: inherit;
}

/* =========================================================
   Header & Navigation
   ========================================================= */

.site-header {
  background: var(--color-light);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-dark);
  font-style: italic;
}

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

.nav-item-dropdown > .dropdown-toggle {
  display: inline-block;
  position: relative;
  padding-right: 1.35rem;
}

.nav-item-dropdown.open > .dropdown-toggle::after {
  content: '✕';
  position: absolute;
  right: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.dropdown-menu {
  display: none;
  list-style: none;
  margin: 0.75rem 0 0 0;
  padding: 0;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 1.2rem;
}

.nav-item-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  font-size: 0.95rem;
  color: var(--color-dark);
}

/* =========================================================
   Hero Section
   ========================================================= */

.hero {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 0;
}

.hero-image {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Hero section background color */
.hero-section {
  background-color: #073d79;
  /* Product overview section background color */
  .product-overview-section {
    background-color: #073d79;
  }
  color: #fff;
}

.hero-section .hero-title,
.hero-section .hero-description,
.hero-section .hero-actions a {
  color: #fff;
}

.hero-description {
  font-size: 1.25em;
}

.hero-section .btn.btn-tertiary {
  color: #101827;
}

/* Product Overview Section */
.product-overview-section {
  padding-bottom: 2.5rem;
}

.product-overview-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.product-overview-text {
  flex: 1;
}

.product-overview-image {
  max-width: 50%;
}

.product-overview-heading {
  font-size: calc(1.5em + 2px);
}

.product-overview-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.product-overview-section .product-overview-text p strong {
  font-size: calc(1em + 4px);
}

@media (max-width: 768px) {
  .product-overview-content {
    flex-direction: column;
  }
  .product-overview-image {
    max-width: 100%;
  }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--color-light);
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-light);
  color: var(--color-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn.btn-tertiary {
  background: #fff;
  color: #101827;
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin: 0 0.5rem 0.5rem 0;
}

.btn.btn-tertiary:hover,
.btn.btn-tertiary:focus {
  background: #f4f5f7;
  color: #073d79;
  border-color: #073d79;
}

/* =========================================================
   Two Column Layout
   ========================================================= */

.two-column {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* =========================================================
   Feature Cards
   ========================================================= */

.features {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.features article {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   Audience Grid
   ========================================================= */

.audience-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.audience-grid article {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius);
}

.audience-grid ul {
  padding-left: 1.2rem;
}

.audience-grid li {
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  background: var(--color-primary);
  color: var(--color-light);
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  margin-bottom: 1rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.site-footer a {
  color: var(--color-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact .contact-item a {
  font-weight: 700;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 122px;
  height: auto;
  display: block;
}

.footer-copyright-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-trademark {
  font-size: 0.875rem;
  margin: 0;
  color: #fff;
}

.footer-nav-list,
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav-list li,
.footer-legal-list li {
  margin: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-contact {
  order: 1;
  flex: 0 0 100%;
}

.footer-brand {
  order: 2;
  flex: 0 1 auto;
  margin-bottom: 0;
}

.footer-nav {
  order: 3;
}

.footer-social {
  order: 2;
  margin-left: auto;
  align-self: center;
}

.footer-legal {
  order: 4;
  flex: 0 0 100%;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-social a:hover {
  color: #ccc;
}

/* =========================================================
   Utility
   ========================================================= */

.hidden {
  display: none;
}

.hero-explore {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  gap: 0.5rem;
}

.privacy-policy-page h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.privacy-document-content {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  background: #fff;
  color: var(--color-dark);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.privacy-document-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.privacy-document-content p {
  margin-bottom: 0.75rem;
}

.privacy-document-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.privacy-document-content li {
  margin-bottom: 0.4rem;
}

.privacy-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.privacy-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.privacy-data-table th,
.privacy-data-table td {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.privacy-data-table thead th {
  background: #f3f4f6;
}

/* =========================================================
   Mobile Layout Overrides
   ========================================================= */

html,
body {
  overflow-x: hidden;
}

/* Keep collapsed hamburger navigation as baseline */
.hamburger {
  display: block;
}

.primary-nav {
  position: absolute;
  top: 72px;
  right: 0;
  left: auto;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-120%);
  transition: transform 0.25s ease;
  z-index: 110;
  padding: 1rem 1rem 0.75rem;
  display: inline-block;
  width: max-content;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  pointer-events: none;
}

.primary-nav ul.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* Mobile layout is activated by viewport size (mobile browser width) */
@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
  }

  .hamburger {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: auto;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: 110;
    padding: 1rem 1rem 0.75rem;
    display: inline-block;
    width: max-content;
    max-width: calc(100vw - 2rem);
    opacity: 0;
    pointer-events: none;
  }

  .primary-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav ul.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .hero-inner,
  .product-overview-content,
  .ai-replacing-content,
  .footer-content {
    flex-direction: column;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-explore {
    gap: 0.75rem;
  }

  .btn,
  .btn.btn-tertiary,
  .btn-services-demo,
  .btn-book-demo,
  .btn-services-suite {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 0.75rem;
  }

  .logo-img {
    max-width: 180px;
    width: 100%;
    height: auto;
  }

  .hero-title,
  .firmmetrics-hero-section h1,
  .services-hero-text h1,
  .demo-hero-headline {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
    line-height: 1.25;
  }

  .hero-description,
  .firmmetrics-hero-section p,
  .demo-hero-subheading,
  .demo-book-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .btn,
  .btn.btn-tertiary,
  .btn-services-demo,
  .btn-book-demo,
  .btn-services-suite {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

  .demo-carousel-slide {
    height: 180px;
  }

  .footer-content,
  .footer-contact,
  .footer-nav-list,
  .footer-legal-list {
    gap: 0.75rem;
  }

  .contact-item {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Insights Page */
.insights-hero-section {
  background: #073d79;
  color: #fff;
  padding: 64px 0;
}

.insights-hero-content h1 {
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.insights-detail-page .insights-hero-content h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
}

.insights-hero-content p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.insights-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.insights-section {
  padding: 60px 0;
}

.insights-kpi-section,
.insights-ai-section {
  background: #f8fafc;
}

.insights-operations-section,
.insights-architecture-section {
  background: #073d79;
  color: #fff;
}

.insights-operations-section h2,
.insights-operations-section .insights-intro,
.insights-architecture-section h2,
.insights-architecture-section .insights-intro,
.insights-architecture-section .insights-emphasis,
.insights-operations-section .insights-emphasis {
  color: #fff;
}

.insights-section h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}

.insights-intro {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 1.75rem;
}

.insights-detail-link {
  text-align: center;
  margin: 0 0 1.25rem;
}

.insights-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.insights-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(16, 24, 39, 0.06);
}

.insights-card-icon {
  color: #073d79;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.insights-card h3 {
  margin-bottom: 0.6rem;
}

.insights-card p {
  margin: 0;
}

.insights-operations-section .insights-card,
.insights-architecture-section .insights-card {
  color: #101827;
}

.insights-operations-section .insights-card h3,
.insights-architecture-section .insights-card h3,
.insights-operations-section .insights-card p,
.insights-architecture-section .insights-card p {
  color: #101827;
}

.insights-emphasis {
  text-align: center;
  margin: 1.25rem auto 0;
  max-width: 900px;
  font-size: 1.1rem;
  font-style: italic;
}

@media (max-width: 900px) {
  .insights-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .insights-card-grid {
    grid-template-columns: 1fr;
  }
}

/* KPI Playbooks Distinct Theme */
.kpi-playbooks-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 180, 133, 0.2), transparent 42%),
    radial-gradient(circle at 86% 6%, rgba(74, 128, 235, 0.2), transparent 32%),
    #f3f4ef;
}

.kpi-playbooks-page .kpi-hero-section {
  background:
    linear-gradient(128deg, rgba(7, 61, 121, 0.95), rgba(17, 102, 163, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.kpi-playbooks-page .kpi-hero-section::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.kpi-playbooks-page .kpi-hero-content {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 2.5rem;
}

.kpi-playbooks-page .kpi-hero-text {
  animation: kpi-rise 700ms ease-out both;
}

.kpi-playbooks-page .kpi-hero-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-playbooks-page .kpi-hero-text h1 {
  font-family: var(--font-heading);
  font-style: italic;
  text-wrap: balance;
}

.kpi-playbooks-page .kpi-hero-text .hero-description {
  max-width: 60ch;
  text-align: left;
  margin: 1rem 0 0;
}

.kpi-playbooks-page .kpi-hero-image {
  max-width: 270px;
  animation: none;
}

.kpi-cadence-strip {
  position: relative;
  margin-top: -1.6rem;
  z-index: 2;
}

.kpi-cadence-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem;
  background: #fdf7ea;
  border: 1px solid #d8c39d;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  box-shadow: 0 14px 28px rgba(16, 24, 39, 0.12);
}

.kpi-cadence-list li {
  background: #fff;
  border-radius: 10px;
  padding: 0.8rem;
  border-left: 5px solid #cc7a19;
}

.kpi-cadence-label {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a3e00;
  margin-bottom: 0.2rem;
}

.kpi-cadence-copy {
  color: #2a3340;
  line-height: 1.4;
}

.kpi-playbook-section {
  padding: 3.5rem 0;
}

.kpi-topic-table-wrap {
  display: grid;
  gap: 1rem;
}

.kpi-topic-headings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-topic-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.kpi-topic-emphasis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kpi-playbooks-page .kpi-topic-emphasis-grid .insights-emphasis {
  font-family: var(--font-heading);
}

.kpi-playbooks-page .kpi-playbook-section h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  font-size: 1.55rem;
  margin: 0;
  text-align: left;
}

.kpi-playbook-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: none;
  height: 100%;
}

.kpi-playbook-card .kpi-card-tag {
  margin: 0 0 0.55rem;
  color: #073d79;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
}

.kpi-playbook-card p {
  margin: 0;
  line-height: 1.7;
  color: #101827;
}

.kpi-monthly-core {
  background: #fff;
}

.kpi-spreadsheet-section {
  background: #13283e;
  color: #ecf2fa;
}

.kpi-spreadsheet-section .kpi-playbook-card {
  background: #f8fafc;
}

.kpi-spreadsheet-section .insights-emphasis {
  color: #f4f8ff;
}

.kpi-decision-section {
  background: #fff;
}

.kpi-playbooks-page .insights-emphasis {
  font-style: normal;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.45;
  color: #073d79;
  text-align: left;
  margin: 0;
}

.kpi-topic-table-wrap .insights-detail-link {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
}

@keyframes kpi-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .kpi-cadence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-topic-headings,
  .kpi-topic-table,
  .kpi-topic-emphasis-grid {
    grid-template-columns: 1fr;
  }

  .kpi-playbooks-page .kpi-hero-content {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .kpi-cadence-strip {
    margin-top: -1rem;
  }

  .kpi-cadence-list {
    grid-template-columns: 1fr;
  }

  .kpi-playbooks-page .kpi-playbook-section h2,
  .kpi-playbooks-page .insights-emphasis {
    text-align: center;
  }

  .kpi-playbooks-page .kpi-hero-text .hero-description {
    text-align: center;
  }

  .kpi-playbooks-page .kpi-hero-text {
    text-align: center;
  }

  .kpi-playbooks-page .kpi-hero-image {
    max-width: 190px;
    margin-inline: auto;
  }
}

/* Shared upgraded hero for selected insights pages */
.insights-hero-upgraded-page .kpi-hero-section {
  background:
    linear-gradient(128deg, rgba(7, 61, 121, 0.95), rgba(17, 102, 163, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.insights-hero-upgraded-page .kpi-hero-section::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.insights-hero-upgraded-page .kpi-hero-content {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 2.5rem;
}

.insights-hero-upgraded-page .kpi-hero-text {
  animation: kpi-rise 700ms ease-out both;
}

.insights-hero-upgraded-page .kpi-hero-kicker {
  display: inline-block;
  margin: 0 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insights-hero-upgraded-page .kpi-hero-text h1 {
  font-family: var(--font-heading);
  font-style: italic;
  text-wrap: balance;
}

.insights-hero-upgraded-page .kpi-hero-text .hero-description {
  max-width: 60ch;
  text-align: left;
  margin: 1rem 0 0;
}

/* Global hero visual treatment aligned to KPI Playbooks hero background */
.hero-section,
.services-hero-section,
.firmmetrics-hero-section,
.demo-hero-section,
.insights-hero-section {
  background:
    linear-gradient(128deg, rgba(7, 61, 121, 0.95), rgba(17, 102, 163, 0.92)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 10px, rgba(255, 255, 255, 0.02) 10px 20px);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::after,
.services-hero-section::after,
.firmmetrics-hero-section::after,
.demo-hero-section::after,
.insights-hero-section::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.hero-section > .hero-inner,
.services-hero-section > .container,
.firmmetrics-hero-section > .container,
.demo-hero-section > .container,
.insights-hero-section > .container {
  position: relative;
  z-index: 1;
}

.insights-hero-upgraded-page .kpi-hero-image {
  max-width: 270px;
  animation: none;
}

@media (max-width: 980px) {
  .insights-hero-upgraded-page .kpi-hero-content {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .insights-hero-upgraded-page .kpi-hero-text .hero-description {
    text-align: center;
  }

  .insights-hero-upgraded-page .kpi-hero-text {
    text-align: center;
  }

  .insights-hero-upgraded-page .kpi-hero-image {
    max-width: 190px;
    margin-inline: auto;
  }
}

/* Operational Intelligence compact content layout */
.operational-intelligence-page .opint-compact-section {
  background:
    radial-gradient(circle at 8% 16%, rgba(7, 61, 121, 0.06), transparent 36%),
    radial-gradient(circle at 91% 84%, rgba(22, 148, 196, 0.08), transparent 31%),
    #f8fafc;
  padding: 46px 0 58px;
}

.operational-intelligence-page .opint-track {
  display: grid;
  gap: 1rem;
}

.operational-intelligence-page .opint-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
  gap: 1rem;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  padding: 0.95rem;
  box-shadow: 0 8px 20px rgba(16, 24, 39, 0.06);
}

.operational-intelligence-page .opint-row-head {
  border-radius: 10px;
  background: linear-gradient(165deg, #0f3f72, #1d5f9a);
  color: #fff;
  padding: 0.95rem;
}

.operational-intelligence-page .opint-row-step {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.operational-intelligence-page .opint-row-head h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  text-align: left;
  font-size: 1.35rem;
}

.operational-intelligence-page .opint-row-emphasis {
  margin: 0;
  color: #e9f2ff;
  font-size: 0.98rem;
  line-height: 1.45;
}

.operational-intelligence-page .opint-row-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.operational-intelligence-page .opint-mini-card {
  border: 1px solid #d5dfec;
  border-radius: 10px;
  background: #f9fbfe;
  padding: 0.8rem;
}

.operational-intelligence-page .opint-mini-card h3 {
  margin: 0 0 0.42rem;
  color: #073d79;
  font-size: 1rem;
}

.operational-intelligence-page .opint-mini-card p {
  margin: 0;
  color: #172233;
  font-size: 0.95rem;
  line-height: 1.45;
}

.operational-intelligence-page .opint-compact-section .insights-detail-link {
  margin-top: 1.25rem;
}

@media (max-width: 1100px) {
  .operational-intelligence-page .opint-row {
    grid-template-columns: 1fr;
  }

  .operational-intelligence-page .opint-row-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .operational-intelligence-page .opint-row-cards {
    grid-template-columns: 1fr;
  }

  .operational-intelligence-page .opint-row-head h2,
  .operational-intelligence-page .opint-row-emphasis {
    text-align: left;
  }
}

/* Architecture page compact redesign */
.architecture-best-practices-page .arch-compact-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(7, 61, 121, 0.08), transparent 33%),
    radial-gradient(circle at 86% 78%, rgba(28, 97, 161, 0.08), transparent 28%),
    #f8fafc;
}

.architecture-best-practices-page .arch-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.06);
}

.architecture-best-practices-page .arch-overview-kicker {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #073d79;
}

.architecture-best-practices-page .arch-overview-copy h2 {
  margin: 0 0 0.7rem;
  text-align: left;
  color: #101827;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.architecture-best-practices-page .arch-overview-copy p:last-child {
  margin: 0;
  color: #334155;
  max-width: 60ch;
}

.architecture-best-practices-page .arch-overview-figure {
  margin: 0;
  background: #0f3f72;
  border: 1px solid #0f3f72;
  border-radius: 14px;
  padding: 1rem;
}

.architecture-best-practices-page .arch-overview-figure img {
  width: 100%;
}

.architecture-best-practices-page .arch-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.architecture-best-practices-page .arch-pillar-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(16, 24, 39, 0.05);
}

.architecture-best-practices-page .arch-pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #073d79, #2469a8);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.architecture-best-practices-page .arch-pillar-card h3 {
  margin: 0 0 0.35rem;
  color: #073d79;
}

.architecture-best-practices-page .arch-pillar-card h3 i {
  margin-right: 0.35rem;
  color: #2a73b6;
}

.architecture-best-practices-page .arch-pillar-card h3 i.model-gov-icon {
  color: #fff;
  background: #2a73b6;
  border-radius: 999px;
  padding: 0.22rem;
}

.architecture-best-practices-page .arch-pillar-summary {
  margin: 0 0 0.7rem;
  color: #334155;
  font-weight: 600;
}

.architecture-best-practices-page .arch-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.architecture-best-practices-page .arch-pillar-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  color: #172233;
}

.architecture-best-practices-page .arch-pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a73b6;
}

.architecture-best-practices-page .arch-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.architecture-best-practices-page .arch-proof-item {
  background: #0f3f72;
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.architecture-best-practices-page .arch-proof-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .architecture-best-practices-page .arch-overview-panel,
  .architecture-best-practices-page .arch-pillar-grid,
  .architecture-best-practices-page .arch-proof-strip {
    grid-template-columns: 1fr;
  }
}

/* AI in Analytics compact redesign */
.ai-in-analytics-page .ai-compact-section {
  background:
    radial-gradient(circle at 10% 14%, rgba(7, 61, 121, 0.08), transparent 33%),
    radial-gradient(circle at 88% 82%, rgba(34, 115, 182, 0.08), transparent 28%),
    #f8fafc;
}

.ai-in-analytics-page .ai-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.06);
}

.ai-in-analytics-page .ai-overview-kicker {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #073d79;
}

.ai-in-analytics-page .ai-overview-copy h2 {
  margin: 0 0 0.7rem;
  text-align: left;
  color: #101827;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.ai-in-analytics-page .ai-overview-copy p:last-child {
  margin: 0;
  color: #334155;
  max-width: 60ch;
}

.ai-in-analytics-page .ai-overview-figure {
  margin: 0;
  background: #0f3f72;
  border: 1px solid #0f3f72;
  border-radius: 14px;
  padding: 0.85rem;
}

.ai-in-analytics-page .ai-overview-figure img {
  width: 100%;
  border-radius: 8px;
}

.ai-in-analytics-page .ai-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.ai-in-analytics-page .ai-pillar-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(16, 24, 39, 0.05);
}

.ai-in-analytics-page .ai-pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #073d79, #2469a8);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.ai-in-analytics-page .ai-pillar-card h3 {
  margin: 0 0 0.35rem;
  color: #073d79;
}

.ai-in-analytics-page .ai-pillar-summary {
  margin: 0 0 0.7rem;
  color: #334155;
  font-weight: 600;
}

.ai-in-analytics-page .ai-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-in-analytics-page .ai-pillar-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.55rem;
  color: #172233;
}

.ai-in-analytics-page .ai-pillar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a73b6;
}

.ai-in-analytics-page .ai-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.ai-in-analytics-page .ai-proof-item {
  background: #0f3f72;
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.ai-in-analytics-page .ai-proof-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 980px) {
  .ai-in-analytics-page .ai-overview-panel,
  .ai-in-analytics-page .ai-pillar-grid,
  .ai-in-analytics-page .ai-proof-strip {
    grid-template-columns: 1fr;
  }
}