﻿/*
Theme Name:  SaaSify
Theme URI:   https://saasify.com
Author:      SaaSify
Author URI:  https://saasify.com
Description: A clean, modern base WordPress theme built for SaaS products and landing pages. Features a responsive layout, custom page templates, and a minimal design system ready for customization.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saasify
Tags:        saas, landing-page, one-page, responsive, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Brand Colors — Blue Theme */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-secondary: #0ea5e9;
  --color-accent: #f59e0b;

  /* Extended Blue Palette */
  --color-blue-50: #eff6ff;
  --color-blue-100: #dbeafe;
  --color-blue-200: #bfdbfe;
  --color-blue-300: #93c5fd;
  --color-blue-400: #60a5fa;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-700: #1d4ed8;
  --color-blue-800: #1e40af;
  --color-blue-900: #1e3a8a;

  /* Gradient Tokens */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #1e3a8a 0%,
    #2563eb 50%,
    #0ea5e9 100%
  );
  --gradient-card: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --gradient-cta: linear-gradient(
    135deg,
    #1e40af 0%,
    #2563eb 60%,
    #0284c7 100%
  );

  /* Neutral Palette */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Semantic Colors */
  --color-text: var(--color-gray-800);
  --color-text-muted: var(--color-gray-500);
  --color-text-light: var(--color-gray-400);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-gray-50);
  --color-border: var(--color-gray-200);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  --font-mono:
    "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing */
  --space-1: 0.25rem; /* 4px  */
  --space-2: 0.5rem; /* 8px  */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */
  --space-32: 8rem; /* 128px */

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-modal: 40;
  --z-toast: 50;

  /* News colour palette — used by news-badge and news-filter-tab modifiers */
  --blue: #346fef;
  --green: #10b981;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --coral: #f43f5e;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}
h5 {
  font-size: var(--text-lg);
}
h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

strong,
b {
  font-weight: var(--font-semibold);
}
em,
i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background-color: var(--color-gray-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-gray-700);
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
  margin-top: var(--space-2);
}

blockquote cite::before {
  content: "— ";
}

pre,
code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

code {
  background-color: var(--color-gray-100);
  color: var(--color-primary-dark);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-gray-900);
  color: var(--color-gray-100);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul,
ol {
  margin: 0 0 var(--space-4) var(--space-6);
}

ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}

li {
  margin-bottom: var(--space-1);
}
li:last-child {
  margin-bottom: 0;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: var(--space-1);
  margin-bottom: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

.content-area {
  width: 100%;
}

/* Grid helpers */
.grid {
  display: grid;
}
.flex {
  display: flex;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.site-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1;
}

.site-description {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  display: none;
}

.custom-logo {
  height: 2.5rem;
  width: auto;
}

/* Primary Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.main-navigation .cta {
  color: var(--color-gray-100);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

/* Dropdown */
.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  min-width: 12rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform var(--transition-fast);
  z-index: var(--z-dropdown);
  flex-direction: column;
  gap: 0;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-gray-600);
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: var(--color-gray-100);
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: var(--space-3);
}

.footer-brand .custom-logo {
  filter: brightness(0) invert(1);
}

.footer-brand .site-title {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
  color: var(--color-gray-400);
  max-width: 24rem;
}

.footer-nav h4 {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-800);
  font-size: var(--text-sm);
}

.footer-bottom p {
  margin: 0;
  color: var(--color-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1.5;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

/* Sizes */
.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}
.btn-lg {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
}
.btn-xl {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* Variants */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-gray-700);
}
.btn-secondary:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-300);
  color: var(--color-gray-900);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-gray-600);
}
.btn-ghost:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

.btn-white {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
}
.btn-white:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-body {
  padding: var(--space-6);
}
.card-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-gray-50);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: var(--space-24) 0 var(--space-20);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  background-color: rgb(79 70 229 / 0.08);
  border: 1px solid rgb(79 70 229 / 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-gray-900);
  max-width: 54rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-social-proof {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Solutions page — compact hero override */
.sl-hero {
  padding: var(--space-8) 0 var(--space-6);
}

.sl-hero .hero-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.sl-hero .hero-subtitle {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.sl-hero .hero-actions {
  margin-bottom: var(--space-6);
}

.sl-hero .hero-eyebrow {
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--space-24) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ==========================================================================
   Feature Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-item {
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgb(79 70 229 / 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-xl);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: start;
}

.pricing-card {
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 400px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-plan {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.pricing-currency {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}
.pricing-amount {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  line-height: 1;
}
.pricing-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  margin-bottom: 0;
}

.pricing-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(16 185 129 / 0.1);
  color: var(--color-success);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.testimonial-text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-700);
  margin-bottom: var(--space-5);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0;
  line-height: 1.25;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  padding: var(--space-20) 0;
  text-align: center;
}

.cta-section .section-title {
  color: var(--color-white);
}
.cta-section .section-subtitle {
  color: rgb(255 255 255 / 0.8);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Blog / Posts
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.post-category:hover {
  color: var(--color-primary-dark);
}

.post-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.post-title a {
  color: var(--color-gray-900);
  text-decoration: none;
}
.post-title a:hover {
  color: var(--color-primary);
}

.post-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.post-meta a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.post-meta a:hover {
  color: var(--color-primary);
}

/* Single Post */
.entry-header {
  margin-bottom: var(--space-8);
}

.entry-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.entry-meta a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.entry-meta a:hover {
  color: var(--color-primary);
}

.entry-content {
  max-width: 65ch;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.entry-content > * + * {
  margin-top: var(--space-4);
}

.entry-content h2 {
  margin-top: var(--space-10);
}
.entry-content h3 {
  margin-top: var(--space-8);
}

.entry-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.entry-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.tag-link {
  display: inline-block;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-gray-100);
  color: var(--color-gray-600);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.tag-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Single Post Layout
   ========================================================================== */

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-16);
  align-items: start;
  padding: var(--space-12) 0;
}

.single-post-layout.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 50rem;
  margin-inline: auto;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.widget-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: sticky;
  top: calc(4rem + var(--space-6));
}

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.widget-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul a {
  color: var(--color-gray-700);
  text-decoration: none;
}
.widget ul a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 var(--space-2);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.form-control {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
}

.form-control::placeholder {
  color: var(--color-gray-400);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 8rem;
}

/* WP comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-gray-900);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15);
}

.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-6);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.comment-form input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
}

/* ==========================================================================
   Header Navigation — Nav Links, Solutions Toggle & CTA
   ========================================================================== */

/* Nav menu list — overrides .main-navigation ul for the new .nav-menu class */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

.nav-link.is-active {
  background-color: var(--color-blue-50);
  color: var(--color-primary);
}

/* Solutions toggle button */
.nav-solutions-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.nav-solutions-toggle:hover,
.nav-solutions-toggle.is-active {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

.nav-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav-solutions-toggle.is-active .nav-chevron {
  transform: rotate(180deg);
}

/* Mobile solutions sub-list — hidden on desktop.
   Higher specificity (.main-navigation .nav-mobile-solutions = 0,2,0) beats
   the old .main-navigation ul rule (0,1,1) which would otherwise force display:flex. */
.main-navigation .nav-mobile-solutions {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Request a custom SaaS CTA button */
.btn-request-saas {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    opacity var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.35);
}

.btn-request-saas:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgb(37 99 235 / 0.45);
  transform: translateY(-1px);
}

.btn-request-saas:active {
  transform: translateY(0);
}

