/* Theme base styles */

/* Tools
Any animations, or functions used throughout the project.
Note: _macros.css needs to be imported into each stylesheet where macros are used and not included here
*/
/* ====================================================================== */
/* Cognistry Theme - Design Tokens                                        */
/* Single source of truth for all CSS custom properties                   */
/* ====================================================================== */

:root {
  /* --- Brand Colors --- */
  --cognistry-primary: #4e0a77;
  --cognistry-secondary: #7b2fa5;
  --cognistry-accent: #0fbf96;

  /* --- Brand Color Variants (10% opacity) --- */
  --cognistry-primary-10: rgba(78, 10, 119, 0.10);
  --cognistry-secondary-10: rgba(123, 47, 165, 0.10);
  --cognistry-accent-10: rgba(15, 191, 150, 0.10);

  /* --- Brand Hover States --- */
  --cognistry-primary-hover: #3d0860;
  --cognistry-secondary-hover: #6a2891;
  --cognistry-accent-hover: #0da883;

  /* --- Semantic Colors --- */
  --cognistry-text: #101828;
  --cognistry-text-muted: #475467;
  --cognistry-bg: #ffffff;
  --cognistry-bg-subtle: #f8fafc;
  --cognistry-border: #e4e7ec;

  /* --- Foreground on Brand Colors --- */
  --cognistry-fg-on-primary: #ffffff;
  --cognistry-fg-on-secondary: #ffffff;
  --cognistry-fg-on-accent: #052e2b;

  /* --- State Colors --- */
  --cognistry-error: #ef4444;
  --cognistry-error-light: #fef2f2;
  --cognistry-error-border: #fecaca;
  --cognistry-success: #22c55e;
  --cognistry-success-light: #f0fdf4;
  --cognistry-success-border: #bbf7d0;
  --cognistry-warning: #f59e0b;
  --cognistry-warning-light: #fffbeb;
  --cognistry-warning-border: #fde68a;
  --cognistry-info: #3b82f6;
  --cognistry-info-light: #eff6ff;
  --cognistry-info-border: #bfdbfe;

  /* --- Disabled States --- */
  --cognistry-disabled-bg: #d0d5dd;
  --cognistry-disabled-text: #98a2b3;
  --cognistry-disabled-border: #d0d5dd;

  /* --- Dark Mode Surfaces --- */
  --cognistry-on-dark-fg: hsl(0 0% 96%);
  --cognistry-on-dark-muted: hsl(0 0% 80%);
  --cognistry-on-dark-border: hsl(0 0% 40%);

  /* --- Spacing Scale (4px base) --- */
  --cognistry-space-1: 0.25rem;   /* 4px */
  --cognistry-space-2: 0.5rem;    /* 8px */
  --cognistry-space-3: 0.75rem;   /* 12px */
  --cognistry-space-4: 1rem;      /* 16px */
  --cognistry-space-6: 1.5rem;    /* 24px */
  --cognistry-space-8: 2rem;      /* 32px */
  --cognistry-space-12: 3rem;     /* 48px */
  --cognistry-space-16: 4rem;     /* 64px */
  --cognistry-space-24: 6rem;     /* 96px */

  /* --- Border Radius --- */
  --cognistry-radius-sm: 0.375rem;  /* 6px */
  --cognistry-radius: 0.5rem;       /* 8px */
  --cognistry-radius-md: 0.65rem;   /* 10px */
  --cognistry-radius-lg: 0.75rem;   /* 12px */
  --cognistry-radius-xl: 1rem;      /* 16px */
  --cognistry-radius-full: 9999px;

  /* --- Shadows / Elevation --- */
  --cognistry-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --cognistry-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --cognistry-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --cognistry-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --cognistry-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 8px 10px rgba(0, 0, 0, 0.04);

  /* --- Button Shadows (brand-tinted) --- */
  --cognistry-shadow-primary: 0 6px 16px rgba(78, 10, 119, 0.14);
  --cognistry-shadow-primary-hover: 0 8px 20px rgba(123, 47, 165, 0.16);
  --cognistry-shadow-accent: 0 6px 16px rgba(15, 191, 150, 0.16);
  --cognistry-shadow-accent-hover: 0 8px 20px rgba(15, 191, 150, 0.18);

  /* --- Typography --- */
  --cognistry-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cognistry-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- Transitions --- */
  --cognistry-transition-fast: 150ms ease;
  --cognistry-transition: 200ms ease;
  --cognistry-transition-slow: 300ms ease;

  /* --- Z-Index Scale --- */
  --cognistry-z-dropdown: 1000;
  --cognistry-z-sticky: 1020;
  --cognistry-z-fixed: 1030;
  --cognistry-z-modal-backdrop: 1040;
  --cognistry-z-modal: 1050;
  --cognistry-z-popover: 1060;
  --cognistry-z-tooltip: 1070;

  /* --- Focus Ring --- */
  --cognistry-ring: var(--cognistry-accent);
  --cognistry-ring-offset: 2px;
  --cognistry-ring-width: 2px;

  /* --- Card & Panel Styles --- */
  --cognistry-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--cognistry-bg-subtle) 100%);
  --cognistry-card-shadow: 0 2px 6px rgba(16, 24, 40, 0.04), 0 14px 32px rgba(16, 24, 40, 0.06);
  --cognistry-card-shadow-hover: 0 10px 24px rgba(16, 24, 40, 0.08), 0 24px 46px rgba(78, 10, 119, 0.10);
  --cognistry-card-border-hover: rgba(78, 10, 119, 0.22);

  /* --- Overlay --- */
  --cognistry-overlay-dark: rgba(15, 23, 42, 0.88);
  --cognistry-overlay-light: rgba(255, 255, 255, 0.08);

  /* --- Dropdown & Menu Shadows --- */
  --cognistry-shadow-dropdown: 0 18px 40px rgba(16, 24, 40, 0.12);
  --cognistry-shadow-dropdown-sm: 0 8px 20px rgba(16, 24, 40, 0.10);

  /* --- Header / Frosted Glass --- */
  --cognistry-header-bg: rgba(255, 255, 255, 0.88);
  --cognistry-header-border: rgba(78, 10, 119, 0.08);
  --cognistry-header-shadow: 0 6px 24px rgba(16, 24, 40, 0.04);

  /* --- Image / Card Shadows (neutral) --- */
  --cognistry-shadow-image: 0 8px 20px rgba(16, 24, 40, 0.08), 0 24px 48px rgba(16, 24, 40, 0.08);

  /* --- Table Styles --- */
  --cognistry-table-row-hover: rgba(78, 10, 119, 0.03);

  /* --- Button Styles (unified) --- */
  /* NOTE: Gradient buttons deprecated - use solid colors for consistent hover states */
  --cognistry-btn-min-height: 48px;
  --cognistry-btn-min-height-sm: 44px;
  --cognistry-btn-padding: 0 1.25rem;
  --cognistry-btn-font-weight: 700;
  --cognistry-btn-font-size: 0.95rem;
  --cognistry-btn-hover-lift: -2px;

  /* --- Eyebrow / Label Styles (unified) --- */
  --cognistry-eyebrow-size: 0.8rem;
  --cognistry-eyebrow-weight: 700;
  --cognistry-eyebrow-spacing: 0.12em;
  --cognistry-eyebrow-color: var(--cognistry-secondary);

  /* --- Card Title Styles (unified) --- */
  --cognistry-card-title-size: 1.35rem;
  --cognistry-card-title-spacing: -0.02em;
  --cognistry-card-title-line-height: 1.2;
  --cognistry-card-hover-lift: -4px;

  /* --- Icon Container Styles (unified) --- */
  --cognistry-icon-size: 50px;
  --cognistry-icon-radius: 14px;
  --cognistry-icon-bg: var(--cognistry-primary-10);

  /* --- Section Spacing (unified) --- */
  --cognistry-section-padding-y: 80px;
  --cognistry-section-padding-y-lg: 96px;
  --cognistry-section-padding-x: 24px;
  --cognistry-section-padding-y-mobile: 56px;
  --cognistry-section-padding-x-mobile: 20px;

  /* ============================================================ */
  /* PREMIUM VISUAL EFFECTS                                        */
  /* ============================================================ */

  /* --- Gradient Backgrounds --- */
  --cognistry-gradient-hero: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(78, 10, 119, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(123, 47, 165, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(15, 191, 150, 0.06) 0%, transparent 40%),
    var(--cognistry-bg);
  
  --cognistry-gradient-mesh:
    radial-gradient(at 40% 20%, rgba(78, 10, 119, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(123, 47, 165, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(15, 191, 150, 0.04) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(78, 10, 119, 0.04) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(123, 47, 165, 0.06) 0px, transparent 50%);

  /* --- Gradient Text --- */
  --cognistry-gradient-text: linear-gradient(135deg, var(--cognistry-primary) 0%, var(--cognistry-secondary) 50%, var(--cognistry-accent) 100%);
  --cognistry-gradient-text-subtle: linear-gradient(135deg, var(--cognistry-primary) 0%, var(--cognistry-secondary) 100%);

  /* --- Premium Glows --- */
  --cognistry-glow-primary: 0 0 40px rgba(78, 10, 119, 0.15), 0 0 80px rgba(78, 10, 119, 0.08);
  --cognistry-glow-accent: 0 0 40px rgba(15, 191, 150, 0.15), 0 0 80px rgba(15, 191, 150, 0.08);
  --cognistry-glow-soft: 0 0 60px rgba(78, 10, 119, 0.05);

  /* --- Premium Image Shadows --- */
  --cognistry-shadow-product: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 12px 24px -8px rgba(78, 10, 119, 0.10),
    0 0 0 1px rgba(78, 10, 119, 0.05);
  
  --cognistry-shadow-product-hover:
    0 35px 60px -15px rgba(0, 0, 0, 0.18),
    0 20px 40px -10px rgba(78, 10, 119, 0.15),
    0 0 0 1px rgba(78, 10, 119, 0.08);

  /* --- Glass Effects --- */
  --cognistry-glass-bg: rgba(255, 255, 255, 0.7);
  --cognistry-glass-border: rgba(255, 255, 255, 0.5);
  --cognistry-glass-blur: blur(12px);

  /* --- Premium Badge --- */
  --cognistry-badge-bg: linear-gradient(135deg, rgba(78, 10, 119, 0.08) 0%, rgba(123, 47, 165, 0.04) 100%);
  --cognistry-badge-border: rgba(78, 10, 119, 0.15);
  --cognistry-badge-glow: 0 0 20px rgba(78, 10, 119, 0.08);

  /* --- Ambient Orbs (for background decoration) --- */
  --cognistry-orb-primary: radial-gradient(circle, rgba(78, 10, 119, 0.15) 0%, transparent 70%);
  --cognistry-orb-secondary: radial-gradient(circle, rgba(123, 47, 165, 0.12) 0%, transparent 70%);
  --cognistry-orb-accent: radial-gradient(circle, rgba(15, 191, 150, 0.10) 0%, transparent 70%);

  /* --- Button Shadows (simplified) --- */
  --cognistry-shadow-cta: 0 4px 12px rgba(78, 10, 119, 0.18);
  --cognistry-shadow-cta-hover: 0 6px 16px rgba(78, 10, 119, 0.22);

  /* --- Grid/Dot Patterns --- */
  --cognistry-pattern-dots: radial-gradient(circle, rgba(78, 10, 119, 0.08) 1px, transparent 1px);
  --cognistry-pattern-grid: linear-gradient(rgba(78, 10, 119, 0.03) 1px, transparent 1px),
                            linear-gradient(90deg, rgba(78, 10, 119, 0.03) 1px, transparent 1px);
}
/* Generic
This is where reset, normalize & box-sizing styles go.
*/

*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Objects
Non-cosmetic design patterns including grid and layout classes)
*/

/* ====================================================================== */
/* Cognistry Theme - Layout System                                        */
/* Modern HubSpot DnD grid with standardized spacing rhythm               */
/* ====================================================================== */

:root {
  --column-gap: 24px;
  --content-max-width: 1280px;
  --content-padding-inline: 24px;

  /* Sitewide vertical rhythm */
  --section-space-tight: 48px;
  --section-space-base: 64px;
  --section-space-loose: 80px;
}

/* ====================================================================== */
/* Base Elements                                                          */
/* ====================================================================== */

html {
  box-sizing: border-box;
}

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

/* ====================================================================== */
/* Page Structure                                                         */
/* ====================================================================== */

body {
  margin: 0;
  width: 100%;
}

.body-wrapper {
  min-height: 100vh;
  width: 100%;
}

.body-container-wrapper {
  width: 100%;
}

/* ====================================================================== */
/* Content Containers                                                     */
/* ====================================================================== */

.content-wrapper,
.page-center,
.container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-max-width);
  padding-left: var(--content-padding-inline);
  padding-right: var(--content-padding-inline);
  width: 100%;
}

