/**
 * Applied Minds Site-Unified — A5 Design System
 *
 * Palette: Blue deep #0B3D91, Accent mint #00B27A, Cream #FAFAF5
 * Typography: Raleway (headings), Mulish (body), JetBrains Mono (labels)
 *
 * Global design system - applies to all pages
 */

/* ==========================================================================
   A5 CSS Custom Properties
   ========================================================================== */

:root {
  --blue-deep: #0B3D91;
  --blue-primary: #0078C8;
  --blue-bright: #11B5EA;
  --blue-pale: #E8F4FD;
  --accent: #00B27A;
  --accent-hover: #00996A;
  --accent-light: #E6F9F2;
  --cream: #FAFAF5;
  --warm-gray-50: #F8F7F4;
  --warm-gray-100: #EFEEE9;
  --text-dark: #1D2939;
  --text-body: #3D4654;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E2DB;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Aliases for articles.css variable contract */
  --am-primary: #0E2A47;
  --am-accent: #0B3D91;
  --am-accent-hover: #0078C8;
  --am-accent-light: #E8F4FD;
  --am-text: #1D2939;
  --am-text-light: #6B7280;
  --am-white: #FFFFFF;
  --am-gray-50: #F9FAFB;
  --am-gray-100: #F3F4F6;
  --am-gray-400: #9CA3AF;
  --am-gray-500: #6B7280;
  --am-border: #E5E7EB;
  --am-surface: #FFFFFF;
  --am-font-body: 'Mulish', sans-serif;
  --am-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --am-gutter: 2rem;
  --am-transition: 200ms ease;
  --am-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --am-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --am-radius: 0.5rem;
  --am-radius-lg: 0.75rem;
  --am-radius-xl: 1rem;
  --am-text-xs: 0.75rem;
  --am-text-sm: 0.875rem;
  --am-text-base: 1rem;
  --am-text-lg: 1.125rem;
  --am-text-xl: 1.25rem;
  --am-text-2xl: 1.5rem;
  --am-text-3xl: 1.875rem;
  --am-text-4xl: 2.25rem;
}

/* ==========================================================================
   A5 Component Styles
   ========================================================================== */

/* Service rows — editorial 3-column grid */
.service-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.service-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding-top: 4px;
}

/* Stat ribbon */
.stat-ribbon {
  background: var(--blue-deep);
  padding: 56px 0;
  position: relative;
}

.stat-item .num {
  font-size: 48px;
  font-weight: 800;
  font-family: 'Raleway', sans-serif;
  color: white;
}

.stat-item .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Mulish', sans-serif;
}

/* Decode grid */
.decode-grid {
  display: grid;
  gap: 24px;
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Process bar */
.process-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-bar::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--border);
}

/* FAQ grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Full image */
.full-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Particles */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Glassmorphic panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
}

.badge--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge--white {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   ========================================================================== */

.am-mono-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1E6B9F;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.am-mono-label--center {
    text-align: center;
}

.am-gradient-text {
    background: linear-gradient(135deg, #1E6B9F, #4A9FD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.am-danger-text {
    color: #ef4444;
}

/* ==========================================================================
   Header — A5 info bar + sticky nav
   ========================================================================== */

/* Info bar — dark strip with phone/email/location */
.am-info-bar,
.elementor-element-63512032 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Mulish', sans-serif;
}

/* Inner .am-info-bar div — flex layout with proper spacing */
.am-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.am-info-bar a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    white-space: nowrap;
}

.am-info-bar a:hover {
    color: #fff !important;
}

.am-info-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.am-info-bar__sep {
    opacity: 0.4;
    font-size: 12px;
}

.am-info-bar i {
    margin-right: 5px;
    font-size: 11px;
    opacity: 0.7;
}

.elementor-element-63512032 a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.elementor-element-63512032 a:hover {
    color: #fff !important;
}

/* Info bar inner text and separators */
.elementor-element-63512032 .elementor-widget-text-editor {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px;
    font-family: 'Mulish', sans-serif;
}

.elementor-element-63512032 p,
.elementor-element-63512032 span {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Logo */
.am-logo {
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.am-logo:hover {
    color: var(--text-dark);
    text-decoration: none;
}

.am-logo-accent {
    color: var(--blue-primary);
}

/* Nav link overrides for Elementor header */
.am-nav a {
    color: var(--text-dark);
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

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

.am-nav__toggle span {
    background: var(--text-dark);
}

/* ==========================================================================
   Widget Utility Classes — replaces inline styles in generators
   ========================================================================== */

/* Pill badge (used by heroPill) */
.am-pill {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 178, 122, 0.15);
    border: 1px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'JetBrains Mono', monospace;
}

/* Hero subtitle paragraph — always on dark blue hero bg */
.am-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 800px;
    line-height: 1.7;
}

/* CTA section description */
.am-cta-desc {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* CTA fine print / disclaimer */
.am-cta-fine {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ==========================================================================
   Footer — A5 Design System
   ========================================================================== */

/* Sky blue footer — dot grid with slow colour cycle */
@property --am-dot-color {
    syntax: '<color>';
    inherits: false;
    initial-value: rgba(0,100,200,0.15);
}

@keyframes am-footer-blob {
    0%   { left: 25%;  top: 40%; }
    25%  { left: 60%;  top: 60%; }
    50%  { left: 55%;  top: 25%; }
    75%  { left: 30%;  top: 65%; }
    100% { left: 25%;  top: 40%; }
}

.elementor-location-footer > .e-con:first-child {
    background-color: #C9E8FA !important;
    background-image: radial-gradient(circle, rgba(70,130,220,0.15) 1.5px, transparent 1.5px) !important;
    background-size: 28px 28px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Drifting light blob */
.elementor-location-footer > .e-con:first-child::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 380px;
    left: 15%;
    top: 30%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(230,245,255,0.30) 0%,
        rgba(200,228,250,0.18) 40%,
        transparent 70%);
    animation: am-footer-blob 220s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.elementor-location-footer > .e-con:first-child > * {
    position: relative;
    z-index: 1;
}

.am-footer-logo {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    color: #1D2939;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.am-footer-logo-accent {
    color: var(--blue-primary);
}

.am-footer-tagline {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.7;
    max-width: 280px;
}

.am-footer-contact {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65) !important;
}

.am-footer-contact strong {
    color: rgba(255, 255, 255, 0.9) !important;
}

.am-footer-contact div {
    margin-bottom: 8px;
}

.am-footer-social {
    display: flex;
    gap: 10px;
}

.am-footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(29,41,57,0.08);
    align-items: center;
    justify-content: center;
    color: #1D2939;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.am-footer-social a:hover {
    background: rgba(29,41,57,0.15);
}

.am-footer-heading {
    font-family: 'Raleway', sans-serif;
    font-size: 11px !important;
    color: #0078C8 !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.am-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Mulish', sans-serif;
}

.am-footer-links li {
    margin-bottom: 10px;
}

.am-footer-links a {
    color: #374151 !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.am-footer-links a:hover {
    color: #0078C8 !important;
}

.am-footer-cta-text {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: #4B5563 !important;
    line-height: 1.7;
}

.am-footer-copyright {
    border-top: 1px solid rgba(29,41,57,0.12);
    padding-top: 24px;
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: #9CA3AF;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   A5 Homepage Component Classes
   ========================================================================== */

/* Hero note */
.am-hero-note {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-family: 'Mulish', sans-serif;
}

/* Glass panel (hero right column) */
.glass-panel__title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.glass-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glass-panel__list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.glass-panel__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Stat label */
.am-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-family: 'Mulish', sans-serif;
    margin-top: 4px;
}

/* Service row subclasses */
.service-row__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    padding-top: 4px;
    font-weight: 700;
}

.service-row__content {
    min-width: 0;
}

.service-row__title {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-row__desc {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.service-row__link {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    padding-top: 4px;
}

.service-row__link:hover {
    color: var(--accent-hover);
}

/* Body text variants */
.am-body-lg {
    font-family: 'Mulish', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
}
.am-body-sm {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}
/* Featured card date label — JetBrains Mono mono label style */
.am-featured-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
/* Featured card excerpt — slightly smaller than am-body-lg */
.am-featured-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
}

/* Section subtitle */
.am-section-subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 700px;
}

/* Blockquote */
.am-blockquote {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0;
}

.am-blockquote-cite {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-top: 16px;
}

/* Light blockquote (cream bg sections) */
.am-quote-light {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    font-style: italic;
    color: var(--text-body);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 0;
}