.btn-request-saas svg {
  flex-shrink: 0;
}

/* Override nav link color which has higher specificity */
.main-navigation .btn-request-saas,
.header-cta .btn-request-saas {
  color: var(--color-white);
}

/* ==========================================================================
   Header Navigation — Solutions Mega Menu
   ========================================================================== */

.mega-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8) 0;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base);
}

@media (min-width: 769px) {
  .mega-menu {
    display: block;
  }
  .nav-mobile-solutions {
    display: none;
  }
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-12);
}

.mega-menu-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}

.mega-menu-promo {
  padding: var(--space-6);
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-blue-200);
}

.mega-menu-promo h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-blue-900);
  margin-bottom: var(--space-2);
}

.mega-menu-promo p {
  font-size: var(--text-sm);
  color: var(--color-blue-700);
  margin-bottom: var(--space-4);
}

/* Promo pill badge ("SaaS Suite") */
.mega-promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  background-color: var(--color-blue-100);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
}

/* "Need something tailored?" block */
.mega-promo-custom {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.mega-promo-custom p {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mega-custom-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition:
    gap var(--transition-fast),
    color var(--transition-fast);
}

.mega-custom-link:hover {
  gap: var(--space-2);
  color: var(--color-primary-dark);
}

/* Products grid */
.mega-menu-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.mega-product-link {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.mega-product-link:hover {
  background-color: var(--color-blue-50);
  box-shadow: inset 0 0 0 1px var(--color-blue-200);
}

.mega-product-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.mega-product-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-1);
}

.mega-product-info h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: 0;
}

/* Category badge on each product card */
.mega-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--space-2);
  font-size: 0.65rem;
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mega-product-info p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: var(--leading-normal);
}

/* Mega menu footer bar */
.mega-menu-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  padding-bottom: 0;
}

.mega-menu-footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-menu-footer-inner span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-medium);
}

.mega-menu-footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.mega-menu-footer-inner a:hover {
  gap: var(--space-2);
}

/* ==========================================================================
   SaaS Pages — Trust / Logo Bar
   ========================================================================== */

.trust-bar {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-semibold);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-gray-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.trust-logo:hover {
  color: var(--color-gray-500);
}

/* ==========================================================================
   SaaS Pages — Stats / Metrics Bar
   ========================================================================== */

.stats-bar {
  padding: var(--space-16) 0;
  background: var(--gradient-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
}

.stat-number {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--font-medium);
}

/* ==========================================================================
   SaaS Pages — Product Cards (Products Listing)
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-blue-200);
}

.product-card-header {
  padding: var(--space-8);
  background: var(--gradient-card);
  border-bottom: 1px solid var(--color-blue-100);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.product-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.product-card-meta {
  flex: 1;
}

.product-card-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-blue-100);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.product-card-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

.product-card-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.product-card-body {
  padding: var(--space-6) var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-desc {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  flex: 1;
}

.product-card-features {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  margin-bottom: 0;
}

.product-card-features li::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center/contain no-repeat;
  flex-shrink: 0;
}

.product-card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ==========================================================================
   SaaS Pages — Split Hero (text + lottie/image)
   ========================================================================== */

.hero-split {
  padding: var(--space-20) 0 var(--space-16);
  overflow: hidden;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-split-content {
}

.hero-split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-split-visual .lottie-wrap,
.hero-split-visual .mockup-wrap {
  width: 100%;
  max-width: 520px;
}

.hero-split-visual lottie-player,
.hero-split-visual dotlottie-player {
  width: 100%;
}

.hero-gradient-bg {
  background: linear-gradient(
    135deg,
    var(--color-blue-50) 0%,
    var(--color-white) 60%
  );
}

.hero-dark-bg {
  background: var(--gradient-hero);
}

.hero-dark-bg .hero-split-content h1,
.hero-dark-bg .hero-eyebrow,
.hero-dark-bg .hero-title {
  color: var(--color-white);
}

.hero-dark-bg .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.hero-dark-bg .hero-social-proof {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   SaaS Pages — Screenshot Gallery
   ========================================================================== */

.screenshots-section {
  padding: var(--space-24) 0;
  overflow: hidden;
}

.screenshots-tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.screenshot-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.screenshot-tab:hover,
.screenshot-tab.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.screenshot-panel {
  display: none;
  animation: fadeInUp 0.35s ease;
}

.screenshot-panel.active {
  display: block;
}

.screenshot-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-gray-900);
}

.screenshot-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-gray-800);
  border-bottom: 1px solid var(--color-gray-700);
}

.screenshot-bar-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-full);
}

.screenshot-bar-addr {
  flex: 1;
  height: 1.5rem;
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  max-width: 28rem;
  margin: 0 auto;
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: linear-gradient(
    135deg,
    var(--color-blue-900) 0%,
    var(--color-blue-700) 100%
  );
}

/* UI Mockup placeholder when no real image */
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(
    135deg,
    var(--color-blue-900) 0%,
    var(--color-blue-700) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SaaS Pages — Use Cases
   ========================================================================== */

.use-cases-section {
  padding: var(--space-24) 0;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.use-case-card {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: var(--color-white);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.use-case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue-200);
}

.use-case-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

.use-case-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.use-case-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ==========================================================================
   SaaS Pages — FAQ Accordion
   ========================================================================== */

.faq-section {
  padding: var(--space-24) 0;
}

.faq-list {
  max-width: 48rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--color-blue-200);
  box-shadow: 0 0 0 3px var(--color-blue-50);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-blue-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  line-height: 1;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.faq-item.open .faq-question-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   SaaS Pages — Feature Detail (icon + description rows)
   ========================================================================== */

.features-detail-section {
  padding: var(--space-24) 0;
}

.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-block-content {
}

.feature-block-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.feature-block-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  line-height: 1.2;
  color: var(--color-gray-900);
  margin-bottom: var(--space-5);
}

.feature-block-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.feature-block-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-block-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  margin-bottom: 0;
}

.feature-block-list li .check {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-blue-100);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: var(--font-bold);
  margin-top: 2px;
}

.feature-block-visual {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--gradient-card);
  border: 1px solid var(--color-blue-200);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block-lottie {
  width: 100%;
  padding: var(--space-8);
}

/* ==========================================================================
   SaaS Pages — Pricing Page Extras
   ========================================================================== */

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.pricing-toggle-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
}

.pricing-toggle {
  position: relative;
  width: 3rem;
  height: 1.625rem;
}

.pricing-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pricing-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.pricing-toggle-slider::before {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  left: 3px;
  top: 3px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pricing-toggle input:checked + .pricing-toggle-slider {
  background: var(--color-primary);
}

.pricing-toggle input:checked + .pricing-toggle-slider::before {
  transform: translateX(1.375rem);
}

.pricing-save-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-success);
  background: rgb(16 185 129 / 0.1);
  border: 1px solid rgb(16 185 129 / 0.25);
  border-radius: var(--radius-full);
  padding: 2px var(--space-2);
}

/* Compare table */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table thead th {
  padding: var(--space-5) var(--space-6);
  background: var(--color-gray-50);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

.compare-table thead th:first-child {
  width: 40%;
}

.compare-table thead th.featured-col {
  background: var(--color-blue-50);
  color: var(--color-primary);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.compare-table tbody tr:hover {
  background-color: var(--color-gray-50);
}
.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table td {
  padding: var(--space-4) var(--space-6);
  color: var(--color-gray-700);
  vertical-align: middle;
}

.compare-table td.feature-name {
  font-weight: var(--font-medium);
  color: var(--color-gray-900);
}

.compare-table td.featured-col {
  background: rgba(37, 99, 235, 0.03);
}

.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: rgb(16 185 129 / 0.1);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: 0.7rem;
}

.compare-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-gray-100);
  color: var(--color-gray-400);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