/* ====================================================================== */
/* HubSpot DnD Sections - Full viewport width                             */
/* ====================================================================== */

.dnd-section {
  position: relative;
  width: 100%;
}

/* Row inside section - centered with max-width */
.dnd-section > .row-fluid,
.dnd-section > .dnd-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: var(--content-max-width);
  padding-left: var(--content-padding-inline);
  padding-right: var(--content-padding-inline);
  width: 100%;
}

/* ====================================================================== */
/* HubSpot DnD Columns                                                    */
/* ====================================================================== */

.dnd-column {
  flex: 1 1 100%;
  min-width: 0;
  padding: 0;
}

/* Desktop: Column widths based on span class */
@media (min-width: 768px) {
  .dnd-section > .row-fluid,
  .dnd-section > .dnd-row {
    flex-wrap: nowrap;
    gap: var(--column-gap);
  }

  .dnd-column {
    flex: 1 1 0;
  }

  .dnd-column.span1 { flex: 0 0 calc(8.333% - var(--column-gap) * 11 / 12); }
  .dnd-column.span2 { flex: 0 0 calc(16.666% - var(--column-gap) * 10 / 12); }
  .dnd-column.span3 { flex: 0 0 calc(25% - var(--column-gap) * 9 / 12); }
  .dnd-column.span4 { flex: 0 0 calc(33.333% - var(--column-gap) * 8 / 12); }
  .dnd-column.span5 { flex: 0 0 calc(41.666% - var(--column-gap) * 7 / 12); }
  .dnd-column.span6 { flex: 0 0 calc(50% - var(--column-gap) * 6 / 12); }
  .dnd-column.span7 { flex: 0 0 calc(58.333% - var(--column-gap) * 5 / 12); }
  .dnd-column.span8 { flex: 0 0 calc(66.666% - var(--column-gap) * 4 / 12); }
  .dnd-column.span9 { flex: 0 0 calc(75% - var(--column-gap) * 3 / 12); }
  .dnd-column.span10 { flex: 0 0 calc(83.333% - var(--column-gap) * 2 / 12); }
  .dnd-column.span11 { flex: 0 0 calc(91.666% - var(--column-gap) * 1 / 12); }
  .dnd-column.span12 { flex: 0 0 100%; }
}