/* Name Decode points */
.am-decode-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.am-decode-point {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.am-decode-point strong {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--blue-primary);
}

/* Monospace formula */
.am-mono-formula {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    background: rgba(0,178,122,0.08);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,178,122,0.2);
}

/* Check grid (Why Choose Us) */
.am-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.am-check-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.am-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
}

.am-check-title {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 4px;
}

.am-check-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Process steps (How It Works) */
.am-process-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.am-process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.am-process-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.am-process-title {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.am-process-desc {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

/* Insight cards */
.am-insight-hero-card {
    display: block;
    background: var(--blue-deep);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-decoration: none;
    transition: transform 0.2s;
}

.am-insight-hero-card:hover {
    transform: translateY(-2px);
}

.am-insight-hero-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 12px 0;
}

.am-insight-hero-card p {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.am-insight-tag {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
}

.am-insight-row > .e-con-inner {
    gap: 32px !important;
}

.am-insight-card {
    display: block;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

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

.am-insight-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 12px 0 8px;
}

.am-insight-card p {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ grid */
.am-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.am-faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
}

.am-faq-q {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.am-faq-a {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

/* Services page — expanded editorial rows */
.am-service-row {
    transition: background-color 0.2s ease;
}
.am-service-row:hover {
    background-color: var(--warm-gray-50);
}
.am-service-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.am-service-bullets li {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    background: var(--warm-gray-50);
    padding: 4px 12px;
    border-radius: 20px;
}
.am-service-arrow {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue-primary);
    text-decoration: none;
    white-space: nowrap;
}
.am-service-arrow:hover {
    color: var(--accent);
}
.am-methodology-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin: 4px 0 8px;
}

/* Contact page sidebar */
.am-contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin: 0 0 4px;
}
.am-contact-value {
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}
.am-contact-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}
.am-contact-link:hover {
    color: var(--accent);
}

/* CTA form (visual only — links to /contact/) */
.am-cta-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.am-cta-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    flex: 1;
    min-width: 150px;
}

.am-cta-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.am-cta-submit {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.am-cta-submit:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ==========================================================================
   Legacy Section Styles (pre-A5, kept for backwards compat)
   ========================================================================== */

.am-hero {
    background: #0E2A47;
    padding: 6rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.am-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(30, 107, 159, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 107, 159, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.am-hero__content {
    position: relative;
    z-index: 1;
}

.am-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    max-width: 780px;
}

.am-hero__sub {
    font-size: 1.1875rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 2rem;
}

.am-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.am-hero__stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.am-hero__stats code {
    color: #1E6B9F;
    font-family: inherit;
    font-weight: 600;
}

/* ==========================================================================
   Section 2: Trust Bar
   ========================================================================== */

.am-trust {
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
}

.am-trust .v-trust__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1E6B9F;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.am-trust .v-trust__logos span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #64748b;
}

/* ==========================================================================
   Section 3: Problem / Pain — Coral danger accents
   ========================================================================== */

.am-problem {
    background: #fff;
}

.am-problem h2 {
    font-weight: 800;
}

.am-pain-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #ef4444;
    border-radius: 2px;
    padding: 2.25rem;
}

.am-pain-card__metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ef4444;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.am-pain-card h3 {
    color: #0E2A47;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.am-pain-card p {
    color: #475569;
    font-size: 0.9375rem;
}

.am-pain-card:hover {
    border-left-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

/* ==========================================================================
   Section 4: Meta — Code-window with macOS dots
   ========================================================================== */

.am-meta {
    background: #0E2A47;
    padding: 6rem 0;
}

.am-meta .am-mono-label {
    color: #3B8DC4;
}

.am-meta__block {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.am-meta__header {
    background: #1e293b;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.am-meta__dots {
    display: flex;
    gap: 6px;
}

.am-meta__dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.am-meta__dots i:nth-child(1) { background: #ff5f57; }
.am-meta__dots i:nth-child(2) { background: #febc2e; }
.am-meta__dots i:nth-child(3) { background: #28c840; }

.am-meta__filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.am-meta__body {
    padding: 2.5rem;
    background: #fafbfc;
}

.am-meta__body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0E2A47;
}

.am-meta__body > p {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.am-meta__specs {
    display: grid;
    gap: 0;
}

.am-meta__spec {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.am-meta__spec:last-child {
    border-bottom: none;
}

.am-meta__spec code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #1E6B9F;
    min-width: 140px;
    flex-shrink: 0;
    font-weight: 600;
}

.am-meta__spec span {
    font-size: 0.9375rem;
    color: #475569;
}

/* ==========================================================================
   Section 5: Services — Teal left-border cards
   ========================================================================== */

.am-services {
    background: #fafbfc;
}

.am-services h2 {
    font-weight: 800;
}

.am-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #1E6B9F;
    border-radius: 2px;
    padding: 2.25rem;
}

.am-service-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.am-service-card__header code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #1E6B9F;
    font-weight: 600;
}

.am-service-card__header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0E2A47;
}

.am-service-card p {
    color: #475569;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.am-service-card:hover {
    border-left-color: #155A85;
    box-shadow: 0 4px 16px rgba(30, 107, 159, 0.1);
}

/* ==========================================================================
   Section 6: Results — Dark background, teal counters
   ========================================================================== */

.am-results {
    background: #0E2A47;
    color: #e2e8f0;
}

.am-results h2 {
    color: #fff;
    font-weight: 800;
}

.am-results .am-mono-label {
    color: #1E6B9F;
}

.am-counters {
    margin-bottom: 4rem;
}

.am-counter {
    text-align: center;
}

.am-counter .v-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: #1E6B9F;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.am-counter span {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

/* Case study cards on dark */
.am-case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #1E6B9F;
    border-radius: 2px;
    padding: 2rem;
}

.am-case-card:hover {
    border-left-color: #3B8DC4;
    background: rgba(255, 255, 255, 0.05);
}

.am-case-card__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #1E6B9F;
    margin-bottom: 1rem;
}

.am-case-card h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.am-case-card p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   Section 7: Process — Teal left-border steps
   ========================================================================== */

.am-process-section {
    background: #fff;
}

.am-process-section h2 {
    font-weight: 800;
}

.am-step {
    padding: 2rem;
    border-left: 3px solid #e2e8f0;
    position: relative;
}

.am-step:hover {
    border-left-color: #1E6B9F;
}

.am-step .v-process__num {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(30, 107, 159, 0.25);
}

.am-step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0E2A47;
    margin-bottom: 0.75rem;
}