/* ==========================================================================
   SaaS Pages — Lottie Containers
   ========================================================================== */

.lottie-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

lottie-player,
dotlottie-player {
  display: block;
}

.lottie-sm {
  max-width: 200px;
}
.lottie-md {
  max-width: 320px;
}
.lottie-lg {
  max-width: 480px;
}
.lottie-xl {
  max-width: 640px;
}
.lottie-full {
  width: 100%;
}

/* ==========================================================================
   SaaS Pages — Notification / Alert Strips
   ========================================================================== */

.site-announcement {
  background: var(--gradient-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.site-announcement a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   SaaS Pages — Step / How-it-works
   ========================================================================== */

.steps-section {
  padding: var(--space-24) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 4rem; /* Center on step numbers: space-8 (2rem) + half step-number height (2rem) */
  left: calc(100% / 8); /* Adjust for 4 columns instead of 3 */
  right: calc(100% / 8);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-blue-200) 0%,
    var(--color-blue-400) 50%,
    var(--color-blue-200) 100%
  );
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.step-number {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: 0 0 0 8px var(--color-blue-50);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* ==========================================================================
   SaaS Pages — Integration / Tech Stack Logos
   ========================================================================== */

.integrations-section {
  padding: var(--space-20) 0;
  background: var(--color-bg-alt);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
}

.integration-item {
  aspect-ratio: 1;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition:
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
  cursor: default;
}

.integration-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-200);
  transform: translateY(-2px);
}

/* ==========================================================================
   SaaS Pages — Comparison / VS Section
   ========================================================================== */

.vs-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-alt);
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  align-items: start;
  max-width: 56rem;
  margin-inline: auto;
}

.vs-column {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.vs-column.ours {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-xl);
}

.vs-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.vs-label.ours {
  color: var(--color-primary);
}
.vs-label.theirs {
  color: var(--color-gray-500);
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
}

.vs-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SaaS Pages — Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

/* ==========================================================================
   Homepage — Company Hero
   ========================================================================== */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-32) 0 var(--space-24);
  /* Deep cobalt-to-midnight blue base */
  background-color: #1740c8;
  /* Fine white dot grid sits on top of the solid colour */
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #1b47d6 0%, #1638b8 40%, #132fa0 75%, #0f2385 100%);
  background-size:
    26px 26px,
    100% 100%;
}

/* Large dark-navy organic blobs sweeping in from left & right edges,
   plus a subtle lighter accent glow at each corner                   */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Left: big deep-navy kidney shape */
    radial-gradient(
      ellipse 58% 100% at -20% 55%,
      rgba(10, 20, 90, 0.82) 0%,
      transparent 62%
    ),
    /* Right: mirrored kidney shape */
    radial-gradient(
        ellipse 55% 100% at 118% 48%,
        rgba(10, 20, 90, 0.78) 0%,
        transparent 60%
      ),
    /* Top-right sky-indigo accent glow */
    radial-gradient(
        ellipse 45% 55% at 105% -5%,
        rgba(99, 140, 255, 0.28) 0%,
        transparent 55%
      ),
    /* Bottom-left electric-blue accent glow */
    radial-gradient(
        ellipse 40% 50% at -5% 105%,
        rgba(56, 120, 255, 0.22) 0%,
        transparent 50%
      );
  pointer-events: none;
}

/* Concentric ghost-white ring cluster — top-right corner */
.home-hero::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -130px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 58px rgba(255, 255, 255, 0.035),
    0 0 0 125px rgba(255, 255, 255, 0.02),
    0 0 0 205px rgba(255, 255, 255, 0.01);
  pointer-events: none;
  animation: heroRingDrift 28s ease-in-out infinite alternate;
}

@keyframes heroRingDrift {
  from {
    transform: translate(0px, 0px) scale(1);
  }
  to {
    transform: translate(-22px, 16px) scale(1.06);
  }
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  position: relative;
}

.home-hero-content {
  max-width: 560px;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.home-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: #ffffff;
}

.home-hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 480px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Override outline button so it reads on the dark hero background */
.home-hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.home-hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

/* Make the text-gradient span still pop on dark bg — bright white-to-sky */
.home-hero .text-gradient {
  background: linear-gradient(90deg, #93c5fd 0%, #c7d2fe 55%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero-avatars {
  display: flex;
  margin-right: var(--space-2);
}

.hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-social-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
}

.hero-social-text strong {
  color: #ffffff;
  font-weight: 700;
}

.home-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-img-wrap {
  width: 100%;
  max-width: 520px;
}

/* ==========================================================================
   Homepage — Mission Strip
   ========================================================================== */

.mission-strip {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.mission-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.mission-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mission-item-content h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-heading);
}

.mission-item-content p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Homepage — Product Showcase Cards
   ========================================================================== */

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.product-showcase-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.03) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.product-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}

.product-showcase-card:hover::before {
  opacity: 1;
}

.psc-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.psc-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.psc-title-group {
  min-width: 0;
}

.psc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.psc-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-heading);
  margin: 0;
  line-height: 1.2;
}

.psc-tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
}

.psc-description {
  font-size: var(--text-base);
  color: var(--color-body);
  line-height: 1.7;
  margin: 0;
}

.psc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.psc-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-body);
}

.psc-features li::before {
  content: "✓";
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.psc-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-top: auto;
}

.psc-badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

/* WordPress Tools badge */
.psc-badge--wp {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

/* ==========================================================================
   Homepage — Blog Section
   ========================================================================== */

.blog-section {
  padding: var(--space-24) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.09);
  border-color: rgba(37, 99, 235, 0.2);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-image-placeholder--blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.blog-card-image-placeholder--indigo {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.blog-card-image-placeholder--green {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.blog-card-image-placeholder--amber {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.blog-card-image-placeholder--violet {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.blog-card-category-link {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition-fast);
}

.blog-card-category-link:hover {
  background: rgba(255, 255, 255, 1);
}

.blog-card-body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--color-primary);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.blog-card-meta-sep {
  opacity: 0.4;
}

.blog-card-read-more {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition:
    gap var(--transition-fast),
    color var(--transition-fast);
  white-space: nowrap;
}

.blog-card-read-more:hover {
  gap: var(--space-2);
}

.blog-section-footer {
  text-align: center;
  margin-top: var(--space-12);
}

/* No posts placeholder */
.blog-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12);
  color: var(--color-muted);
}

/* ==========================================================================
   Homepage — About Strip
   ========================================================================== */

.about-strip {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-blue-900) 0%, #1e1b4b 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.about-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 10% 50%,
      rgba(59, 130, 246, 0.25) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 90% 30%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}

.about-strip-content .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  border: none;
}

.about-strip-content h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.about-strip-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.about-strip-actions {
  display: flex;
  gap: var(--space-4);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Single SaaSify Product Page — product-single-hero & supporting elements
   ==========================================================================
   The .home-hero base styles (dark blue blob background, dot grid, rings)
   are reused wholesale. This section adds the split layout and new elements
   specific to single product pages.
   ========================================================================== */

/* ---- Hero layout ---- */
.product-single-hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  min-height: 520px;
}