/* ====================================================================== */
/* Legacy Bootstrap Grid (for compatibility)                              */
/* ====================================================================== */

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--column-gap);
  width: 100%;
}

.row-fluid [class*="span"] {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: nowrap;
  }

  .row-fluid .span1 { flex: 0 0 calc(8.333% - var(--column-gap) * 11 / 12); }
  .row-fluid .span2 { flex: 0 0 calc(16.666% - var(--column-gap) * 10 / 12); }
  .row-fluid .span3 { flex: 0 0 calc(25% - var(--column-gap) * 9 / 12); }
  .row-fluid .span4 { flex: 0 0 calc(33.333% - var(--column-gap) * 8 / 12); }
  .row-fluid .span5 { flex: 0 0 calc(41.666% - var(--column-gap) * 7 / 12); }
  .row-fluid .span6 { flex: 0 0 calc(50% - var(--column-gap) * 6 / 12); }
  .row-fluid .span7 { flex: 0 0 calc(58.333% - var(--column-gap) * 5 / 12); }
  .row-fluid .span8 { flex: 0 0 calc(66.666% - var(--column-gap) * 4 / 12); }
  .row-fluid .span9 { flex: 0 0 calc(75% - var(--column-gap) * 3 / 12); }
  .row-fluid .span10 { flex: 0 0 calc(83.333% - var(--column-gap) * 2 / 12); }
  .row-fluid .span11 { flex: 0 0 calc(91.666% - var(--column-gap) * 1 / 12); }
  .row-fluid .span12 { flex: 0 0 100%; }
}