.am-step p {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   Section 8: Testimonials
   ========================================================================== */

.am-testimonials {
    background: #f8fafc;
}

.am-testimonial {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #1E6B9F;
    border-radius: 2px;
    padding: 2.25rem;
}

.am-testimonial:hover {
    border-left-color: #155A85;
    box-shadow: 0 4px 16px rgba(30, 107, 159, 0.08);
}

.am-testimonial .v-testimonial__quote {
    color: #334155;
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.am-testimonial .v-testimonial__author {
    color: #0E2A47;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
}

.am-testimonial .v-testimonial__role {
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* ==========================================================================
   Section 9: Final CTA — Dark, urgent
   ========================================================================== */

.am-cta {
    background: #0E2A47;
    text-align: center;
    padding: 6rem 0;
}

.am-cta__inner {
    max-width: 660px;
    margin: 0 auto;
}

.am-cta .am-mono-label {
    color: #1E6B9F;
}

.am-cta h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
}

.am-cta p {
    color: #94a3b8;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.am-cta__reassurance {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Button Overrides
   ========================================================================== */

.v-btn--primary {
    background: #1E6B9F;
    color: #fff;
}

.v-btn--primary:hover {
    background: #155A85;
    box-shadow: 0 4px 16px rgba(30, 107, 159, 0.25);
}

/* Outline buttons: teal on light, light on dark */
.v-btn--outline {
    border-color: #1E6B9F;
    color: #1E6B9F;
}

.v-btn--outline:hover {
    background: #1E6B9F;
    color: #fff;
}

.am-hero .v-btn--outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
}

.am-hero .v-btn--outline:hover {
    border-color: #1E6B9F;
    background: #1E6B9F;
    color: #fff;
}

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

.am-footer {
    background: #0E2A47;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.am-footer__brand span {
    color: #1E6B9F;
}

/* ==========================================================================
   Responsive — 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    .am-hero__stats {
        gap: 1rem;
    }
}

/* ==========================================================================
   Responsive — 768px
   ========================================================================== */

@media (max-width: 768px) {
    .am-hero {
        padding: 6rem 0 4rem;
    }

    .am-hero h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .am-hero__stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .am-meta__spec {
        flex-direction: column;
        gap: 0.25rem;
    }

    .am-meta__spec code {
        min-width: auto;
    }

    .am-pain-card,
    .am-service-card,
    .am-testimonial,
    .am-case-card {
        padding: 1.75rem;
    }

    .am-pain-card__metric {
        font-size: 2rem;
    }

    .am-counter .v-counter {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Additional Component Styles (for CSS coverage)
   ========================================================================== */

.am-hero--bio {
    padding: 9rem 0 6rem;
}

.am-hero__subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.am-counter__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.am-tldr {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8fafc;
    border-left: 3px solid #1E6B9F;
}

.am-timeline {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.am-timeline__path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    font-weight: 500;
}

.am-content-blocks {
    display: grid;
    gap: 2rem;
}

.am-content-block {
    padding: 2rem;
}

.am-list {
    list-style: none;
    padding: 0;
}

.am-pullquote {
    font-size: 1.25rem;
    font-style: italic;
    padding: 2rem;
    border-left: 4px solid #1E6B9F;
    margin: 2rem 0;
}

.am-affiliations {
    display: grid;
    gap: 1.5rem;
}

.am-service-card__features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.am-method-blocks {
    display: grid;
    gap: 2rem;
}

.am-contact-grid {
    display: grid;
    gap: 3rem;
}

.am-contact-form-col {
    padding: 2rem;
}

.am-form {
    display: grid;
    gap: 1.5rem;
}

.am-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.am-form__label {
    font-weight: 600;
    color: #0E2A47;
}

.am-form__input,
.am-form__select,
.am-form__textarea {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
}

.am-form__input:focus,
.am-form__select:focus,
.am-form__textarea:focus {
    outline: none;
    border-color: #1E6B9F;
}

.am-form__submit {
    padding: 0.875rem 1.75rem;
    background: #1E6B9F;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.am-form__submit:hover {
    background: #155A85;
}

.am-contact-sidebar {
    padding: 2rem;
}

.am-contact-sidebar__block {
    margin-bottom: 2rem;
}

.am-contact-sidebar__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.am-contact-sidebar__links {
    list-style: none;
    padding: 0;
}

.am-contact-sidebar__note {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

.am-contact-sidebar__cta {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 3px solid #1E6B9F;
    margin-top: 2rem;
}

.am-faq-list {
    display: grid;
    gap: 1.5rem;
}

.am-faq {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.am-faq__question {
    font-weight: 700;
    color: #0E2A47;
    margin-bottom: 0.75rem;
}

.am-faq__answer {
    color: #475569;
    line-height: 1.7;
}

/* ==========================================================================
   Case Studies Components
   ========================================================================== */

.am-case-study {
    max-width: 900px;
    margin: 0 auto;
}

.am-case-study__header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.am-case-study__meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.am-case-study__date,
.am-case-study__type,
.am-case-study__severity {
    font-family: 'JetBrains Mono', monospace;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 4px;
}

.am-case-study__severity {
    background: #fef2f2;
    color: #dc2626;
}

.am-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.am-stat {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.am-stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1E6B9F;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.am-stat__label {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.am-timeline-events {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.am-timeline-event {
    position: relative;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 2px solid #e2e8f0;
}

.am-timeline-event::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    background: #1E6B9F;
    border-radius: 50%;
}

.am-timeline-event__time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #1E6B9F;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.am-timeline-event__desc {
    color: #475569;
    line-height: 1.6;
}

.am-causes-grid,
.am-implications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.am-cause-card,
.am-implication-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.am-cause-card h4,
.am-implication-card h4 {
    color: #0E2A47;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.am-cause-card p,
.am-implication-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.am-solution-phases {
    margin: 2rem 0;
}

.am-solution-phase {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #fff;
    border-left: 4px solid #1E6B9F;
}

.am-solution-phase h4 {
    color: #0E2A47;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.am-solution-phase .am-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.am-solution-phase .am-list li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.am-highlight-text {
    text-align: center;
    color: #0E2A47;
}

.am-list--numbered {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.am-list--numbered li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.am-list li {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.am-architecture-diagram {
    overflow-x: auto;
}

.am-case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.am-case-study-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.am-case-study-card:hover {
    border-color: #1E6B9F;
    box-shadow: 0 4px 12px rgba(30, 107, 159, 0.1);
    transform: translateY(-2px);
}

.am-case-study-card__label {
    margin-bottom: 1rem;
}

.am-case-study-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.am-case-study-card__title a {
    color: #0E2A47;
    text-decoration: none;
}

.am-case-study-card__title a:hover {
    color: #1E6B9F;
}

.am-case-study-card__excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.am-case-study-card__link {
    display: inline-block;
    color: #1E6B9F;
    font-weight: 600;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.am-case-study-card__link:hover {
    color: #155A85;
}

/* ==========================================================================
   Blog & Archive — Post Listings
   ========================================================================== */

.am-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.am-post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 200ms ease;
    position: relative;
}

.am-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #1E6B9F;
}

.am-post-card__badge {
    display: inline-block;
    background: #1E6B9F;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.am-post-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.am-post-card__title a {
    color: #0E2A47;
    text-decoration: none;
}

.am-post-card__title a:hover {
    color: #1E6B9F;
}

.am-post-card__excerpt {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.am-post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.am-post-card__meta span {
    white-space: nowrap;
}

/* Pagination */
.am-pagination {
    margin-top: 4rem;
    text-align: center;
}

.am-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.am-pagination a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #0E2A47;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.am-pagination a:hover {
    background: #1E6B9F;
    border-color: #1E6B9F;
    color: #fff;
    transform: translateY(-2px);
}

/* Empty state */
.am-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.am-empty .am-mono-label {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .am-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .am-post-card {
        padding: 1.5rem;
    }
}

.am-post-card__badge--case-study {
    background: linear-gradient(135deg, #1E6B9F, #4A9FD4);
}

/* ─── Contact Form 7 Integration ─── */
.wpcf7 .am-form__input:focus,
.wpcf7 .am-form__select:focus,
.wpcf7 .am-form__textarea:focus {
    border-color: #1E6B9F;
    box-shadow: 0 0 0 3px rgba(30, 107, 159, 0.1);
    outline: none;
}

.wpcf7 .am-form__input,
.wpcf7 .am-form__select,
.wpcf7 .am-form__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: Inter, sans-serif;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.wpcf7 .am-form__select {
    cursor: pointer;
    appearance: auto;
    color: #1e293b;
}

.wpcf7 .am-form__textarea {
    resize: vertical;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #ef4444;
}

.wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    font-size: 15px;
    line-height: 1.5;
}

.wpcf7-form.sent .wpcf7-response-output {
    border-color: #1E6B9F !important;
    background: rgba(30, 107, 159, 0.05);
    color: #1E6B9F;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

.wpcf7 .wpcf7-spinner {
    margin: 8px 0 0 16px;
}

.wpcf7 .am-form__submit {
    display: inline-block;
    padding: 16px 40px;
    background: #1E6B9F;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.wpcf7 .am-form__submit:hover {
    background: #155A85;
}

/* ==========================================================================
   Card Hover Effects — Lift + shadow deepening
   ========================================================================== */

.am-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.am-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10) !important;
}

/* Step card hover — methodology cards on service sub-pages */
.am-step-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.am-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.09) !important;
}

/* Pitfall item hover — subtle lightening on dark bg */
.am-pitfall-item {
    transition: background 0.2s ease;
}

.am-pitfall-item:hover {
    background: rgba(255,255,255,0.06) !important;
}

/* Pitfall content classes (replaces inline styles in rebuild script) */
.am-pitfall-x {
    font-size: 16px;
    color: #FF6B6B;
}
.am-pitfall-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}
.am-pitfall-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* Deliverable content classes (replaces inline styles in rebuild script) */
.am-deliv-tick {
    font-size: 13px;
    color: #00B27A;
    font-weight: 700;
}
.am-deliv-lead {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
}
.am-deliv-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* Deliverable item hover — lift */
.am-deliv-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.am-deliv-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   Blog Post / Single Post Styling
   Forces blog posts to match the A5 design system used on site pages:
   blue gradient hero, Raleway headings, Mulish body, 1200px boxed width.
   ========================================================================== */

/* Safety: ensure blog post content is never hidden by scroll-reveal on tall elements */
[data-elementor-type="wp-post"] .am-reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Match blog post content width to site pages (1200px boxed) */
[data-elementor-type="wp-post"] {
    --content-width: min(100%, 1200px) !important;
    font-family: 'Mulish', sans-serif !important;
}

[data-elementor-type="wp-post"] > .e-con {
    --content-width: min(100%, 1200px) !important;
}

/* ── Post Hero Section ── */
/* First top-level container = hero. Match site pages: blue gradient, white text, Raleway */
[data-elementor-type="wp-post"] > .e-con:first-child {
    background: linear-gradient(135deg, #0B3D91 0%, #0078C8 100%) !important;
    padding: 100px 20px 80px !important;
}

[data-elementor-type="wp-post"] > .e-con:first-child h1 {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 1.15 !important;
    color: #FFFFFF !important;
}

[data-elementor-type="wp-post"] > .e-con:first-child h2 {
    font-family: 'Raleway', sans-serif !important;
    color: rgba(255,255,255,0.85) !important;
}

/* Date/category line above title — green badge style like site pages */
[data-elementor-type="wp-post"] > .e-con:first-child p {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #00B27A !important;
    font-weight: 600 !important;
}

/* Date/category badge in hero — first text-editor widget = green mono badge */
[data-elementor-type="wp-post"] > .e-con:first-child .elementor-widget-text-editor:first-child,
[data-elementor-type="wp-post"] > .e-con:first-child .elementor-widget-text-editor:first-child p {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #00B27A !important;
    font-weight: 600 !important;
}

/* ── Post Body Section ── */
/* All headings in post body must use Raleway */
[data-elementor-type="wp-post"] h1,
[data-elementor-type="wp-post"] h2,
[data-elementor-type="wp-post"] h3,
[data-elementor-type="wp-post"] h4,
[data-elementor-type="wp-post"] h5,
[data-elementor-type="wp-post"] h6 {
    font-family: 'Raleway', sans-serif !important;
}

/* All body text must use Mulish */
[data-elementor-type="wp-post"] p,
[data-elementor-type="wp-post"] li,
[data-elementor-type="wp-post"] span,
[data-elementor-type="wp-post"] .elementor-widget-text-editor {
    font-family: 'Mulish', sans-serif !important;
}

/* Article body typography — match site font system */
[data-elementor-type="wp-post"] .elementor-widget-text-editor {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body, #3D4654);
    font-family: 'Mulish', sans-serif;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor p {
    margin-bottom: 1.25em;
    color: #1D2939;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #0B3D91;
    margin: 2em 0 0.75em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #E5E7EB;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #0E2A47;
    margin: 1.5em 0 0.5em;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #0B3D91;
    margin: 1.25em 0 0.5em;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor strong {
    color: #0E2A47;
    font-weight: 700;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor blockquote,
[data-elementor-type="wp-post"] .elementor-widget-text-editor .am-quote-light {
    font-size: 18px;
    font-style: italic;
    border-left: 3px solid #0078C8;
    padding: 12px 0 12px 20px;
    margin: 1.5em 0;
    color: #374151;
    background: #F9FAFB;
    border-radius: 0 8px 8px 0;
}

/* Code blocks in articles */
[data-elementor-type="wp-post"] .elementor-widget-text-editor pre,
[data-elementor-type="wp-post"] .elementor-widget-text-editor code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    background: #1D2939;
    color: #E5E7EB;
    border-radius: 8px;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor pre {
    padding: 20px 24px;
    margin: 1.5em 0;
    overflow-x: auto;
    line-height: 1.6;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor code {
    padding: 2px 6px;
    font-size: 0.9em;
    background: #F3F4F6;
    color: #0B3D91;
    border-radius: 4px;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Lists in articles */
[data-elementor-type="wp-post"] .elementor-widget-text-editor ul,
[data-elementor-type="wp-post"] .elementor-widget-text-editor ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

[data-elementor-type="wp-post"] .elementor-widget-text-editor li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* Image placeholders in articles */
[data-elementor-type="wp-post"] .am-image-placeholder {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    margin: 2em 0;
    color: #6B7280;
    font-size: 14px;
}

[data-elementor-type="wp-post"] .am-image-placeholder strong {
    display: block;
    font-size: 15px;
    color: #374151;
    margin-bottom: 4px;
}

/* Stat cards in articles */
[data-elementor-type="wp-post"] .am-stat-card-row {
    display: flex;
    gap: 16px;
    margin: 1.5em 0;
    flex-wrap: wrap;
}

[data-elementor-type="wp-post"] .am-stat-card {
    flex: 1;
    min-width: 140px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

/* BEM-style stat card classes (used in blog post HTML) */
[data-elementor-type="wp-post"] .am-stat-card__number {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 28px !important;
    color: #0B3D91 !important;
    display: block;
    line-height: 1.2;
}

[data-elementor-type="wp-post"] .am-stat-card__label {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

[data-elementor-type="wp-post"] .am-stat-card .am-stat-value {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: #0B3D91;
    display: block;
}

[data-elementor-type="wp-post"] .am-stat-card .am-stat-label {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
    display: block;
}

/* Callout boxes */
[data-elementor-type="wp-post"] .am-callout {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 1.5em 0;
}

[data-elementor-type="wp-post"] .am-callout-info {
    background: #EFF6FF;
    border-left: 4px solid #0078C8;
}

[data-elementor-type="wp-post"] .am-callout-warning {
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
}

[data-elementor-type="wp-post"] .am-callout-success {
    background: #ECFDF5;
    border-left: 4px solid #00B27A;
}

/* Timeline list */
[data-elementor-type="wp-post"] .am-timeline-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    border-left: 3px solid #E5E7EB;
    padding-left: 0;
}

[data-elementor-type="wp-post"] .am-timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
    padding: 14px 0 14px 24px;
    position: relative;
    border-bottom: 1px solid #F3F4F6;
}

[data-elementor-type="wp-post"] .am-timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 18px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #E5E7EB;
    border: 2px solid #fff;
}

[data-elementor-type="wp-post"] .am-timeline-item--critical::before {
    background: #EF4444;
}

[data-elementor-type="wp-post"] .am-timeline-item--warning::before {
    background: #F59E0B;
}

[data-elementor-type="wp-post"] .am-timeline-item--success::before {
    background: #00B27A;
}

[data-elementor-type="wp-post"] .am-timeline-item__date {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: #6B7280;
    min-width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
}

[data-elementor-type="wp-post"] .am-timeline-item__event {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
}

/* Cause / root-cause cards grid */
[data-elementor-type="wp-post"] .am-cause-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}

[data-elementor-type="wp-post"] .am-cause-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 24px;
}

[data-elementor-type="wp-post"] .am-cause-card h4 {
    margin-top: 0 !important;
    margin-bottom: 8px;
}

/* Implication cards */
[data-elementor-type="wp-post"] .am-implication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}

[data-elementor-type="wp-post"] .am-implication-card {
    background: #FFF7ED;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 20px 24px;
}

[data-elementor-type="wp-post"] .am-implication-card h4 {
    margin-top: 0 !important;
    color: #92400E;
}

/* Callout boxes (BEM style from actual HTML) */
[data-elementor-type="wp-post"] .am-callout {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 1.5em 0;
}

[data-elementor-type="wp-post"] .am-callout--info {
    background: #EFF6FF;
    border-left: 4px solid #0078C8;
}

[data-elementor-type="wp-post"] .am-callout__label {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0B3D91;
    margin-bottom: 8px;
}

/* TL;DR / Executive summary highlight */
[data-elementor-type="wp-post"] .am-tldr {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 1.5em 0;
}

[data-elementor-type="wp-post"] .am-tldr__label {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0B3D91;
    margin-bottom: 8px;
}

/* Highlight quote */
[data-elementor-type="wp-post"] .am-highlight-quote {
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    color: #0B3D91;
    text-align: center;
    padding: 32px 40px;
    margin: 2em 0;
    border-top: 2px solid #E5E7EB;
    border-bottom: 2px solid #E5E7EB;
    line-height: 1.5;
}

/* Stat row */
[data-elementor-type="wp-post"] .am-stat-row,
[data-elementor-type="wp-post"] .am-stat-row--4x {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}

[data-elementor-type="wp-post"] .am-stat-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

/* Image placeholder */
[data-elementor-type="wp-post"] .am-image-placeholder {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    margin: 2em 0;
    color: #6B7280;
}

[data-elementor-type="wp-post"] .am-image-placeholder__icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

[data-elementor-type="wp-post"] .am-image-placeholder__frame {
    display: block;
}

[data-elementor-type="wp-post"] .am-image-placeholder__caption {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 8px;
    line-height: 1.5;
}

[data-elementor-type="wp-post"] .am-image-placeholder strong {
    display: block;
    font-size: 15px;
    color: #374151;
    margin-bottom: 4px;
}

/* Code block */
[data-elementor-type="wp-post"] .am-code-block {
    background: #1D2939;
    color: #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin: 1.5em 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* Series badge */
[data-elementor-type="wp-post"] .am-series-badge {
    display: inline-block;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    padding: 8px 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #374151;
}

/* Meta line (author, date, tags) */
[data-elementor-type="wp-post"] .am-meta {
    font-size: 14px;
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Subtitle / description below title */
[data-elementor-type="wp-post"] .am-subtitle {
    font-size: 18px;
    color: #374151;
    font-style: italic;
    line-height: 1.6;
    max-width: 700px;
}

/* Back link */
[data-elementor-type="wp-post"] .am-link-back {
    font-size: 14px;
    color: #0078C8;
}

[data-elementor-type="wp-post"] .am-link-back a {
    color: #0078C8;
    text-decoration: none;
}

[data-elementor-type="wp-post"] .am-link-back a:hover {
    text-decoration: underline;
}

/* Gradient text accent */
[data-elementor-type="wp-post"] .am-gradient-text {
    background: linear-gradient(135deg, #0078C8 0%, #00B27A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hide redundant internal article header — the top-level hero section handles title display */
[data-elementor-type="wp-post"] .am-article-header {
    display: none !important;
}

/* Remove blue gradient hero from nested post Elementor data — top-level hero handles this */
[data-elementor-type="wp-post"] > .e-con:nth-child(2) .elementor .e-con.e-parent:first-child {
    background: none !important;
    background-image: none !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   Auto Scroll Reveal — Targets Elementor containers in generated sections
   Applied via JS (animations.js extension)
   ========================================================================== */

.am-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.am-reveal.revealed {
    opacity: 1;
    transform: none;
}

.am-stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.am-stagger-child.revealed {
    opacity: 1;
    transform: none;
}

/* Button hover pulse */
.elementor-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,107,159,0.25);
}

/* ==========================================================================
   A5 Responsive — Elementor Flex Containers
   ========================================================================== */

@media (max-width: 1024px) {
    /* Reduce heading sizes */
    .elementor-widget-heading .elementor-heading-title {
        font-size: clamp(28px, 4vw, 42px) !important;
    }
    /* Row containers wrap */
    .e-con[data-setting="flex_direction:row"],
    .e-con.e-con--row {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 768px) {
    /* Prevent overflow */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .elementor, .e-con, .e-con > .e-con {
        max-width: 100vw !important;
    }
    /* Force all inner containers to stack and take full width */
    .e-con > .e-con {
        width: 100% !important;
        min-width: 0 !important;
        --width: 100% !important;
        flex-direction: column !important;
    }
    /* Top-level sections stack children */
    .e-con.e-con--row {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    /* Reduce section padding */
    .e-con:not(.e-con--row) {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    /* H1 sizing for mobile */
    h1.elementor-heading-title,
    .elementor-widget-heading h1 {
        font-size: 32px !important;
    }
    h2.elementor-heading-title,
    .elementor-widget-heading h2 {
        font-size: 28px !important;
    }
    /* Service row labels stack */
    .am-service-row {
        flex-direction: column !important;
    }
    /* Glass panel on hero stacks below */
    .glass-panel {
        width: 100% !important;
    }
    /* FAQ grid stacks */
    .am-faq-grid {
        grid-template-columns: 1fr !important;
    }
    /* Process steps stack */
    .am-process-steps {
        flex-direction: column;
    }
    /* Insight cards stack */
    .am-insight-hero-card {
        padding: 32px !important;
    }
    /* Hide overflow */
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    /* Even smaller headings */
    h1.elementor-heading-title,
    .elementor-widget-heading h1 {
        font-size: 28px !important;
    }
    h2.elementor-heading-title,
    .elementor-widget-heading h2 {
        font-size: 24px !important;
    }
    /* Reduce section padding further */
    .e-con:not(.e-con--row) {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Stat numbers smaller */
    .elementor-widget-heading h3 {
        font-size: 32px !important;
    }
}

/* ==========================================================================
   FAQ Toggle — 2×2 grid (matches A5 mockup)
   ========================================================================== */

.elementor-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.elementor-toggle-item {
    background: #fff;
    border: 1px solid #E5E2DB;
    border-radius: 10px;
    padding: 24px;
}

/* How It Works — timeline connector line between step circles */
.am-steps-row > .e-con-inner {
    position: relative;
}
.am-steps-row > .e-con-inner::before {
    content: '';
    position: absolute;
    top: 16px; /* center of 32px circle */
    left: calc(12.5% + 16px);
    right: calc(12.5% + 16px);
    height: 2px;
    background: #00B27A;
    z-index: 0;
}
.am-steps-row .e-con {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Homepage Component Classes (replaces inline styles in generators)
   ========================================================================== */

/* Badge pills — section labels */
.am-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #E8F4FD;
    color: #0078C8;
}
.am-pill--white {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
}
.am-pill--green {
    background: #E6F9F2;
    color: #00B27A;
}

/* Hero section */
.am-hero-fine {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* "What we build" panel — remove default Elementor widget margins */
.am-wb-panel .elementor-widget {
    margin-bottom: 0 !important;
}

/* "What we build" list items */
.am-wb-item {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.am-wb-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00B27A;
    margin-right: 10px;
    vertical-align: middle;
}

/* Stat ribbon labels */
.am-stat-label {
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    letter-spacing: normal;
}

/* Service row description */
.am-service-desc {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.65;
}

/* Generic section subtitle */
.am-subtitle {
    color: #6B7280;
    font-size: 17px;
}
.am-subtitle--sm {
    font-size: 16px;
}

/* Quote attribution */
.am-quote-attr {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
}

/* Name Decode point description */
.am-decode-desc {
    color: #3D4654;
    font-size: 15px;
}

/* Why Choose Us check item description */
.am-check-desc {
    color: #6B7280;
    font-size: 14px;
}

/* How It Works step description */
.am-step-desc {
    color: #6B7280;
    font-size: 13px;
}

/* Insights hero card description */
.am-hero-card-desc {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
}

/* Insight card description */
.am-insight-desc {
    color: #6B7280;
    font-size: 14px;
}

/* CTA section text */
.am-cta-body {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    line-height: 1.7;
}
.am-cta-fine {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
/* Hero section fine print (replaces inline style with margin-top:8px) */
.am-hero-fine {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 8px;
}
/* Dark-bg fine print without top margin */
.am-dark-fine {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* CTA form card */
.am-cta-form-card {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
}
.am-cta-form-card input[type="text"],
.am-cta-form-card input[type="email"],
.am-cta-form-card textarea {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 14px;
    font-family: Inter, sans-serif;
}
.am-cta-form-card input::placeholder,
.am-cta-form-card textarea::placeholder {
    color: rgba(255,255,255,0.4) !important;
}
.am-cta-form-card .wpcf7-submit {
    background: #00B27A !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 32px !important;
    font-size: 16px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}
.am-cta-form-card .wpcf7-submit:hover {
    background: #00996A !important;
}
.am-cta-form-card label {
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden;
}
.am-cta-form-card label br {
    display: none;
}
.am-cta-form-card label .wpcf7-form-control-wrap {
    font-size: 14px !important;
    line-height: 1.4;
    display: block;
}
.am-cta-form-card .wpcf7-form p {
    margin-bottom: 12px;
}
.am-cta-form-card textarea.wpcf7-form-control {
    min-height: 80px;
    max-height: 120px;
    resize: none;
}

/* Caption / placeholder text */
.am-caption {
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    font-style: italic;
}

/* ==========================================================================
   Homepage Layout Fixes — gap not generated by Elementor CSS
   ========================================================================== */

/* Why Choose Us: 80px gap between photo and checklist */
.elementor-element-b0df4fee > .e-con-inner {
    gap: 80px !important;
}

/* The Name (Decode): 60px gap between left text and right illustration */
.elementor-element-ffa7c2b9 > .e-con-inner {
    gap: 60px !important;
}
.elementor-element-9f713695 > .e-con-inner {
    gap: 60px !important;
}

/* Why Choose Us: check item rows need gap between ✓ circle and text */
.elementor-element-97fd06ca > .e-con-inner,
.elementor-element-b448a49e > .e-con-inner,
.elementor-element-ab7d2f79 > .e-con-inner,
.elementor-element-1efb6461 > .e-con-inner {
    gap: 14px !important;
}

/* The Name: right column illustration needs min-height to match mockup */
.elementor-element-09a0c5d9 {
    min-height: 380px !important;
    align-self: stretch !important;
}

/* ==========================================================================
   Site-Wide Layout Gap Fixes — Elementor flex_gap not rendered in CSS
   ========================================================================== */

/* About page (ID 7) */
.elementor-element-f5a64904 > .e-con-inner { gap: 24px !important; }
.elementor-element-70e52192 > .e-con-inner { gap: 40px !important; }

/* Services page (ID 8) */
.elementor-element-7a4f3e65 > .e-con-inner,
.elementor-element-dcafefa4 > .e-con-inner,
.elementor-element-504e60b9 > .e-con-inner,
.elementor-element-6a4b05f5 > .e-con-inner { gap: 32px !important; }
.elementor-element-797af365 > .e-con-inner { gap: 24px !important; }

/* Contact page (ID 9) */
.elementor-element-e2634d56 > .e-con-inner { gap: 48px !important; }
.elementor-element-b8c82f31 > .e-con-inner { gap: 32px !important; }
.elementor-element-915edf35 > .e-con-inner { gap: 40px !important; }

/* Insights page (ID 10) */
.elementor-element-290987e8 > .e-con-inner,
.elementor-element-b9683efb > .e-con-inner,
.elementor-element-640110b4 > .e-con-inner,
.elementor-element-decbc70a > .e-con-inner { gap: 24px !important; }

/* Approach page (ID 11) */
.elementor-element-04ca7802 > .e-con-inner { gap: 40px !important; }
.elementor-element-7957dd31 > .e-con-inner,
.elementor-element-e48651bf > .e-con-inner,
.elementor-element-184e2394 > .e-con-inner,
.elementor-element-e8ef3547 > .e-con-inner,
.elementor-element-569acc2c > .e-con-inner,
.elementor-element-61b2a034 > .e-con-inner,
.elementor-element-2878c1ec > .e-con-inner { gap: 24px !important; }
.elementor-element-8f1ebdb0 > .e-con-inner { gap: 20px !important; }

/* AI Readiness page (ID 52) */
.elementor-element-chuhmyc7 > .e-con-inner,
.elementor-element-hbtkhjhn > .e-con-inner,
.elementor-element-pohjav09 > .e-con-inner,
.elementor-element-iwyburhj > .e-con-inner { gap: 36px !important; }

/* Service sub-pages: Autonomous AI (106) */
.elementor-element-qwsn6ezs > .e-con-inner,
.elementor-element-o1wd2unx > .e-con-inner,
.elementor-element-cp6584zh > .e-con-inner,
.elementor-element-60mmitgb > .e-con-inner,
.elementor-element-7mwdm3hs > .e-con-inner { gap: 32px !important; }

/* Service sub-pages: Software Dev (107) */
.elementor-element-nhskxcj8 > .e-con-inner,
.elementor-element-z6cu23vj > .e-con-inner,
.elementor-element-1c9n4gvd > .e-con-inner,
.elementor-element-0cjcbm2p > .e-con-inner,
.elementor-element-bwm59ivs > .e-con-inner { gap: 32px !important; }

/* Service sub-pages: AI Adoption (108) */
.elementor-element-k1gj656k > .e-con-inner,
.elementor-element-mxna291x > .e-con-inner,
.elementor-element-gll7up76 > .e-con-inner,
.elementor-element-m2swgsfr > .e-con-inner,
.elementor-element-ama5c2er > .e-con-inner { gap: 32px !important; }

/* Service sub-pages: Small Business (109) */
.elementor-element-kpx6n9bn > .e-con-inner,
.elementor-element-gl5egqk6 > .e-con-inner,
.elementor-element-4a2gl79x > .e-con-inner,
.elementor-element-8h4idlvs > .e-con-inner,
.elementor-element-43heuwdl > .e-con-inner { gap: 32px !important; }

/* Header template (ID 59) — nav row */
.elementor-element-cd337f07 > .e-con-inner { gap: 20px !important; }

/* Footer template (ID 61) */
.elementor-element-594c2673 > .e-con-inner { gap: 48px !important; }

/* ==========================================================================
   Hero Particle Animation — floating dots on dark backgrounds
   ========================================================================== */

/* Particle container on hero section */
.am-hero-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.am-hero-particles::before,
.am-hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s ease-in-out infinite;
}

.am-hero-particles::before {
    width: 4px; height: 4px;
    background: rgba(0, 178, 122, 0.4);
    top: 20%; left: 15%;
    animation-delay: 0s;
}

.am-hero-particles::after {
    width: 3px; height: 3px;
    background: rgba(17, 181, 234, 0.35);
    top: 60%; right: 20%;
    animation-delay: 3s;
}

/* Additional particles via box-shadow on a pseudo-element carrier */
.am-particle-field {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.am-particle-field::before {
    content: '';
    position: absolute;
    width: 2px; height: 2px;
    background: transparent;
    top: 0; left: 0;
    box-shadow:
        120px 80px 0 rgba(0, 178, 122, 0.3),
        340px 150px 0 rgba(17, 181, 234, 0.25),
        680px 90px 0 rgba(255, 255, 255, 0.15),
        950px 200px 0 rgba(0, 178, 122, 0.2),
        1200px 120px 0 rgba(17, 181, 234, 0.2),
        200px 300px 0 rgba(255, 255, 255, 0.1),
        500px 350px 0 rgba(0, 120, 200, 0.25),
        800px 400px 0 rgba(0, 178, 122, 0.15),
        1100px 320px 0 rgba(17, 181, 234, 0.2),
        60px 450px 0 rgba(255, 255, 255, 0.12),
        400px 500px 0 rgba(0, 178, 122, 0.18),
        750px 520px 0 rgba(17, 181, 234, 0.15),
        1050px 480px 0 rgba(255, 255, 255, 0.1),
        280px 580px 0 rgba(0, 120, 200, 0.2),
        600px 600px 0 rgba(0, 178, 122, 0.12);
    animation: particle-drift 20s linear infinite;
}

.am-particle-field::after {
    content: '';
    position: absolute;
    width: 2px; height: 2px;
    background: transparent;
    top: 0; left: 0;
    box-shadow:
        180px 120px 0 rgba(17, 181, 234, 0.2),
        420px 200px 0 rgba(0, 178, 122, 0.15),
        720px 160px 0 rgba(255, 255, 255, 0.12),
        1000px 250px 0 rgba(0, 120, 200, 0.18),
        150px 380px 0 rgba(0, 178, 122, 0.22),
        550px 430px 0 rgba(17, 181, 234, 0.12),
        900px 370px 0 rgba(255, 255, 255, 0.08),
        300px 550px 0 rgba(0, 178, 122, 0.15),
        700px 570px 0 rgba(17, 181, 234, 0.18),
        1100px 540px 0 rgba(0, 120, 200, 0.12);
    animation: particle-drift 25s linear infinite reverse;
}

@keyframes particle-float {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    50% { transform: translateY(-30px) scale(1.5); }
}

@keyframes particle-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-40px); }
}

@keyframes particle-pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.2); }
}

@keyframes particle-wander {
    0% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(-5px, -25px); }
    75% { transform: translate(-15px, -8px); }
    100% { transform: translate(0, 0); }
}

/* Hero — no CSS particles, video background will be added */
.elementor-element-3e50fb37 {
    position: relative !important;
    overflow: hidden !important;
}

.elementor-element-3e50fb37 > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Neurosymbolic Network Animation — canvas-based, on blue bands
   Canvas is injected by animations.js. CSS just positions the container.
   ========================================================================== */

.am-neurosymbolic-canvas {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Blue band sections need relative positioning for canvas overlay */
.elementor-element-f48ec7f0,
.elementor-element-7c342815,
.elementor-element-df7bd5f6,
.elementor-element-013460fd,
.elementor-element-67d3a71f,
.elementor-element-80f79bb3,
.elementor-element-340e92ae,
.elementor-element-db92d152,
.elementor-element-6e4f4ce9 {
    position: relative !important;
    overflow: hidden !important;
}

/* Keep content above canvas */
.elementor-element-f48ec7f0 > .e-con-inner,
.elementor-element-7c342815 > .e-con-inner,
.elementor-element-df7bd5f6 > .e-con-inner,
.elementor-element-013460fd > .e-con-inner,
.elementor-element-67d3a71f > .e-con-inner,
.elementor-element-80f79bb3 > .e-con-inner,
.elementor-element-340e92ae > .e-con-inner,
.elementor-element-db92d152 > .e-con-inner,
.elementor-element-6e4f4ce9 > .e-con-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .elementor-toggle {
        grid-template-columns: 1fr;
    }
    /* Stack Why Choose Us and Name Decode on mobile */
    .elementor-element-b0df4fee > .e-con-inner,
    .elementor-element-ffa7c2b9 > .e-con-inner {
        gap: 40px !important;
    }
}

/* ==========================================================================
   Watercolor Edge — Organic paint-dissolve on image borders
   Uses SVG feTurbulence filter injected in wp_footer.
   .am-wc-edge = standard, .am-wc-edge-sm = tighter for smaller images.
   ========================================================================== */

.am-wc-edge img,
img.am-wc-edge {
    filter: url(#am-watercolor-edge);
}
.am-wc-edge-sm img,
img.am-wc-edge-sm {
    filter: url(#am-watercolor-edge-sm);
}

/* Step card image cap — constrains images inside methodology step cards */
.am-img-cap-200 {
    max-height: 200px !important;
    overflow: hidden !important;
}
.am-img-cap-200 .elementor-image img,
.am-img-cap-200 img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}
.am-img-cap-300 {
    max-height: 300px !important;
    overflow: hidden !important;
}
.am-img-cap-300 .elementor-image img,
.am-img-cap-300 img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
}

/* ==========================================================================
   Autonomous AI Systems Page — Custom Components
   ========================================================================== */

:root {
  --amber: #F59E0B;
  --amber-light: rgba(245, 158, 11, 0.15);
}

/* ── Stats Band ─────────────────────────────────────────────────────── */
.am-stats-band-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  align-items: stretch;
}
.am-stats-side {
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.am-stats-side.gains { padding-left: 0; }
.am-stats-side.shift { padding-right: 0; }
.am-stats-divider {
  background: rgba(255, 255, 255, 0.12);
  width: 1px;
  margin: 0 16px;
}
.am-stats-side-label {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.am-stats-side.gains .am-stats-side-label { color: var(--accent); }
.am-stats-side.shift .am-stats-side-label { color: var(--amber); }
.am-stat-block { text-align: left; }
.am-stat-block .number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.am-stats-side.gains .am-stat-block .number { color: var(--accent); }
.am-stats-side.shift .am-stat-block .number { color: var(--amber); }
/* .am-stat-block is set via _css_classes in Elementor JSON but doesn't render
   on container divs in this version — target content classes directly instead */
p.source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35) !important;
  display: block;
  margin-bottom: 5px;
}
p.context {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55) !important;
  line-height: 1.5;
}

/* ── What Changes — section header + 2-col layout ─────────────────── */
.am-reality-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.am-reality-inner h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.am-reality-inner p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}
.am-reality-inner img {
  border-radius: var(--radius-md);
  width: 100%;
  display: block;
}

/* ── Progression pills ─────────────────────────────────────────────── */
.am-prog-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0;
}
.am-prog-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 6px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.am-prog-pill.final {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.am-prog-arrow {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 5px;
  flex-shrink: 0;
}

/* ── C++ callout ────────────────────────────────────────────────────── */
.am-cpp-callout {
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 8px;
}
.am-cpp-callout strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 12px;
  font-family: 'Raleway', sans-serif;
}
.am-cpp-callout ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.am-cpp-callout li {
  font-size: 14px;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
}
.am-cpp-callout li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Why Pipeline cards ─────────────────────────────────────────────── */
.am-why-pipeline-top {
  text-align: center;
  margin-bottom: 48px;
}
.am-why-pipeline-top h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.am-why-pipeline-top p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.am-why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.am-why-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.am-why-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  border-radius: 0 !important;
}
.am-why-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.am-why-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.am-why-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}
.am-why-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-primary);
  display: block;
  margin-top: 4px;
}

/* ── 5 Stages ───────────────────────────────────────────────────────── */
.am-stages-top {
  text-align: center;
  margin-bottom: 52px;
}
.am-stages-top h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.am-stages-top p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}
.am-stage-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.am-stage-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md) !important;
  margin-bottom: 3px;
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 28px;
}
.am-stage-row:hover { border-color: rgba(0, 120, 200, 0.3); }
.am-stage-row.stage-5 {
  background: #f0f6fc;
  border-color: var(--blue-primary);
  border-left: 3px solid var(--blue-primary);
  grid-template-columns: 1fr;
}
.am-stage-num-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.am-stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue-primary);
  text-transform: uppercase;
}
.am-stage-label {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.am-stage-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #92400e;
  background: var(--amber-light);
  padding: 2px 7px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 4px;
}
.am-stage-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.am-stage-col-val {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.am-stage-automated {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.am-stage-5-header {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.am-stage-5-pipeline {
  border-top: 1px solid var(--border) !important;
  padding-top: 18px;
}
.am-stage-5-pipeline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.am-stage-5-note {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 6px;
  font-style: italic;
}

/* Brute-force callout */
.am-brute-callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 22px 28px;
  margin-top: 32px;
}
.am-brute-callout > div {
  flex: 1;
}
.am-throughput-callout {
  background: #f0f6fc;
  border: 1px solid rgba(0, 120, 200, 0.2);
  border-radius: var(--radius-md) !important;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  margin-top: 12px;
}
.am-throughput-callout > div:last-child {
  flex: 1;
}
.am-throughput-num {
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 24px !important;
}

/* ── Full Pipeline section ──────────────────────────────────────────── */
.am-pipeline-top {
  text-align: center;
  margin-bottom: 48px;
}
.am-pipeline-top h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.am-pipeline-top p {
  font-size: 16px;
  color: var(--text-light);
}
.am-pipeline-stages-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.am-pipeline-stages-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.am-stage-desc {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
/* .s-name / .s-text are on text() widget spans/paragraphs inside Elementor
   containers — the ancestor .am-stage-desc class is on the container where
   _css_classes silently fails, so target by element+class directly */
span.s-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
p.s-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}
.am-pipeline-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 24px;
}

/* ── Where It Gets Harder (bp-cards) ───────────────────────────────── */
.am-complexity-top {
  text-align: center;
  margin-bottom: 48px;
}
.am-complexity-top h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.am-bp-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.am-bp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  width: 100%;
}
.am-bp-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}
.am-bp-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-family: 'Raleway', sans-serif;
  line-height: 1.4;
}
.am-bp-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}
.am-code-callout {
  background: #eef5fb;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #1e4a72;
  line-height: 1.5;
}