@media (max-width: 900px) {
  .product-hero-inner {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: var(--space-10);
  }
}

/* ---- Content side ---- */
.product-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 560px;
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  flex-shrink: 0;
  box-shadow: 0 0 6px #60a5fa;
}

.product-hero-icon-wrap {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.product-hero-tagline {
  font-size: var(--text-xl) !important;
  font-weight: 600;
}

.product-hero-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 480px;
}

.product-hero-trust-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-xs);
  margin-top: var(--space-2);
}

/* ---- Media side ---- */
.product-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-hero-lottie {
  width: 100%;
  max-width: 480px;
}

.product-hero-img-wrap {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 520px;
}

.product-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---- Decorative rings placeholder (shown when no media is set) ---- */
.product-hero-rings {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero-rings::before,
.product-hero-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-hero-rings::before {
  inset: -40px;
}

.product-hero-rings::after {
  inset: -80px;
}

.product-hero-rings-icon {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 32px rgba(96, 165, 250, 0.6));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Responsive adjustments for single hero ---- */
@media (max-width: 900px) {
  .product-hero-content {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .product-hero-desc {
    max-width: 100%;
  }

  .product-hero-media {
    order: -1;
  }

  .product-hero-rings {
    width: 220px;
    height: 220px;
  }

  .product-hero-rings-icon {
    font-size: 3.5rem;
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 600px) {
  .product-single-hero .container {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .home-hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* ==========================================================================
   ACF Preview / Placeholder Mode Notice Bar
   Only visible to logged-in users with edit_posts capability.
   Shown when all ACF fields are still empty so the admin can see the full
   page layout while they're filling in content.
   ========================================================================== */

.acf-preview-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 20px;
  background: #1e3a8a;
  border-bottom: 2px solid #3b82f6;
  color: #bfdbfe;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

.acf-preview-bar__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.acf-preview-bar__label {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.acf-preview-bar__text {
  color: #93c5fd;
}

.acf-preview-bar__link {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #3b82f6;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  transition: background 0.2s ease;
}

.acf-preview-bar__link:hover {
  background: #2563eb;
  color: #fff !important;
}

@media (max-width: 640px) {
  .acf-preview-bar__link {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.about-strip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.about-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
}

.about-stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.about-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Responsive — homepage additions
   ========================================================================== */

@media (max-width: 1024px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .home-hero-subtitle {
    max-width: 100%;
  }
  .home-hero-actions {
    justify-content: center;
  }
  .home-hero-social-proof {
    justify-content: center;
  }
  .home-hero-visual {
    display: none;
  }
  .about-strip-inner {
    grid-template-columns: 1fr;
  }
  .about-strip-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .product-showcase-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .psc-features {
    grid-template-columns: 1fr;
  }
  .about-strip-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-strip-stats {
    grid-template-columns: 1fr 1fr;
  }
  .psc-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

[data-animate] {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SaaS Pages — Gradient Text
   ========================================================================== */

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   SaaS Pages — Responsive Additions
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero-split-visual {
    order: -1;
  }
  .feature-block {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .feature-block.reverse {
    direction: ltr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .integrations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .mega-menu-products {
    grid-template-columns: 1fr;
  }
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-divider {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid::before {
    display: none;
  }
  .integrations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-number {
    font-size: var(--text-4xl);
  }
  .feature-block-title {
    font-size: var(--text-2xl);
  }
  .compare-table th,
  .compare-table td {
    padding: var(--space-3) var(--space-4);
  }
  .mega-menu {
    display: none !important;
  }
  .nav-mobile-solutions {
    display: block;
  }
  .hero-split {
    padding: var(--space-12) 0;
  }
}

/* Search form */
.search-form {
  display: flex;
  gap: 0;
}

.search-field {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background-color: var(--color-white);
  color: var(--color-gray-900);
}

.search-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(79 70 229 / 0.15);
}

.search-submit {
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-submit:hover {
  background-color: var(--color-primary-dark);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: var(--space-32) 0;
}

.error-404 .error-code {
  font-size: 8rem;
  font-weight: var(--font-extrabold);
  line-height: 1;
  color: var(--color-gray-200);
  margin-bottom: var(--space-4);
}

.error-404 h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.error-404 p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 30rem;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   WordPress-specific Alignment Classes
   ========================================================================== */

.alignleft {
  float: left;
  margin: 0 var(--space-6) var(--space-4) 0;
}
.alignright {
  float: right;
  margin: 0 0 var(--space-4) var(--space-6);
}
.aligncenter {
  display: block;
  margin-inline: auto;
}
.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.alignwide {
  width: calc(100% + var(--space-16));
  margin-left: calc(-1 * var(--space-8));
}

.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  padding-top: var(--space-2);
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-white);
  clip: auto !important;
  color: var(--color-primary);
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  height: auto;
  left: var(--space-5);
  padding: var(--space-3) var(--space-5);
  top: var(--space-5);
  width: auto;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Responsive — Tablet (≤ 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* ==========================================================================
   Responsive — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-4);
  }

  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }
  .section-title {
    font-size: var(--text-3xl);
  }
  .pricing-amount {
    font-size: var(--text-2xl);
  }

  /* Header */
  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    z-index: var(--z-sticky);
  }

  .main-navigation.is-open {
    display: flex;
  }

  /* Nav menu — stack items vertically on mobile */
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
  }

  /* Solutions toggle — full width on mobile */
  .nav-solutions-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
  }

  /* Mobile solutions sub-list */
  .nav-mobile-solutions {
    padding: var(--space-2) 0 var(--space-2) var(--space-3);
    border-left: 2px solid var(--color-blue-200);
    margin-left: var(--space-4);
    margin-top: var(--space-1);
  }

  .nav-mobile-solutions.is-open {
    display: block;
  }

  .nav-mobile-solution-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
  }

  .nav-mobile-solution-link:hover {
    background-color: var(--color-blue-50);
    color: var(--color-primary);
  }

  .nav-mobile-solution-link--cta {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
  }

  .nav-mobile-solution-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .nav-mobile-solution-icon--cta {
    background-color: var(--color-blue-50);
  }

  /* CTA button — show on mobile inside nav */
  .header-cta {
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
  }

  .header-cta .btn-request-saas {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  /* Hide full desktop mega menu on mobile */
  .mega-menu--solutions {
    display: none !important;
  }

  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-gray-50);
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
    border-radius: 0;
  }

  .main-navigation li:hover > .sub-menu {
    display: block;
  }

  /* Grids */
  .features-grid,
  .testimonials-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    justify-content: center;
  }

  .pricing-card {
    flex: 1 1 100%;
    max-width: 400px;
  }

  .single-post-layout {
    grid-template-columns: 1fr;
  }

  .widget-area {
    position: static;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    text-align: center;
  }

  /* Sections */
  .section {
    padding: var(--space-16) 0;
  }
  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  /* Buttons stack */
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Product Hero — Browser-frame preview
   Replaces the old rings+icon placeholder on the media side of the hero.
   Shows a real screenshot if one is available, otherwise renders a
   skeleton dashboard UI so the layout looks complete from day one.
   ========================================================================== */

.product-hero-browser {
  width: 100%;
  max-width: 560px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
  background: #0f172a;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.product-hero-browser:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}

/* Browser chrome bar */
.product-hero-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.product-hero-browser__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-hero-browser__addr {
  flex: 1;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* Screen area */
.product-hero-browser__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.product-hero-browser__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* ---- Skeleton dashboard UI ---- */
.product-hero-browser__skeleton {
  display: flex;
  width: 100%;
  height: 100%;
  font-size: 11px;
  background: #0f172a;
}

/* Sidebar */
.phbs-sidebar {
  width: 22%;
  flex-shrink: 0;
  background: #1e293b;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phbs-logo-block {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2px;
}

.phbs-logo-icon {
  font-size: 14px;
  line-height: 1;
}

.phbs-logo-text {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.phbs-nav-item {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.phbs-nav-item.phbs-active {
  background: rgba(59, 130, 246, 0.45);
  width: 85%;
}

/* Main content */
.phbs-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phbs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1e293b;
}

.phbs-topbar-title {
  height: 7px;
  width: 80px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.phbs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phbs-badge {
  height: 14px;
  width: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.phbs-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

/* Stat cards row */
.phbs-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 10px 6px;
}

.phbs-stat-card {
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phbs-stat-card--blue {
  background: rgba(59, 130, 246, 0.15);
}
.phbs-stat-card--green {
  background: rgba(16, 185, 129, 0.15);
}
.phbs-stat-card--purple {
  background: rgba(139, 92, 246, 0.15);
}
.phbs-stat-card--amber {
  background: rgba(245, 158, 11, 0.15);
}

/* Chart + list cards */
.phbs-content-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6px;
  padding: 0 10px 10px;
  flex: 1;
  min-height: 0;
}

.phbs-chart-card,
.phbs-list-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.phbs-card-header {
  height: 6px;
  width: 50%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
}

/* Chart bars */
.phbs-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-top: 4px;
}

.phbs-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(
    to top,
    rgba(59, 130, 246, 0.7),
    rgba(96, 165, 250, 0.4)
  );
}

/* List rows */
.phbs-list-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phbs-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phbs-dot-green {
  background: #10b981;
}
.phbs-dot-blue {
  background: #3b82f6;
}
.phbs-dot-amber {
  background: #f59e0b;
}

.phbs-list-line {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.phbs-list-line--short {
  flex: 0.65;
}

/* Responsive */
@media (max-width: 900px) {
  .product-hero-browser {
    max-width: 100%;
    transform: none;
  }

  .product-hero-browser:hover {
    transform: none;
  }

  .phbs-sidebar {
    width: 26%;
  }

  .phbs-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   ABOUT PAGE — template-about.php
================================================================ */

/* ── 1. Hero ─────────────────────────────────────────────────────── */
.about-hero {
  position: relative;
  background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 45%, #0c4a6e 100%);
  color: #fff;
  overflow: hidden;
  padding: var(--space-32) 0 var(--space-24);
  isolation: isolate;
}

/* dot-grid background */
.about-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 560px;
}

.about-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero-img-wrap {
  width: 100%;
  max-width: 520px;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  width: fit-content;
}

.about-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  animation: about-pulse 2s infinite;
}

@keyframes about-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.1);
  }
}

.about-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.about-hero-highlight {
  display: inline-block;
  position: relative;
  color: #fbbf24; /* amber */
  white-space: nowrap;
}

/* bold underline curl on the highlight word */
.about-hero-highlight::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  animation: about-underline 0.6s 0.8s ease forwards;
}