/* ====================================================================== */
/* Responsive Breakpoints                                                 */
/* ====================================================================== */

@media (min-width: 1200px) {
  :root {
    --column-gap: 32px;
    --content-padding-inline: 40px;
  }
}

@media (min-width: 1600px) {
  :root {
    --content-max-width: 1400px;
    --content-padding-inline: 48px;
  }
}

@media (max-width: 991px) {
  :root {
    --column-gap: 20px;
    --content-padding-inline: 24px;

    --section-space-tight: 40px;
    --section-space-base: 56px;
    --section-space-loose: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --column-gap: 16px;
    --content-padding-inline: 20px;

    --section-space-tight: 32px;
    --section-space-base: 48px;
    --section-space-loose: 64px;
  }

  .dnd-section > .row-fluid,
  .dnd-section > .dnd-row,
  .row-fluid {
    flex-direction: column;
    gap: 24px;
  }

  .dnd-column,
  .row-fluid [class*="span"] {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

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

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.content-narrow { margin-left: auto; margin-right: auto; max-width: 720px; }
.content-medium { margin-left: auto; margin-right: auto; max-width: 960px; }
/* ====================================================================== */
/* Cognistry Theme - DnD Container Styling                                */
/* Standardized spacing behavior                                           */
/* ====================================================================== */

/* Content wrapper base */
.content-wrapper {
  margin: 0 auto;
  width: 100%;
}

/* DnD section row centering */
.dnd-section > .row-fluid,
.dnd-section > .dnd-row {
  margin: 0 auto;
}

/* DnD column spacing - modules control internal spacing */
.dnd-section .dnd-column {
  padding-left: 0;
  padding-right: 0;
}

/* Section positioning for backgrounds */
.dnd-section {
  position: relative;
}

/* Vertical alignment options for sections */
.dnd-section[class*="vertical-align-middle"] > .row-fluid,
.dnd-section[class*="vertical-align-middle"] > .dnd-row {
  align-items: center;
}

.dnd-section[class*="vertical-align-bottom"] > .row-fluid,
.dnd-section[class*="vertical-align-bottom"] > .dnd-row {
  align-items: flex-end;
}

/* ====================================================================== */
/* Sitewide Section Rhythm                                                 */
/* ====================================================================== */

/*
  Important:
  Do not auto-add vertical padding based on background styles.
  Section spacing should come from explicit section padding in templates/modules,
  not from whether a background color/image happens to exist.
*/

/* Optional utility class for consistent default sections */
.cg-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.cg-section--tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

.cg-section--loose {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 991px) {
  .cg-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .cg-section--tight {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cg-section--loose {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 767px) {
  .cg-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cg-section--tight {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .cg-section--loose {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* Elements
Base HTML elements are styled in this section (<body>, <h1>, <a>, <p>, <button> etc.)
*/

/* The overflow-wrap is meant to prevent long/large words from breaking the mobile responsiveness of a page (e.g. horizontal scrolling). It is preferred to reduce font sizes on mobile to address this, with this CSS specifically helping with extreme scenarios where a reduction in font size is not possible. */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--cognistry-bg);
  color: var(--cognistry-text);
  font-family: var(--cognistry-font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Handles word breaking for a few specific languages which handle breaks in words differently. If your content is not translated into these languages, you can safely remove this. */

html[lang^="ja"] body,
html[lang^="zh"] body,
html[lang^="ko"] body {
  line-break: strict;
  overflow-wrap: normal;
  word-break: break-all;
}

/* Paragraphs */

p {
  color: var(--cognistry-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Anchors */

a {
  color: var(--cognistry-accent);
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--cognistry-secondary);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--cognistry-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--cognistry-text);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.3;
}

h6 {
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Lists */

ul,
ol {
  color: var(--cognistry-text-muted);
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

ul li,
ol li {
  margin-bottom: 0.45rem;
}

ul ul,
ol ul,
ul ol,
ol ol {
  margin: 0.5rem 0 0;
}

ul.no-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Strong / emphasis */

strong,
b {
  color: var(--cognistry-text);
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

/* Small text */

small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cognistry-text-muted);
}

/* Code blocks */

pre {
  background: var(--cognistry-bg-subtle);
  border: 1px solid var(--cognistry-border);
  border-radius: 12px;
  color: var(--cognistry-text);
  margin: 0 0 1.5rem;
  overflow: auto;
  padding: 1rem 1.25rem;
}

code {
  background: var(--cognistry-primary-10);
  border-radius: 6px;
  color: var(--cognistry-primary);
  display: inline-block;
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  vertical-align: baseline;
}

pre code {
  background: transparent;
  color: inherit;
  display: inline;
  padding: 0;
}

/* Blockquotes */

blockquote {
  background: var(--cognistry-primary-10);
  border-left: 4px solid var(--cognistry-primary);
  border-radius: 0 12px 12px 0;
  color: var(--cognistry-text);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
}

blockquote p {
  color: var(--cognistry-text);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal rules */

hr {
  border: none;
  border-bottom: 1px solid var(--cognistry-border);
  margin: 2rem 0;
}

/* Image alt text */

img {
  font-size: 0.583rem;
  max-width: 100%;
  word-break: normal;
}

/* Selection */

::selection {
  background: var(--cognistry-primary-10);
  color: var(--cognistry-text);
}

/* Responsive adjustments */

@media (max-width: 767px) {
  body {
    line-height: 1.6;
  }

  p,
  ul,
  ol {
    font-size: 0.975rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 0.85rem;
  }
}
button,
.button,
.hs-button,
.hs-form input[type="submit"],
.hs-form input[type="button"] {
  appearance: none;
  background: var(--cognistry-primary);
  border: none;
  border-radius: var(--cognistry-radius-full);
  box-shadow: var(--cognistry-shadow-cta);
  color: var(--cognistry-fg-on-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: var(--cognistry-btn-font-size);
  font-weight: var(--cognistry-btn-font-weight);
  line-height: 1.1;
  min-height: var(--cognistry-btn-min-height);
  padding: var(--cognistry-btn-padding);
  text-align: center;
  text-decoration: none;
  transition:
    background var(--cognistry-transition),
    transform var(--cognistry-transition),
    box-shadow var(--cognistry-transition);
  white-space: normal;
}

button:hover,
.button:hover,
.hs-button:hover,
.hs-form input[type="submit"]:hover,
.hs-form input[type="button"]:hover {
  background: var(--cognistry-secondary);
  box-shadow: var(--cognistry-shadow-cta-hover);
  color: var(--cognistry-fg-on-primary);
  text-decoration: none;
  transform: translateY(-2px);
}

button:focus,
.button:focus,
.hs-button:focus,
.hs-form input[type="submit"]:focus,
.hs-form input[type="button"]:focus {
  outline: none;
}

button:focus-visible,
.button:focus-visible,
.hs-button:focus-visible,
.hs-form input[type="submit"]:focus-visible,
.hs-form input[type="button"]:focus-visible {
  box-shadow:
    0 0 0 4px var(--cognistry-accent-10),
    var(--cognistry-shadow-primary);
  outline: none;
}

button:active,
.button:active,
.hs-button:active,
.hs-form input[type="submit"]:active,
.hs-form input[type="button"]:active {
  transform: translateY(0);
  box-shadow: var(--cognistry-shadow);
}

button:disabled,
.button:disabled,
.hs-button:disabled,
.hs-form input[type="submit"]:disabled,
.hs-form input[type="button"]:disabled {
  background-color: var(--cognistry-disabled-bg);
  border-color: var(--cognistry-disabled-border);
  box-shadow: none;
  color: var(--cognistry-disabled-text);
  cursor: not-allowed;
  transform: none;
}

/* Secondary / ghost button patterns */

.button--secondary,
.button-secondary,
.hs-button.secondary,
.button.is-secondary {
  background: transparent;
  border: 1px solid var(--cognistry-primary);
  box-shadow: none;
  color: var(--cognistry-primary);
}

.button--secondary:hover,
.button-secondary:hover,
.hs-button.secondary:hover,
.button.is-secondary:hover {
  background: var(--cognistry-primary-10);
  border-color: var(--cognistry-secondary);
  color: var(--cognistry-secondary);
  box-shadow: none;
}

.button--accent,
.button-accent,
.button.is-accent {
  background: var(--cognistry-accent);
  border-color: var(--cognistry-accent);
  box-shadow: var(--cognistry-shadow-accent);
  color: var(--cognistry-fg-on-accent);
}

.button--accent:hover,
.button-accent:hover,
.button.is-accent:hover {
  background: var(--cognistry-accent-hover);
  border-color: var(--cognistry-accent-hover);
  box-shadow: var(--cognistry-shadow-accent-hover);
  color: var(--cognistry-fg-on-accent);
}

/* Text / link-style button */

.no-button,
.no-button:hover,
.no-button:focus,
.no-button:active {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--cognistry-accent);
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  line-height: inherit;
  margin-bottom: 0;
  min-height: auto;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: color var(--cognistry-transition);
  transform: none;
}

.no-button:hover,
.no-button:focus,
.no-button:active {
  color: var(--cognistry-secondary);
  text-decoration: underline;
}

/* Button groups */

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* Responsive */

@media (max-width: 767px) {
  button,
  .button,
  .hs-button,
  .hs-form input[type="submit"],
  .hs-form input[type="button"] {
    width: auto;
    min-height: var(--cognistry-btn-min-height-sm);
    padding: var(--cognistry-btn-padding);
  }

  .button-group {
    gap: 0.75rem;
  }
}
/* Form layout */

.hs-form-field {
  margin-bottom: 1.4rem;
}

/* Labels */

form label {
  color: var(--cognistry-text);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* Form Title */

.form-title {
  margin-bottom: 0;
}

/* Help text */

form legend {
  font-size: 0.875rem;
  color: var(--cognistry-text-muted);
}

/* Inputs */

form input[type=text],
form input[type=search],
form input[type=email],
form input[type=password],
form input[type=tel],
form input[type=number],
form input[type=file],
form select,
form textarea {
  appearance: none;
  background: var(--cognistry-bg);
  border: 1px solid var(--cognistry-border);
  border-radius: var(--cognistry-radius-md);
  color: var(--cognistry-text);
  display: block;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.65rem 0.75rem;
  transition: border-color var(--cognistry-transition-fast), box-shadow var(--cognistry-transition-fast);
  width: 100%;
}

/* Focus state */

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--cognistry-primary);
  box-shadow: 0 0 0 3px var(--cognistry-primary-10);
  outline: none;
}

/* Placeholder */

::placeholder {
  color: var(--cognistry-disabled-text);
}

/* Textarea */

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

/* Fieldsets */

form fieldset {
  max-width: 100% !important;
}

/* Checkbox / radio groups */

form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

form .inputs-list > li {
  display: block;
  margin: 0.6rem 0;
}

form .inputs-list input,
form .inputs-list span {
  vertical-align: middle;
}

form input[type=checkbox],
form input[type=radio] {
  accent-color: var(--cognistry-primary);
  cursor: pointer;
  margin-right: 0.35rem;
}

/* Date picker */

.hs-dateinput {
  position: relative;
}

.hs-dateinput:before {
  content: "\01F4C5";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

/* Date picker table */

.fn-date-picker .pika-table thead th {
  color: var(--cognistry-fg-on-primary);
}

.fn-date-picker td.is-selected .pika-button {
  border-radius: var(--cognistry-radius-sm);
  box-shadow: none;
}

.fn-date-picker td .pika-button:hover,
.fn-date-picker td .pika-button:focus {
  border-radius: var(--cognistry-radius-sm) !important;
  color: var(--cognistry-fg-on-primary);
}

/* File picker */

form input[type=file] {
  background-color: transparent;
  border: none;
  padding: 0;
}

/* Rich text inside forms */

form .hs-richtext,
form .hs-richtext p {
  color: var(--cognistry-text-muted);
  font-size: 0.875rem;
  margin: 0 0 1.4rem;
}

form .hs-richtext img {
  max-width: 100% !important;
}

/* GDPR */

.legal-consent-container .hs-form-booleancheckbox-display > span,
.legal-consent-container .hs-form-booleancheckbox-display > span p {
  margin-left: 1rem !important;
}

/* Validation */

.hs-form-required {
  color: var(--cognistry-error);
}

.hs-input.invalid.error {
  border-color: var(--cognistry-error);
}

.hs-error-msg {
  color: var(--cognistry-error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* Submit button spacing */

form input[type=submit],
form .hs-button {
  margin-top: 0.5rem;
}

/* Captcha */

.grecaptcha-badge {
  margin: 0 auto;
}

/* Search module compatibility */



.body-container-wrapper .hs-search-field__button {
  padding: 12px;
}

.body-container-wrapper .hs-search-field__bar--button-inline .hs-search-field__button {
  margin-left: 6px;
  margin-bottom: 0;
}

.body-container-wrapper .hs-search-field__button svg {
  height: 15px;
  fill: var(--cognistry-fg-on-primary);
}

.body-container-wrapper .hs-search-field__bar > form > .hs-search-field__input {
  padding: 10px;
}

.body-container-wrapper .hs-search-field__suggestions li a {
  color: var(--cognistry-text);
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: background-color var(--cognistry-transition);
}

.body-container-wrapper .hs-search-field__suggestions li a:hover {
  background: var(--cognistry-primary-10);
}


/* Table */

table {
  background: var(--cognistry-bg);
  border: 1px solid var(--cognistry-border);
  border-collapse: collapse;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  overflow-wrap: break-word;
  width: 100%;
}

/* Table cells */

td,
th {
  border-bottom: 1px solid var(--cognistry-border);
  color: var(--cognistry-text-muted);
  padding: 0.95rem 1rem;
  vertical-align: top;
}

/* Table header */

thead th {
  background: var(--cognistry-primary-10);
  color: var(--cognistry-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: bottom;
}

/* Table body */

tbody tr {
  transition: background-color var(--cognistry-transition);
}

tbody tr:hover {
  background: var(--cognistry-table-row-hover);
}

/* Table footer */

tfoot td {
  background: var(--cognistry-bg-subtle);
  color: var(--cognistry-text);
  font-weight: 600;
}

/* Responsive table behavior */

@media (max-width: 767px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  td,
  th {
    padding: 0.8rem 0.9rem;
  }
}

/* Components
Specific pieces of UI that are stylized. Typically used for global partial styling
*/

/* ==========================================================================
   Header Component
   ========================================================================== */

/* Header shell
   ========================================================================== */

.header {
  background: var(--cognistry-header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--cognistry-header-border);
  box-shadow: var(--cognistry-header-shadow);
  padding: 0.75rem 0; /* ↓ reduced from 1rem */
  position: sticky;
  top: 0;
  z-index: var(--cognistry-z-sticky);
}

.header .dnd-section {
  padding: 0;
}

.header__container.content-wrapper {
  max-width: 100%;
}

.header__container .header-main-wrap {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

/* Skip link (accessibility)
   ========================================================================== */

.header__skip {
  height: 1px;
  left: -1000px;
  overflow: hidden;
  position: absolute;
  text-align: left;
  top: -1000px;
  width: 1px;
}

.header__skip:hover,
.header__skip:focus,
.header__skip:active {
  background: var(--cognistry-bg);
  border-radius: var(--cognistry-radius-md);
  box-shadow: var(--cognistry-shadow-dropdown-sm);
  color: var(--cognistry-primary);
  height: auto;
  left: 1rem;
  overflow: visible;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 200;
}

/* Logo
   ========================================================================== */

.header__logo {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: auto;
  max-width: 180px;
  overflow: hidden;
}

.header__logo img {
  max-width: 100%;
}

.header__logo .logo-company-name {
  color: var(--cognistry-text);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.header__logo--main {
  padding-top: 0;
}

/* Header columns and rows
   ========================================================================== */

.header__column {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.header__row-1 {
  display: none;
}

.header__row-2 {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Navigation container
   ========================================================================== */

.header__navigation {
  display: none;
}

/* Mobile toggle button
   ========================================================================== */

.header__navigation--toggle {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  border: none;
  cursor: pointer;
  height: 44px;
  padding: 0;
  width: 44px;
}

.header__navigation--toggle:hover,
.header__navigation--toggle:focus {
  opacity: 0.7;
}

.header__navigation--toggle:focus-visible {
  outline: 2px solid var(--cognistry-primary);
  outline-offset: 2px;
  border-radius: var(--cognistry-radius-sm);
}

.header__close--toggle {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M6 18L18 6' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  border: none;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 0;
  width: 44px;
}

.header__close--toggle.show {
  display: block;
}

.header__close--toggle:focus-visible {
  outline: 2px solid var(--cognistry-primary);
  outline-offset: 2px;
  border-radius: var(--cognistry-radius-sm);
}

/* Mobile navigation panel
   ========================================================================== */

@media (max-width: 767px) {
  .header__container .header-main-wrap {
    flex-wrap: wrap;
  }

  .header__column {
    order: 1;
  }

  .header__navigation.open {
    background-color: var(--cognistry-header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--cognistry-border);
    display: block;
    flex-basis: 100%;
    max-height: 70vh;
    order: 2;
    overflow-y: auto;
    padding: 0.5rem 0;
    width: 100%;
  }

  .header__navigation--toggle.hide {
    display: none;
  }

  .header__language-switcher--toggle,
  .header__search--toggle {
    display: none;
  }
}

/* Desktop layout
   ========================================================================== */

@media (min-width: 768px) {
  .header__navigation {
    display: block;
  }

  .header__navigation--toggle,
  .header__close--toggle,
  .header__language-switcher--toggle,
  .header__search--toggle {
    display: none;
  }

  .header__row-2 {
    gap: 1rem;
  }
}

@media (min-width: 1150px) {
  .header__logo {
    max-width: 210px;
  }

  .header__container .header-main-wrap {
    gap: 2rem;
  }
}

/* Search bar (optional)
   ========================================================================== */

.header__search {
  display: none;
  padding: 0 1rem;
  width: auto;
}

.header__search .hs-search-field__input {
  background-color: var(--cognistry-bg);
  border: 1px solid var(--cognistry-border);
  border-radius: 999px;
  box-shadow: none;
  color: var(--cognistry-text);
  height: 44px;
  padding: 0 2.5rem 0 1rem;
}

.header__search .hs-search-field__input:focus {
  border-color: var(--cognistry-primary);
  box-shadow: 0 0 0 var(--cognistry-ring-width) var(--cognistry-primary-10);
  outline: none;
}

/* Language switcher (optional)
   ========================================================================== */

.header__language-switcher {
  display: none;
}

.header__language-switcher .lang_list_class {
  background: var(--cognistry-bg);
  border: 1px solid var(--cognistry-border);
  border-radius: var(--cognistry-radius-lg);
  box-shadow: var(--cognistry-shadow-dropdown);
}

.header__language-switcher .lang_list_class li a {
  color: var(--cognistry-text);
  display: block;
  padding: 0.5rem 0.75rem;
}

.header__language-switcher .lang_list_class li:hover a {
  background: var(--cognistry-primary-10);
  color: var(--cognistry-primary);
}
/* Menu and simple menu */

.hs-menu-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding-left: 0;
  gap: 0.5rem;
}

.hs-menu-wrapper li {
  margin: 0;
  padding: 0;
}

.hs-menu-wrapper a {
  color: var(--cognistry-text);
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hs-menu-wrapper a:hover,
.hs-menu-wrapper a:focus {
  background: var(--cognistry-primary-10);
  color: var(--cognistry-primary);
  text-decoration: none;
}

.hs-menu-wrapper a:focus-visible {
  outline: 2px solid var(--cognistry-accent);
  outline-offset: 2px;
}

/* Current/active nav item */

.hs-menu-wrapper .hs-menu-item.active-branch > a,
.hs-menu-wrapper .hs-menu-item.active > a,
.hs-menu-wrapper .hs-menu-item.hs-item-has-children.active-branch > a {
  background: var(--cognistry-primary-10);
  color: var(--cognistry-primary);
}

/* Horizontal menu */

.hs-menu-wrapper.hs-menu-flow-horizontal .hs-menu-children-wrapper {
  flex-direction: column;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-horizontal ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .hs-menu-wrapper a {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    width: 100%;
  }
}

/* Vertical menu */

.hs-menu-wrapper.hs-menu-flow-vertical ul {
  flex-direction: column;
  gap: 0.25rem;
}

/* Flyouts */

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts ul {
  display: inline-flex;
}

@media (max-width: 767px) {
  .hs-menu-wrapper.hs-menu-flow-vertical ul {
    display: flex;
  }
}

.hs-menu-wrapper.flyouts .hs-item-has-children {
  position: relative;
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper {
  left: -9999px;
  opacity: 0;
  position: absolute;
  top: calc(100% + 10px);
  min-width: 220px;
  background: var(--cognistry-bg);
  border: 1px solid var(--cognistry-border);
  border-radius: var(--cognistry-radius-xl);
  box-shadow: var(--cognistry-shadow-dropdown);
  padding: 0.45rem;
  gap: 0.15rem;
  z-index: var(--cognistry-z-dropdown);
  transition: opacity var(--cognistry-transition), transform var(--cognistry-transition);
  transform: translateY(6px);
}

.hs-menu-wrapper.flyouts .hs-menu-children-wrapper a {
  border-radius: 12px;
  display: flex;
  padding: 0.75rem 0.9rem;
  white-space: nowrap;
  width: 100%;
}

.hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
.hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:focus-within > .hs-menu-children-wrapper {
  left: 0;
  opacity: 1;
  top: calc(100% + 10px);
  transform: translateY(0);
}

.hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
.hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:focus-within > .hs-menu-children-wrapper {
  left: calc(100% + 10px);
  opacity: 1;
  top: 0;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hs-menu-wrapper.flyouts .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-horizontal.flyouts .hs-item-has-children:focus-within > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:hover > .hs-menu-children-wrapper,
  .hs-menu-wrapper.hs-menu-flow-vertical.flyouts .hs-item-has-children:focus-within > .hs-menu-children-wrapper {
    left: 0;
    opacity: 1;
    position: relative;
    top: auto;
    transform: none;
    min-width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
  }
}
/* CTA, logo, and rich text images */

.hs_cos_wrapper_type_cta img,
.hs_cos_wrapper_type_logo img,
.hs_cos_wrapper_type_rich_text img {
  border-radius: 0;
  height: auto;
  max-width: 100%;
}

/* Rich text defaults inside HubSpot wrappers */

.hs_cos_wrapper_type_rich_text p,
.hs_cos_wrapper_type_rich_text li {
  color: var(--cognistry-text-muted);
}

.hs_cos_wrapper_type_rich_text h1,
.hs_cos_wrapper_type_rich_text h2,
.hs_cos_wrapper_type_rich_text h3,
.hs_cos_wrapper_type_rich_text h4,
.hs_cos_wrapper_type_rich_text h5,
.hs_cos_wrapper_type_rich_text h6 {
  color: var(--cognistry-text);
}

/* Default spacing polish for embedded modules */

.hs_cos_wrapper_type_rich_text > *:first-child,
.hs_cos_wrapper_type_logo > *:first-child,
.hs_cos_wrapper_type_cta > *:first-child {
  margin-top: 0;
}

.hs_cos_wrapper_type_rich_text > *:last-child,
.hs_cos_wrapper_type_logo > *:last-child,
.hs_cos_wrapper_type_cta > *:last-child {
  margin-bottom: 0;
}

/* Utilities
Helper classes with ability to override anything that comes before it
*/

/* For content that needs to be visually hidden but stay visible for screenreaders */

.show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

@media (max-width: 767px) {
  .show-for-sr--mobile {
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
  }
}
/* Card hover fallback */

[class*="card"] {
  transition: all 0.2s ease;
}

[class*="card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
/* Reduce card height */

.cg-feature-grid__card {
  padding: 20px 24px;  /* reduce vertical space */
}

.cg-feature-grid__card p {
  margin-bottom: 8px; /* tighten text spacing */
}
/* Tighten card spacing further */

.cg-feature-grid__card h2,
.cg-feature-grid__card h3,
.cg-feature-grid__card h4 {
  margin-bottom: 6px;
}

.cg-feature-grid__card {
  line-height: 1.4;
}