/* ── Working Together ───────────────────────────────────────────────── */
.am-how-help-inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 56px;
  align-items: start;
}
.am-how-help-inner img {
  border-radius: var(--radius-md);
  width: 100%;
  display: block;
}
.am-how-help-inner h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.am-how-help-intro {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 28px;
}
.am-help-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
/* Elementor container overrides — flex_gap doesn't emit CSS, so we set it here */
.am-help-list > .e-con-inner { gap: 18px !important; }
.am-help-item > .e-con-inner { gap: 14px !important; }
/* Zero Elementor default widget margin-bottom inside help items */
.am-help-item .elementor-widget { margin-bottom: 0 !important; }
.am-help-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.am-help-icon {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.am-help-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  font-family: 'Raleway', sans-serif;
}
.am-help-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}
.am-terminal-callout {
  background: #0d1117;
  border: 1px solid rgba(0, 178, 122, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  line-height: 1.8;
  margin-bottom: 10px;
}
.am-terminal-callout .t-comment {
  color: rgba(255, 255, 255, 0.3);
}
.am-terminal-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  line-height: 1.6;
}

/* ── Domain Fit ─────────────────────────────────────────────────────── */
.am-domain-top {
  text-align: center;
  margin-bottom: 48px;
}
.am-domain-top h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.am-domain-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.am-domain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}
.am-domain-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.am-domain-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-family: 'Raleway', sans-serif;
}
.am-domain-examples {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 14px;
}
.am-depth-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.am-depth-meter {
  background: var(--border);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.am-depth-fill {
  height: 100%;
  background: linear-gradient(90deg, #5BACD8 0%, #0078C8 100%);
  border-radius: 3px;
}
.am-domain-reqs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.am-domain-reqs li {
  font-size: 13px;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.am-domain-reqs li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.am-domain-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: italic;
}

/* ── CTA Chips ──────────────────────────────────────────────────────── */
.am-cta-chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.am-chip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ── Autonomous AI — decomposition CSS additions ────────────────────── */

/* Hero image caption */
.am-image-caption {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Hero fine print — strengthen specificity */
.am-hero-fine {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.38) !important;
  margin-top: 12px;
}

/* Stats band — colored side labels */
.am-stats-side-label--gains { color: var(--accent); }
.am-stats-side-label--shift { color: var(--amber); }

/* Stats band — gains column right border (replaces empty divider container) */
.am-stats-gains-col {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 60px !important;
}

/* Working Together — whiteboard image (text-editor widget, bypasses lazy loading) */
.am-whiteboard-wrap {
  overflow: hidden;
  border-radius: 12px;
}
.am-whiteboard-img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Why Pipeline — image widget: target inner img */
.am-why-img-widget img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  border-radius: 0 !important;
}
.am-why-img-widget .elementor-widget-container {
  overflow: hidden;
  border-radius: 12px 12px 0 0; /* clips image to match card's top corner radius */
}

/* Why Pipeline — card body paragraph (descendant selector .am-why-card p no longer
   fires since the card is now a native Elementor container, not a CSS class) */
.am-why-body {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Where Harder — image widget: target inner img */
.am-bp-img-widget img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Where Harder — card body paragraph (descendant selector .am-bp-card p no longer
   fires since the card is now a native Elementor container, not a CSS class) */
.am-bp-body {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Full Pipeline — centered intro paragraph */
.am-pipeline-intro {
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* Stage description name colour variants */
.am-stage-desc-gate   { color: #92400e; }
.am-stage-desc-deploy { color: var(--accent); }

/* Stage badge — green variant */
.am-stage-badge--green {
  color: #065f46;
  background: rgba(0, 178, 122, 0.08);
}

/* Stage 5 — developer task governance 2-col grid */
.am-stage-5-govlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  margin-top: 4px;
}
.am-stage-5-govlist-item {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Stage 5 — automated footer extra top margin */
.am-stage-automated--mt { margin-top: 8px; }

/* Brute-force callout — typography classes */
.am-brute-warn-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.am-brute-title {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.am-brute-body {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.am-pipeline-adds-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.am-pipeline-adds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.am-pipeline-adds-item {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Throughput callout — typography classes */
.am-throughput-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-primary);
  display: block;
}
.am-throughput-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}
.am-throughput-title {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 6px;
}
.am-throughput-body {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Domain Fit — depth fill width variants */
.am-depth-fill--100 { width: 100%; }
.am-depth-fill--70  { width: 70%; }
.am-depth-fill--45  { width: 45%; }
.am-depth-fill--25  { width: 25%; }

/* CTA — white-on-dark description text */
.am-cta-desc--dark {
  color: rgba(255, 255, 255, 0.68) !important;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
}

/* Section body text helpers */
.am-section-body {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}
.am-section-intro {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   AI Adoption & Transition Page — Custom Components
   ========================================================================== */

/* ── S2 Stats Band: gain/shift numbers ─────────────────────────────────── */
.am-gains-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px; font-weight: 700;
  color: var(--accent);
  display: block; margin-bottom: 2px;
}
.am-shift-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px; font-weight: 700;
  color: var(--amber);
  display: block; margin-bottom: 2px;
}
.am-stats-band-divider {
  width: 1px; background: rgba(255,255,255,0.12);
  margin: 0; align-self: stretch;
  min-height: 100px;
}

/* ── S3 Win-Cards (Opportunity section) ─────────────────────────────────── */
.am-win-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  margin-bottom: 16px;
}
.am-win-card:last-child { margin-bottom: 0; }
.am-win-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--accent-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.am-win-card h4 {
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--text-dark); margin: 0 0 4px;
}
.am-win-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin: 0 0 6px; }
.am-win-stat {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--accent); font-weight: 600; display: block;
}

/* ── S4 Question Callout ─────────────────────────────────────────────────── */
.am-question-callout {
  background: var(--blue-deep); border-radius: 16px;
  padding: 40px 44px; margin-bottom: 32px; position: relative; overflow: hidden;
}
.am-question-callout::before {
  content: '"'; font-family: 'Raleway', sans-serif;
  font-size: 180px; font-weight: 800; color: rgba(255,255,255,0.04);
  position: absolute; top: -20px; left: 24px; line-height: 1;
}
.am-q-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); display: block; margin-bottom: 16px;
}
.am-question-callout h3 {
  font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 800;
  color: #fff !important; line-height: 1.3; margin: 0 0 16px;
}
.am-question-callout p { font-size: 15px; color: rgba(255,255,255,0.68); line-height: 1.7; margin: 0; }