@keyframes about-underline {
  to {
    transform: scaleX(1);
  }
}

.about-hero-sub {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* decorative floating blobs */
.about-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ahs {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}
.ahs--1 {
  width: 400px;
  height: 400px;
  background: #2563eb;
  top: -120px;
  right: -100px;
}
.ahs--2 {
  width: 260px;
  height: 260px;
  background: #0ea5e9;
  bottom: -80px;
  right: 120px;
}
.ahs--3 {
  width: 180px;
  height: 180px;
  background: #f59e0b;
  top: 60px;
  right: 80px;
}

/* ── 2. Mission ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
  }
  .about-hero-content {
    max-width: 100%;
  }
  .about-hero-visual {
    display: none;
  }
}

.about-mission {
  background: #f8faff;
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
}

.about-mission-eyebrow {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.about-mission-quote {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
  position: relative;
}

.about-mission-open-quote {
  position: absolute;
  top: -0.2em;
  left: -0.35em;
  font-size: 3em;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

.about-mission-rule {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.about-mission-rule-bar {
  display: block;
  height: 5px;
  border-radius: var(--radius-full);
}
.about-mission-rule-bar--blue {
  width: 60px;
  background: var(--color-primary);
}
.about-mission-rule-bar--green {
  width: 44px;
  background: #10b981;
}
.about-mission-rule-bar--amber {
  width: 36px;
  background: #f59e0b;
}
.about-mission-rule-bar--purple {
  width: 28px;
  background: #8b5cf6;
}

/* ── 3. Origin Story / Timeline ──────────────────────────────────── */
.about-story {
  background: #fff;
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-story-copy {
  padding-top: var(--space-2);
}

/* Timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-timeline-item {
  display: flex;
  gap: var(--space-5);
  position: relative;
  padding-bottom: var(--space-8);
}

/* vertical connector line */
.about-timeline-item::before {
  content: "";
  position: absolute;
  left: 28px; /* centre of the year badge */
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.about-timeline-item:last-child::before {
  display: none;
}

.about-timeline-year {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.about-timeline-item--blue .about-timeline-year {
  background: var(--color-primary);
}
.about-timeline-item--green .about-timeline-year {
  background: #10b981;
}
.about-timeline-item--amber .about-timeline-year {
  background: #f59e0b;
  color: #1a1a1a;
}
.about-timeline-item--purple .about-timeline-year {
  background: #8b5cf6;
}
.about-timeline-item--teal .about-timeline-year {
  background: #0d9488;
}

.about-timeline-content {
  padding-top: var(--space-3);
}

.about-timeline-content strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: var(--space-1);
}

.about-timeline-content p {
  font-size: var(--text-sm);
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ── 4. Values ───────────────────────────────────────────────────── */
.about-values {
  background: #0f172a;
  padding: var(--space-24) 0;
}

.about-values-header {
  max-width: 620px;
  margin-bottom: var(--space-12);
}

.about-values-eyebrow {
  color: #94a3b8;
}

.about-values-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: var(--space-3) 0 0;
  letter-spacing: -0.02em;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.about-value-card {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-value-card--blue {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}
.about-value-card--green {
  background: linear-gradient(135deg, #059669, #10b981);
}
.about-value-card--amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #1a1a0a;
}
.about-value-card--purple {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}
.about-value-card--teal {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}
.about-value-card--coral {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.about-value-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.about-value-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.about-value-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
  opacity: 0.88;
}

/* ── 5. Numbers ──────────────────────────────────────────────────── */
.about-numbers {
  background: #172554; /* deep blue-950 */
  padding: var(--space-24) 0;
}

.about-numbers-header {
  text-align: center;
  margin-bottom: var(--space-14);
}

.about-numbers-eyebrow {
  color: #7dd3fc; /* sky-300 */
}

.about-numbers-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: var(--space-3) 0 0;
  letter-spacing: -0.02em;
}

.about-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.about-numbers-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}

.about-numbers-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.about-numbers-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.about-numbers-value--blue {
  color: #60a5fa;
}
.about-numbers-value--green {
  color: #4ade80;
}
.about-numbers-value--amber {
  color: #fbbf24;
}
.about-numbers-value--purple {
  color: #c084fc;
}

.about-numbers-label {
  font-size: var(--text-base);
  color: #94a3b8;
  font-weight: 500;
}

/* ── 6. How We Work ──────────────────────────────────────────────── */
.about-how {
  background: #f8faff;
}

.about-how-header {
  max-width: 600px;
  margin-bottom: var(--space-12);
}

.about-how-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.about-how-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: var(--space-6);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
  max-width: none;
}

.about-how-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.about-how-item--blue {
  border-left-color: var(--color-primary);
}
.about-how-item--green {
  border-left-color: #10b981;
}
.about-how-item--amber {
  border-left-color: #f59e0b;
}

.about-how-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.about-how-item--blue .about-how-icon-wrap {
  background: var(--color-primary);
}
.about-how-item--green .about-how-icon-wrap {
  background: #10b981;
}
.about-how-item--amber .about-how-icon-wrap {
  background: #f59e0b;
}

.about-how-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.about-how-copy {
  min-width: 0; /* Allows text to wrap in grid */
}

.about-how-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 var(--space-2);
}

.about-how-desc {
  font-size: var(--text-base);
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

.about-how-lottie {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 40%;
}

.about-how-lottie lottie-player {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* ── 7. Products Strip ───────────────────────────────────────────── */
.about-products {
  background: #fff;
  padding: var(--space-24) 0;
}

.about-products-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-12);
}

.about-products-eyebrow {
  color: var(--color-primary);
}

.about-products-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: var(--space-3) 0 var(--space-3);
}