/* ── S4 Force Cards ──────────────────────────────────────────────────────── */
.am-force-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.am-force-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; border-top: 3px solid var(--amber);
}
.am-force-card .f-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.am-force-card h4 {
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text-dark); margin: 0 0 6px;
}
.am-force-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ── S4 Shadow AI Stats ──────────────────────────────────────────────────── */
.am-shadow-ai {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px;
}
.am-shadow-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 20px; display: block;
}
.am-shadow-stat-list { display: flex; flex-direction: column; gap: 20px; }
.am-shadow-stat-item { display: flex; gap: 16px; align-items: flex-start; }
.am-s-num {
  font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700;
  color: var(--amber); line-height: 1; flex-shrink: 0; min-width: 80px;
}
.am-s-text { font-size: 13px; color: var(--text-body); line-height: 1.6; }
.am-s-source {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 3px;
}

/* ── S5 Resistance Items ─────────────────────────────────────────────────── */
.am-resistance-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.am-resistance-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream); border-radius: 8px; padding: 16px 18px;
}
.am-ri-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.am-ri-text h4 {
  font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text-dark); margin: 0 0 3px;
}
.am-ri-text p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin: 0; }

/* ── S5 Change Callout ───────────────────────────────────────────────────── */
.am-change-callout {
  background: var(--accent-light); border: 1px solid rgba(0,178,122,0.25);
  border-radius: 12px; padding: 24px 28px;
}
.am-change-callout h4 {
  font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--text-dark); margin: 0 0 10px;
}
.am-change-callout p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin: 0; }
.am-change-callout strong { color: var(--accent); }