.about-products-sub {
  color: #64748b;
  font-size: var(--text-lg);
  margin: 0;
}

.about-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.about-product-card {
  display: flex;
  flex-direction: column;
  background: #f8faff;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
  gap: var(--space-4);
}

.about-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.about-product-card--blue {
  border-color: #bfdbfe;
}
.about-product-card--blue:hover {
  border-color: var(--color-primary);
}
.about-product-card--green {
  border-color: #a7f3d0;
}
.about-product-card--green:hover {
  border-color: #10b981;
}
.about-product-card--amber {
  border-color: #fde68a;
}
.about-product-card--amber:hover {
  border-color: #f59e0b;
}
.about-product-card--purple {
  border-color: #ddd6fe;
}
.about-product-card--purple:hover {
  border-color: #8b5cf6;
}

.about-product-icon {
  font-size: 2rem;
  line-height: 1;
}

.about-product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.about-product-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.about-product-status {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #e0f2fe;
  color: #0369a1;
}

.about-product-desc {
  font-size: var(--text-sm);
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.about-product-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.about-product-card--green .about-product-link {
  color: #059669;
}
.about-product-card--amber .about-product-link {
  color: #d97706;
}
.about-product-card--purple .about-product-link {
  color: #7c3aed;
}

/* ── 8. Team ─────────────────────────────────────────────────────── */
.about-team {
  background: #fff;
}

.about-team-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto var(--space-12);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.about-team-card {
  background: #f8faff;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.about-team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  border: 4px solid transparent;
}

.about-team-avatar--blue {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #bfdbfe;
}
.about-team-avatar--green {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #a7f3d0;
}
.about-team-avatar--amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: #fde68a;
  color: #1a1a0a;
}
.about-team-avatar--purple {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  border-color: #ddd6fe;
}
.about-team-avatar--photo {
  background: transparent;
  border-color: transparent;
  overflow: hidden;
  padding: 0;
}
.about-team-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about-team-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 var(--space-1);
}

.about-team-role {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}

.about-team-bio {
  font-size: var(--text-sm);
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* ── 9. Join / CTA ───────────────────────────────────────────────── */
.about-join {
  background: linear-gradient(140deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
  color: #fff;
  padding: var(--space-24) 0;
  overflow: hidden;
  position: relative;
}

/* subtle dot overlay to echo hero */
.about-join::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

.about-join-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
}

.about-join-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-5);
  color: #fff;
}

.about-join-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: #fff;
}

.about-join-sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 0 var(--space-8);
  line-height: 1.65;
}

.about-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.about-join-btn-primary {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  border: 2px solid transparent;
}
.about-join-btn-primary:hover {
  background: #eff6ff;
  color: var(--color-primary-dark);
}

.about-join-btn-secondary {
  background: transparent;
  color: #fff;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.about-join-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Perks list */
.about-join-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-8);
  flex-shrink: 0;
}

.about-join-perk {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.about-join-perk-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ================================================================
   ABOUT PAGE — Responsive
================================================================ */

@media (max-width: 1024px) {
  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-products-grid,
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-how-list {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .about-how-item {
    grid-template-columns: 56px 1fr;
    gap: var(--space-5);
    padding: var(--space-6);
  }

  .about-how-lottie {
    width: 64px;
    height: 64px;
  }

  .about-join-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-join-perks {
    grid-template-columns: repeat(3, auto);
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: var(--space-20) 0 var(--space-16);
  }

  .about-hero-title {
    font-size: 2rem;
  }

  .about-hero-sub {
    font-size: var(--text-base);
  }

  .about-mission-quote {
    font-size: 1.5rem;
  }

  .about-story-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .about-numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-how-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .about-how-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-4) var(--space-5);
    padding: var(--space-5);
  }

  .about-how-lottie {
    grid-column: 1 / -1;
    width: 84px;
    height: 84px;
    justify-self: center;
    margin-top: var(--space-3);
  }

  .about-products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .about-team-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .about-join-perks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .about-hero-actions,
  .about-join-actions {
    flex-direction: column;
  }

  .about-hero-actions .btn,
  .about-join-actions .btn {
    width: 100%;
    text-align: center;
  }

  .about-numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-how-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .about-how-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-3) var(--space-4);
    padding: var(--space-5);
  }

  .about-how-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .about-how-lottie {
    grid-column: 1 / -1;
    width: 72px;
    height: 72px;
    justify-self: center;
    margin-top: var(--space-2);
  }

  .about-products-grid,
  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-join-perks {
    grid-template-columns: 1fr;
  }

  .about-values-title,
  .about-numbers-title,
  .about-products-title,
  .about-join-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
/*--------------------------------------------------------------
# News / Blog - Bold Editorial Design (DigitalOcean Inspired)
--------------------------------------------------------------*/
/* Hero Area */
.news-hero {
  position: relative;
  padding: 100px 0 60px;
  background: #0f172a; /* Dark sleek background */
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.news-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.news-hero-shapes .nhs {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(52, 111, 239, 0.15) 0%,
    rgba(52, 111, 239, 0) 70%
  );
  border-radius: 50%;
  filter: blur(40px);
}
.news-hero-shapes .nhs--1 {
  top: -100px;
  right: -100px;
}
.news-hero-shapes .nhs--2 {
  bottom: -100px;
  left: -100px;
}

.news-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.news-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.news-hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.news-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.news-hero-subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
}

.news-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  color: #cbd5e1;
}

.news-hero-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-right: 8px;
}

/* Category Filters */
.news-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.news-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-filter-tab {
  padding: 10px 24px;
  border-radius: 100px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-filter-tab:hover,
.news-filter-tab.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(52, 111, 239, 0.2);
}

/* Per-colour active/hover states for category filter tabs */
.news-filter-tab--blue:hover,
.news-filter-tab--blue.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(52, 111, 239, 0.3);
}
.news-filter-tab--green:hover,
.news-filter-tab--green.is-active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}
.news-filter-tab--amber:hover,
.news-filter-tab--amber.is-active {
  background: var(--amber);
  color: #1a1a1a;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}
.news-filter-tab--purple:hover,
.news-filter-tab--purple.is-active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}
.news-filter-tab--teal:hover,
.news-filter-tab--teal.is-active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}
.news-filter-tab--coral:hover,
.news-filter-tab--coral.is-active {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 16px rgba(244, 63, 94, 0.3);
}

/* Grid Layout */
.news-grid-section {
  padding: 80px 0;
  background: #f8fafc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-grid > * {
  min-width: 0; /* prevent grid blowout from long text */
}

.news-wide-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

/* Hero Card */
.news-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
  color: #fff;
  text-decoration: none;
}
.news-hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.2) 100%
  );
  z-index: 1;
}

.news-hero-card-body {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
}

.news-hero-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.news-badge {
  background: var(--blue);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.news-badge--blue {
  background: var(--blue);
  color: #fff;
}
.news-badge--green {
  background: var(--green);
  color: #fff;
}
.news-badge--amber {
  background: var(--amber);
  color: #fff;
}
.news-badge--purple {
  background: var(--purple);
  color: #fff;
}
.news-badge--teal {
  background: var(--teal);
  color: #fff;
}
.news-badge--coral {
  background: var(--coral);
  color: #fff;
}

.news-hero-card-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.news-hero-card-title a {
  color: #fff;
  text-decoration: none;
}

.news-hero-card-excerpt {
  font-size: 16px;
  color: #e2e8f0;
  margin-bottom: 24px;
  max-width: 800px;
}

.news-hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-author-chip-img {
  border-radius: 50%;
}

.news-author-chip-name {
  display: block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.news-author-chip-date {
  font-size: 14px;
  color: #cbd5e1;
}

/* Standard Cards */
.news-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.news-card-img-wrap {
  height: 240px;
  overflow: hidden;
  position: relative;
  display: block;
}

.news-card--wide .news-card-img-wrap {
  height: 300px;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-img-placeholder {
  height: 240px;
  background: #f1f5f9;
}

.news-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 20px;
  font-weight: 800;
  margin: 16px 0;
  line-height: 1.3;
}
.news-card--wide .news-card-title {
  font-size: 26px;
}

.news-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card:hover .news-card-title a {
  color: var(--blue);
}

.news-card-excerpt {
  color: #64748b;
  margin-bottom: 24px;
  flex-grow: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
  color: #94a3b8;
}

.news-card-avatar {
  border-radius: 50%;
}

.news-card-author {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}

/* Pagination */
.news-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.2s;
}

.news-pagination .current,
.news-pagination .page-numbers:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Empty State */
.news-empty {
  padding: 100px 0;
  text-align: center;
}

.news-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.news-empty-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.news-empty-sub {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 18px;
}

@media (max-width: 992px) {
  .news-grid,
  .news-wide-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-hero-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .news-grid,
  .news-wide-row {
    grid-template-columns: 1fr;
  }
  .news-hero-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ==========================================================================
   News — Single Article Template
   ========================================================================== */

.news-single-page {
  background: #f8fafc;
}

/* Hero */
.news-single-hero {
  position: relative;
  padding: 80px 0 56px;
  background: #0f172a;
  color: #fff;
  text-align: center;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.news-single-hero.has-thumb {
  min-height: 460px;
}

.news-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.55) 100%
  );
  z-index: 0;
}

.news-single-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.news-single-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.news-single-read-time {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.news-single-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 28px;
}

.news-single-hero .news-author-chip {
  justify-content: center;
}

.news-single-hero .news-author-chip-name {
  color: #f1f5f9;
}

.news-single-hero .news-author-chip-date {
  color: #94a3b8;
}

/* Body */
.news-single-body {
  padding: 60px 0 80px;
}

.news-single-content-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.news-single-article {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 32px;
}

.news-single-content {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
}

.news-single-content > * + * {
  margin-top: 20px;
}

.news-single-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 40px;
  margin-bottom: 16px;
}

.news-single-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.news-single-content p {
  margin-bottom: 20px;
}

.news-single-content ul,
.news-single-content ol {
  padding-left: 28px;
  margin-bottom: 20px;
}

.news-single-content li {
  margin-bottom: 8px;
}

.news-single-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.news-single-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-single-content a:hover {
  color: #1d4ed8;
}

.news-single-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 24px;
  background: #eff6ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1e40af;
  margin: 28px 0;
}

.news-single-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: #0f172a;
  font-family: var(--font-mono, monospace);
}

.news-single-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 28px 0;
}

.news-single-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Tags */
.news-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

/* Post navigation */
.news-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.news-post-nav-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  transition: all 0.25s ease;
  color: inherit;
}

.news-post-nav-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(52, 111, 239, 0.12);
  transform: translateY(-2px);
}

.news-post-nav-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
}

.news-post-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.news-post-nav-btn--next {
  text-align: right;
}

/* Responsive — News Single */
@media (max-width: 768px) {
  .news-single-title {
    font-size: 28px;
  }

  .news-single-article {
    padding: 24px;
  }

  .news-post-nav {
    grid-template-columns: 1fr;
  }

  .news-post-nav-btn--next {
    text-align: left;
  }

  .news-single-hero-meta {
    flex-wrap: wrap;
  }
}
/* ==========================================================================
   Solutions Directory Page  (template-solutions.php)
   ========================================================================== */

/* ── Hero extras ────────────────────────────────────────────────────────── */

.sl-hero {
  padding-bottom: var(--space-12);
}

.sl-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-blue-100);
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-8);
  margin-top: var(--space-4);
}

.sl-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sl-hero-stat-num {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

.sl-hero-stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sl-hero-stat-sep {
  width: 1px;
  height: 2.5rem;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Filter Panel ───────────────────────────────────────────────────────── */

.sl-filter-panel {
  position: sticky;
  top: 4rem; /* sits just below the 4 rem site-header */
  z-index: var(--z-sticky);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

.sl-filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-2) 0;
}

.sl-filter-row + .sl-filter-row {
  border-top: 1px solid var(--color-gray-100);
}

.sl-filter-row-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  min-width: 5.5rem;
  flex-shrink: 0;
}

.sl-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Base pill */
.sl-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  line-height: 1.5;
}

.sl-filter-pill:hover {
  background-color: var(--color-gray-100);
  border-color: var(--color-gray-300);
  color: var(--color-gray-900);
}

.sl-filter-pill:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Category active — primary blue */
.sl-filter-pill.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgb(37 99 235 / 0.25);
}

/* Pricing pill colour variants */
.sl-filter-pill--open-source:hover,
.sl-filter-pill--open-source.is-active {
  background: #059669;
  border-color: #059669;
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.sl-filter-pill--free:hover,
.sl-filter-pill--free.is-active {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.sl-filter-pill--freemium:hover,
.sl-filter-pill--freemium.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 111, 239, 0.3);
}

.sl-filter-pill--starter:hover,
.sl-filter-pill--starter.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.sl-filter-pill--pro:hover,
.sl-filter-pill--pro.is-active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.sl-filter-pill--enterprise:hover,
.sl-filter-pill--enterprise.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Results bar */
.sl-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-gray-100);
  margin-top: var(--space-1);
}

.sl-results-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.sl-results-count strong {
  color: var(--color-gray-900);
}

.sl-active-filter-summary {
  color: var(--color-primary);
  margin-left: var(--space-2);
  font-style: italic;
}