/* ── S6 Failure Band ─────────────────────────────────────────────────────── */
.am-failure-band {
  background: #1a0a0a; border-radius: 16px;
  padding: 36px 40px; margin-bottom: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.am-f-stat {}
.am-f-num {
  font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 700;
  color: #EF4444; display: block; margin-bottom: 4px;
}
.am-f-source {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1.5px;
  display: block; margin-bottom: 6px;
}
.am-f-label { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; margin: 0; }

/* ── S6 Risk Cards ───────────────────────────────────────────────────────── */
.am-risk-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.am-risk-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; position: relative; overflow: hidden;
}
.am-risk-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: #EF4444;
}
.am-risk-card .r-icon { font-size: 20px; margin-bottom: 14px; display: block; }
.am-risk-card h4 {
  font-family: 'Raleway', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--text-dark); margin: 0 0 8px;
}
.am-risk-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ── S7 Approach Steps ───────────────────────────────────────────────────── */
.am-approach-steps { display: flex; flex-direction: column; gap: 3px; }
.am-approach-step {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: start;
}
.am-step-num-text {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; color: var(--blue-primary); text-transform: uppercase;
  margin: 0 0 6px; display: block;
}
.am-step-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 1px; padding: 3px 8px; border-radius: 8px;
  display: inline-block; white-space: nowrap;
}
.am-step-badge--assess  { background: var(--accent-light); color: #0a6649; }
.am-step-badge--identify { background: rgba(0,120,200,0.12); color: #004f8a; }
.am-step-badge--pilot   { background: var(--amber-light); color: #92400e; }
.am-step-badge--change  { background: rgba(139,92,246,0.12); color: #5b21b6; }
.am-step-badge--scale   { background: var(--accent-light); color: #0a6649; }
.am-approach-step h3 {
  font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--text-dark); margin: 0 0 8px;
}
.am-approach-step p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin: 0; }
.am-step-highlight {
  font-size: 13px; color: var(--accent); font-weight: 600;
  margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border);
  display: block;
}