.sl-reset-btn {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.sl-reset-btn:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

/* ── Solutions Grid ─────────────────────────────────────────────────────── */

.sl-grid-section {
  background-color: var(--color-bg-alt);
}

.sl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

/* ── Solution Card ──────────────────────────────────────────────────────── */

.sl-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.sl-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
  border-color: var(--color-blue-200);
}

/* Hidden state — toggled by JS */
.sl-card--hidden {
  display: none;
}

/* Card header */
.sl-card-header {
  padding: var(--space-5) var(--space-6);
  background: var(--gradient-card);
  border-bottom: 1px solid var(--color-blue-100);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.sl-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.sl-card-meta {
  flex: 1;
  min-width: 0;
}

.sl-card-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

/* Category badge */
.sl-card-cat-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-blue-100);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

/* Pricing tier badge */
.sl-pricing-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

.sl-pricing-badge--open-source {
  background: #d1fae5;
  color: #065f46;
}
.sl-pricing-badge--free {
  background: #ccfbf1;
  color: #0f766e;
}
.sl-pricing-badge--freemium {
  background: #dbeafe;
  color: #1e40af;
}
.sl-pricing-badge--starter {
  background: #ede9fe;
  color: #5b21b6;
}
.sl-pricing-badge--pro {
  background: #fef3c7;
  color: #92400e;
}
.sl-pricing-badge--enterprise {
  background: #fee2e2;
  color: #991b1b;
}

.sl-card-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-card-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: var(--leading-snug);
}

/* Card body */
.sl-card-body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sl-card-desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
}

.sl-card-features {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sl-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  margin-bottom: 0;
}

.sl-card-features li::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E")
    center/contain no-repeat;
  flex-shrink: 0;
}

/* Card footer */
.sl-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-gray-50);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ── No-Results Message ─────────────────────────────────────────────────── */

.sl-no-results {
  text-align: center;
  padding: var(--space-16) var(--space-8);
}

.sl-no-results-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.sl-no-results-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.sl-no-results-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 30rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .sl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sl-filter-panel {
    position: static; /* don't stick on small viewports — saves vertical space */
  }

  .sl-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sl-filter-row-label {
    min-width: auto;
    margin-bottom: var(--space-1);
  }

  .sl-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .sl-hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .sl-hero-stat-sep {
    width: 4rem;
    height: 1px;
  }

  .sl-card-name {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .sl-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ Page Template — Custom FAQ Groups and Navigation
   ========================================================================== */

.faq-hero {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.faq-hero .about-hero-title,
.faq-hero .about-hero-subtitle,
.faq-hero .about-hero-eyebrow {
  color: var(--color-white);
}

.faq-hero .text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-hero .btn.btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
  background: transparent;
}

.faq-hero .btn.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.faq-hero .btn.btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.faq-hero .btn.btn-primary:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.faq-groups-section {
  padding: var(--space-24) 0;
}

.faq-nav {
  margin-bottom: var(--space-16);
  text-align: center;
}

.faq-nav-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
}

.faq-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.faq-nav-link {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-white);
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.faq-nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--color-white);
  text-decoration: none;
}

.faq-nav-link.bg-blue {
  background-color: var(--color-primary);
}

.faq-nav-link.bg-green {
  background-color: #10b981;
}

.faq-nav-link.bg-amber {
  background-color: var(--color-accent);
}

.faq-nav-link.bg-purple {
  background-color: #7c3aed;
}

.faq-nav-link.bg-teal {
  background-color: #0d9488;
}

.faq-nav-link.bg-coral {
  background-color: #ef4444;
}

.faq-groups-list {
  max-width: 64rem;
  margin-inline: auto;
}

.faq-group {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-group-header {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.faq-group-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-white);
}

.faq-group-icon.bg-blue {
  background-color: var(--color-primary);
}

.faq-group-icon.bg-green {
  background-color: #10b981;
}

.faq-group-icon.bg-amber {
  background-color: var(--color-accent);
}

.faq-group-icon.bg-purple {
  background-color: #7c3aed;
}

.faq-group-icon.bg-teal {
  background-color: #0d9488;
}

.faq-group-icon.bg-coral {
  background-color: #ef4444;
}

.faq-group-content {
  flex: 1;
}

.faq-group-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.faq-group-subtitle {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  margin: 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-accordion .faq-item {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-accordion .faq-question {
  background: none;
  border: none;
  padding: var(--space-4) var(--space-5);
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  transition: background-color var(--transition-fast);
}

.faq-accordion .faq-question:hover {
  background-color: var(--color-gray-100);
}

.faq-accordion .faq-question-text {
  flex: 1;
  margin-right: var(--space-4);
}

.faq-accordion .faq-question-icon {
  flex-shrink: 0;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  color: var(--color-primary);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-open {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

.faq-answer-content p {
  margin: 0 0 var(--space-3);
}

.faq-answer-content p:last-child {
  margin: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .faq-nav-links {
    flex-direction: column;
    align-items: center;
  }

  .faq-nav-link {
    padding: var(--space-3) var(--space-6);
  }

  .faq-group-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .faq-group-icon {
    align-self: center;
  }
}

/* ==========================================================================
   Solutions Pagination
   ========================================================================== */

.solutions-pagination {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.solutions-pagination .pagination-summary {
  text-align: center;
  margin: 0 0 var(--space-6);
  color: var(--color-gray-600);
  font-size: var(--text-sm);
}

.solutions-pagination .pagination-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

/* Remove default list styling for pagination */
.solutions-pagination .pagination-nav ul,
.solutions-pagination .pagination-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.solutions-pagination .pagination-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solutions-pagination .pagination-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Ensure only solutions pagination styles apply to this section */
.solutions-pagination .pagination-links .page-numbers,
.solutions-pagination .pagination-links a,
.solutions-pagination .pagination-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 var(--space-3);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-gray-700);
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.solutions-pagination .pagination-links .page-numbers:hover,
.solutions-pagination .pagination-links a:hover {
  background-color: var(--color-blue-50);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.solutions-pagination .pagination-links .current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.solutions-pagination .pagination-links .prev,
.solutions-pagination .pagination-links .next {
  padding: 0 var(--space-4);
  font-weight: var(--font-medium);
}

/* Mobile responsive pagination */
@media (max-width: 640px) {
  .solutions-pagination .pagination-links .prev,
  .solutions-pagination .pagination-links .next {
    min-width: 2.75rem;
    padding: 0 var(--space-2);
    font-size: var(--text-xs);
  }
}

/* No solutions pagination message */
.sl-no-solutions-pagination {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.sl-no-solutions-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.sl-no-solutions-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-800);
  margin: 0 0 var(--space-3);
}

.sl-no-solutions-desc {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  margin: 0 0 var(--space-6);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   URL-Based Filter Styles
   ========================================================================== */

/* Active filter pill styling */
.sl-filter-pill--active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.sl-filter-pill--active:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* Remove indicator for active filters */
.sl-filter-remove {
  margin-left: var(--space-2);
  font-weight: var(--font-bold);
  opacity: 0.7;
}

.sl-filter-pill--active .sl-filter-remove:hover {
  opacity: 1;
}

/* Convert filter pills to link styling */
.sl-filter-pill {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.sl-filter-pill:hover {
  text-decoration: none;
}

/* Active filter summary styling */
.sl-active-filter-summary {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

/* Reset button as link */
.sl-reset-btn {
  text-decoration: none;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.sl-reset-btn:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}
