/*
 * Analytee ORM Theme — Custom Styles
 * Theme: Analytee ORM | Focus: Review Analytics & Reputation Management
 * Complements the Nova Vite/Tailwind bundle.
 */

/* ── Base tokens ──────────────────────────────────────────── */
:root {
  --orm-teal:      #0d9488;
  --orm-teal-dark: #0f766e;
  --orm-teal-light:#99f6e4;
  --orm-teal-rgb: 13 148 136;
  --orm-teal-dark-rgb: 15 118 110;
  --orm-teal-light-rgb: 153 246 228;
  --orm-teal-accent: #14b8a6;
  --orm-teal-accent-rgb: 20 184 166;
  --orm-cyan-accent: #06b6d4;
  --orm-cyan-accent-rgb: 6 182 212;
  --orm-slate:     #0f172a;
  --orm-slate-mid: #1e293b;
  --orm-body-bg:   #ffffff;
  --orm-text:      #0f172a;
  --orm-radius:    1rem;
  --orm-font:      'Inter', 'DM Sans', -apple-system, sans-serif;
  --orm-space-section: clamp(4rem, 8vw, 6rem);
  --orm-space-section-tight: clamp(3rem, 5vw, 4.5rem);
  --orm-space-card: clamp(1rem, 2.5vw, 1.5rem);
  --orm-text-display: clamp(2.25rem, 4vw, 3.5rem);
  --orm-text-section: clamp(1.875rem, 3vw, 2.5rem);
  --orm-safe-header: 5rem;
  --orm-cookie-offset: 0px;
}

/* ── Reset helpers ────────────────────────────────────────── */
.theme-analytee-orm {
  font-family: var(--orm-font);
  background: var(--orm-body-bg);
  color: var(--orm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--orm-safe-header) + 1rem);
  --orm-cookie-offset: 0px;
}
.theme-analytee-orm[data-cookie-bar-visible='true'] {
  padding-bottom: var(--orm-cookie-offset);
}
.orm-skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
  z-index: 1200;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #ffffff;
  border-radius: 0.875rem;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.orm-skip-link:focus {
  transform: translateY(0);
}
.orm-main-shell {
  min-width: 0;
}

/* ── Shared page shell primitives ──────────────────────────── */
.orm-page-shell {
  position: relative;
}
.orm-page-shell--marketing {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.42) 0%, rgba(255, 255, 255, 0) 18rem);
}
.orm-page-shell--legal {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}
.orm-legal-shell {
  padding-inline: 1rem;
}
.orm-legal-card {
  overflow-wrap: anywhere;
}
.orm-page-intro,
.orm-section-intro {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.orm-section-intro--compact {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.orm-section {
  padding-block: var(--orm-space-section);
}
.orm-section--tight {
  padding-block: var(--orm-space-section-tight);
}
.orm-section--page {
  padding-block: clamp(4.5rem, 7vw, 6rem);
}
.orm-section--band {
  padding-block: clamp(2.5rem, 5vw, 3.25rem);
}
.orm-section--hero {
  padding-block: 0;
}
.orm-section--dark {
  color: #ffffff;
}
.orm-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.orm-eyebrow--muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}
.orm-eyebrow--surface {
  border-color: #e2e8f0;
  background: #ffffff;
  color: #475569;
}
.orm-eyebrow--dark {
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(20, 184, 166, 0.1);
  color: #5eead4;
}

/* ── Prose overrides for blog content ─────────────────────── */
.theme-analytee-orm .prose h1,
.theme-analytee-orm .prose h2,
.theme-analytee-orm .prose h3 {
  color: #0f172a;
  font-weight: 700;
}
.theme-analytee-orm .prose a {
  color: var(--orm-teal);
}
.theme-analytee-orm .prose a:hover {
  color: var(--orm-teal-dark);
}

/* ── Header sticky shadow ──────────────────────────────────── */
.theme-analytee-orm #orm-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (min-width: 1024px) {
  .theme-analytee-orm #orm-header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ── Hero dashboard panel gradient ────────────────────────── */
.orm-hero-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ── Teal accent button ────────────────────────────────────── */
.orm-btn-primary {
  background: var(--orm-teal);
  color: #ffffff;
  border-radius: var(--orm-radius);
  font-weight: 600;
  transition: background 0.2s ease;
}
.orm-btn-primary:hover {
  background: var(--orm-teal-dark);
}

/* ── Section badge ─────────────────────────────────────────── */
.orm-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
}

/* ── Feature card hover ring ───────────────────────────────── */
.theme-analytee-orm .feature-card:hover {
  box-shadow: 0 0 0 2px var(--orm-teal-light), 0 8px 24px rgba(13,148,136,0.1);
}

/* ── Animated pulse dot ────────────────────────────────────── */
@keyframes orm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.orm-pulse {
  animation: orm-pulse 2s ease-in-out infinite;
}

/* ── Cookie bar override ────────────────────────────────────── */
.theme-analytee-orm .cookie-policy-bar {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.orm-cookie-bar-layer {
  z-index: 1100;
}
.theme-analytee-orm .cookie-policy-bar[hidden] {
  display: none !important;
}
.orm-cookie-panel {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
}
.orm-cookie-accept {
  background: #0d9488;
}

/* ── Scrollbar (webkit) ────────────────────────────────────── */
.theme-analytee-orm ::-webkit-scrollbar {
  width: 6px;
}
.theme-analytee-orm ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.theme-analytee-orm ::-webkit-scrollbar-thumb {
  background: var(--orm-teal);
  border-radius: 999px;
}

/* ── KPI metric number ─────────────────────────────────────── */
.orm-kpi-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}
.orm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}
.orm-kpi-card {
  padding: clamp(1.25rem, 2.2vw, 1.5rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

/* ── Dashboard fake panel ──────────────────────────────────── */
.orm-dashboard-badge {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  color: #94a3b8;
}

/* ── Header nav — desktop visible, mobile hidden ──────────── */
/* Replaces: hidden lg:flex (lg:flex not in Nova bundle)       */
.orm-header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .orm-header-nav { display: flex; }
}

/* ── Header CTAs — desktop only ───────────────────────────── */
/* Replaces: hidden lg:inline-block (not in Nova bundle)       */
.orm-header-cta {
  display: none;
}
@media (min-width: 1024px) {
  .orm-header-cta { display: inline-block; }
}

/* ── Mobile-only elements ─────────────────────────────────── */
/* Replaces: lg:hidden (safe—IS in Nova bundle, kept as-is)    */
.orm-mobile-only {
  display: block;
}
@media (min-width: 1024px) {
  .orm-mobile-only { display: none !important; }
}

/* ── Testimonial card subtle gradient ──────────────────────── */
.theme-analytee-orm .testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

/* ── Focus visible for accessibility ──────────────────────── */
.theme-analytee-orm *:focus-visible {
  outline: 2px solid var(--orm-teal);
  outline-offset: 2px;
}
.orm-touch-target {
  min-width: 2.75rem;
  min-height: 2.75rem;
  touch-action: manipulation;
}

.orm-full-height-page {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ════════════════════════════════════════════════════════════
   LAYOUT UTILITIES — independent of Nova's Tailwind bundle
   These replace Tailwind responsive classes not compiled in Nova
   ════════════════════════════════════════════════════════════ */

/* ── Hero two-column grid ─────────────────────────────────── */
.orm-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.orm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1.5rem;
}
.orm-pricing-card[data-featured='true'] .orm-pricing-cta {
  background-color: #ffffff;
  color: #0f766e !important;
}
.orm-pricing-card[data-featured='true'] .orm-pricing-cta:hover,
.orm-pricing-card[data-featured='true'] .orm-pricing-cta:focus-visible {
  background-color: #f0fdfa;
  color: #0f766e !important;
}
.orm-hero-left {
  padding: var(--orm-space-section-tight) 0 clamp(2.5rem, 6vw, 4rem);
}
.orm-hero-right {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.orm-hero-section {
  padding-block-start: 4rem;
}
.orm-hero-shell {
  padding-block-end: 0;
}
.orm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.375rem 0.75rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
}
.orm-hero-bg {
  background: radial-gradient(ellipse at 85% 20%, rgba(153,246,228,0.45) 0%, transparent 65%), linear-gradient(135deg, #f0fdfa 0%, #ffffff 45%, #f8fafc 100%);
}
.orm-hero-dot-grid {
  background-image: radial-gradient(circle, rgba(13,148,136,0.82) 1.25px, transparent 1.25px);
  background-size: 28px 28px;
  opacity: 0.15;
}
.orm-hero-badge-dot {
  animation: orm-hero-pulse 2s ease-in-out infinite;
}
.orm-hero-cta-primary {
  background: #0d9488;
  box-shadow: 0 4px 18px rgba(13,148,136,0.25);
}
.orm-hero-cta-primary:hover,
.orm-hero-cta-primary:focus-visible {
  background: #0f766e;
}
.orm-hero-title {
  margin-bottom: 1.5rem;
  font-size: var(--orm-text-display);
  line-height: 1.08;
  text-wrap: balance;
}
.orm-hero-subtitle {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.125rem);
  line-height: 1.75;
}
.orm-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-bottom: 2.25rem;
}
.orm-hero-stat-divider {
  width: 1px;
  height: 2rem;
  background: #e2e8f0;
}
.orm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.orm-hero-media {
  width: min(100%, 34rem);
  margin-inline: auto;
}
.orm-hero-photo-wrap {
  position: relative;
  width: min(100%, clamp(18rem, 42vw, 31rem));
  margin-inline: auto;
}
.orm-hero-photo-glow {
  position: absolute;
  inset: 6%;
  background: radial-gradient(ellipse at 60% 30%, rgba(153,246,228,0.55) 0%, transparent 65%);
  filter: blur(32px);
  border-radius: 50%;
}
.orm-hero-ring {
  position: absolute;
  inset-inline-end: clamp(-0.875rem, -1vw, -0.5rem);
  border-radius: 999px;
}
.orm-hero-ring-lg {
  top: clamp(-0.875rem, -1vw, -0.5rem);
  width: clamp(3.75rem, 10vw, 5rem);
  aspect-ratio: 1;
  border: 3px solid rgba(13,148,136,0.18);
  background: transparent;
}
.orm-hero-ring-sm {
  top: clamp(-0.375rem, -0.4vw, -0.125rem);
  inset-inline-end: clamp(-0.375rem, -0.4vw, -0.125rem);
  width: clamp(2.75rem, 7vw, 3.5rem);
  aspect-ratio: 1;
  background: rgba(13,148,136,0.08);
}
.orm-hero-photo-frame {
  position: relative;
  overflow: clip;
  border-radius: 2rem 2rem 1.25rem 1.25rem;
  box-shadow: 0 24px 60px rgba(15,23,42,0.14), 0 4px 16px rgba(13,148,136,0.08);
  border: 1.5px solid rgba(255,255,255,0.85);
  aspect-ratio: 3 / 4;
}
.orm-hero-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}
.orm-hero-photo-scrim {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10,15,30,0.62) 0%, rgba(10,15,30,0.12) 60%, transparent 100%);
}
.orm-hero-floating-card {
  position: absolute;
  inset-block-end: clamp(0.875rem, 2vw, 1.25rem);
  z-index: 30;
}
.orm-hero-floating-card-left {
  inset-inline-start: clamp(0.875rem, 2vw, 1.25rem);
  inline-size: min(68%, 16rem);
}
.orm-hero-floating-card-right {
  inset-inline-end: clamp(0.875rem, 2vw, 1.25rem);
}
.orm-hero-info-card {
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 24px rgba(15,23,42,0.14);
}
.orm-hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}
.orm-hero-info-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.orm-hero-info-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.orm-hero-info-meta {
  margin-top: 2px;
  font-size: 0.7rem;
  color: #64748b;
}
.orm-hero-reputation-card {
  min-width: 4rem;
  padding: 0.625rem 0.875rem;
  text-align: center;
  background: #0d9488;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13,148,136,0.35);
}
.orm-hero-reputation-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.orm-hero-reputation-label {
  margin-top: 2px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.80);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.orm-hero-insight-feed {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: clamp(-1.25rem, -1.5vw, -0.5rem);
  z-index: 20;
}
.orm-hero-insight-feed-card {
  width: min(14rem, 58vw);
  padding: 0.75rem 0.875rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
}
.orm-hero-feed-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.orm-hero-feed-icon-warm {
  background: #fef3c7;
}
.orm-hero-feed-icon-cool {
  background: #d1fae5;
}
.orm-hero-feed-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
}
.orm-hero-feed-subtitle {
  font-size: 0.62rem;
  color: #94a3b8;
}
.orm-hero-feed-chip {
  margin-inline-start: auto;
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border-radius: 999px;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .orm-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  }
  .orm-hero-left {
    padding: clamp(4rem, 7vw, 5rem) 0 clamp(4rem, 6vw, 4.5rem);
  }
  .orm-hero-right {
    padding: clamp(4rem, 7vw, 5rem) 0 0;
    justify-content: flex-end;
  }
  .orm-hero-media {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
  .orm-trust-bar {
    gap: 2.5rem 3.75rem;
  }
}

/* ── Hero pulse dot animation (moved from home.blade.php inline style) ── */
@keyframes orm-hero-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.55; transform: scale(0.88); }
}

@media (max-width: 639px) {
    .orm-hero-section {
      padding-block-start: 2.75rem;
    }
    .orm-hero-left {
      padding-inline: 0;
      padding-bottom: 1.5rem;
    }
    .orm-hero-right {
      padding-inline: 0;
    }
    .orm-hero-badge {
      width: 100%;
      justify-content: center;
      margin-bottom: 1.25rem;
      text-align: center;
    }
    .orm-hero-title {
      margin-bottom: 1rem;
      font-size: clamp(2.35rem, 9vw, 3rem);
      line-height: 1.04;
    }
    .orm-hero-subtitle {
      margin-bottom: 1.5rem;
      font-size: 1rem;
      line-height: 1.65;
    }
    .orm-hero-stats {
      margin-bottom: 1.5rem;
      gap: 0.75rem 1rem;
      justify-content: space-between;
    }
    .orm-hero-stat-divider {
      display: none;
    }
    .orm-hero-actions {
      flex-direction: column;
      align-items: stretch;
      margin-bottom: 1rem;
    }
    .orm-hero-actions a {
      width: 100%;
      justify-content: center;
      text-align: center;
    }
    .orm-hero-photo-wrap {
      width: min(100%, 24rem);
    }
    .orm-hero-floating-card-left {
      inline-size: min(63%, 13rem);
    }
    .orm-hero-insight-feed {
      display: none !important;
    }
}

/* ── Generic 3-column grid ────────────────────────────────── */
/* Used in: Solutions, How-it-works, Features, Pricing        */
.orm-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.orm-grid-3-wide {
  gap: 2rem;
}
.orm-grid-3-tight {
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .orm-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .orm-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ════════════════════════════════════════════════════════════
   DESIGN ENHANCEMENTS v2
   ════════════════════════════════════════════════════════════ */

/* ── Scroll Reveal Animations ─────────────────────────────── */
/*
 * IMPORTANT: reveal-left and reveal-right intentionally use translateY,
 * NOT translateX. Most sections use overflow:hidden (to clip decorative
 * background blobs). A horizontal translate would be clipped by the
 * section boundary before JS adds .is-visible, making content invisible
 * on mobile. Using translateY avoids horizontal clipping entirely.
 */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up    { transform: translateY(24px); }
.reveal-left  { transform: translateY(24px); }   /* was translateX(-32px) — caused clip */
.reveal-right { transform: translateY(24px); }   /* was translateX(32px)  — caused clip */
.reveal-fade  { transform: none; }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* Safety net: if JS never fires (slow load, error, no-JS),
   reveal elements become visible after a short CSS animation delay.  */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  animation: orm-reveal-fallback 0s 2.5s forwards;
}
@keyframes orm-reveal-fallback {
  to { opacity: 1; transform: none; }
}
/* Once JS adds .is-visible, override the animation (transition takes over) */
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-fade.is-visible {
  animation: none;
}

/* Stagger for direct children of .reveal-stagger */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.54s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.63s; }
.reveal-stagger > *:nth-child(9) { transition-delay: 0.72s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* ── CTA Button Shine Sweep ───────────────────────────────── */
.orm-btn-shine {
  position: relative;
  overflow: hidden;
}
.orm-btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
}
.orm-btn-shine:hover::after {
  left: 140%;
  transition: left 0.6s ease;
}
.orm-rating-stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
}

/* ── Gradient Text (teal) ─────────────────────────────────── */
.orm-gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero animated floating orbs ─────────────────────────── */
@keyframes orm-orb-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  45%       { transform: translateY(-18px) scale(1.05); }
}
@keyframes orm-orb-drift-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%       { transform: translateY(-12px) rotate(4deg); }
  70%       { transform: translateY(-6px) rotate(-2deg); }
}
.orm-orb-float   { animation: orm-orb-drift   7s ease-in-out infinite; }
.orm-orb-float-2 { animation: orm-orb-drift-2 9s ease-in-out infinite; }

/* ── Testimonial large serif quote mark ──────────────────── */
.orm-quote-card {
  position: relative;
  overflow: hidden;
}
.orm-quote-card::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 0.9rem;
  font-size: 6rem;
  line-height: 1;
  color: #f1f5f9;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.orm-quote-card > * {
  position: relative;
  z-index: 1;
}

/* ── Trust bar fade-edge masks ────────────────────────────── */
.orm-trust-bar {
  position: relative;
}
.orm-trust-bar::before,
.orm-trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5rem;
  z-index: 2;
  pointer-events: none;
}
.orm-trust-bar::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc 0%, transparent 100%);
}
.orm-trust-bar::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc 0%, transparent 100%);
}

/* ── Card hover lift ──────────────────────────────────────── */
.orm-card-hover {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
}
.orm-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(13, 148, 136, 0.13);
}

/* ── Contact form inputs ──────────────────────────────────── */
.orm-contact-shell {
  padding-block: var(--orm-space-section);
}
.orm-contact-section {
  background: #f1f5f9;
}
.orm-contact-texture {
  background-image: radial-gradient(circle, rgba(13,148,136,0.45) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.065;
}
.orm-contact-top-accent {
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #06b6d4 100%);
}
.orm-contact-badge {
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.2);
}
.orm-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.orm-contact-promo-card {
  background: linear-gradient(140deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 20px 55px rgba(15,23,42,0.22), 0 2px 10px rgba(15,23,42,0.08);
  border: 1px solid rgba(148,163,184,0.18);
}
.orm-contact-promo-inner {
  padding: 2.15rem 1.9rem 1.9rem;
}
.orm-contact-promo-pill {
  background: rgba(20,184,166,0.11);
  border: 1px solid rgba(20,184,166,0.28);
}
.orm-contact-promo-copy {
  color: #94a3b8;
}
.orm-contact-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.orm-contact-stat-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
}
.orm-contact-stat-label {
  color: #64748b;
}
.orm-contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.orm-contact-form-card {
  box-shadow: 0 18px 48px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.05);
  border: 1px solid rgba(226,232,240,0.95);
}
.orm-contact-form-accent {
  height: 4px;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 55%, #06b6d4 100%);
}
.orm-contact-form-head {
  border-bottom: 1px solid #f1f5f9;
}
.orm-contact-success-icon {
  background: linear-gradient(135deg, #ccfbf1, #f0fdfa);
  border: 2px solid #99f6e4;
}
.orm-contact-form-icon {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.orm-contact-form-subtitle {
  color: #94a3b8;
}
.orm-contact-label,
.orm-contact-helper {
  color: #64748b;
}
.orm-contact-input {
  background: #f8fafc;
  border-color: #e2e8f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.orm-contact-error {
  border: 1px solid #fecaca;
}
.orm-contact-footnote {
  color: #94a3b8;
}
.orm-contact-submit {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 18px rgba(13,148,136,0.3);
}
.orm-contact-submit:hover,
.orm-contact-submit:focus-visible {
  filter: brightness(1.07);
}
.orm-contact-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
  background: #ffffff;
}
@media (max-width: 767px) {
  .orm-contact-form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1023px) {
  .orm-contact-grid {
    gap: 1.75rem;
  }
}

.orm-language-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
}
.orm-language-menu-layer {
  z-index: 1100;
  pointer-events: auto;
}
.orm-language-menu[hidden] {
  display: none !important;
}
.orm-language-option {
  min-height: 2.75rem;
  touch-action: manipulation;
}
.orm-language-option[aria-current="true"] {
  cursor: default;
}
.theme-analytee-orm #orm-mobile-drawer {
  pointer-events: none;
}
.theme-analytee-orm #orm-mobile-drawer.is-open {
  pointer-events: auto;
}
.theme-analytee-orm #orm-mobile-drawer[hidden] {
  display: none !important;
  pointer-events: none;
}
.theme-analytee-orm #orm-mobile-backdrop {
  pointer-events: auto;
}
.orm-mobile-close,
.pricing-tooltip-trigger {
  min-width: 2.75rem;
  min-height: 2.75rem;
}
.pricing-tooltip-content[hidden] {
  display: none !important;
}
.pricing-tooltip-content {
  max-width: min(20rem, calc(100vw - 2rem));
}
.orm-solutions-glow {
  background: radial-gradient(circle at 10% 50%, #14b8a6, transparent 40%);
}
.orm-prefooter-cta {
  overflow: hidden;
  background-color: #0f172a;
  background-image: linear-gradient(135deg, #0f172a 0%, #111827 52%, #0b1220 100%);
  background-repeat: no-repeat;
}
.orm-prefooter-cta h2,
.orm-prefooter-cta .text-white {
  color: #ffffff;
}
.orm-prefooter-cta .text-slate-300 {
  color: #cbd5e1;
}
.orm-prefooter-cta .text-slate-200 {
  color: #e2e8f0;
}
.orm-prefooter-cta .text-slate-400 {
  color: #94a3b8;
}
.orm-prefooter-cta-glow {
  background-image: radial-gradient(circle at 20% 50%, #14b8a6 0%, transparent 50%), radial-gradient(circle at 80% 20%, #0ea5e9 0%, transparent 50%);
}
.orm-footer-shell {
  padding-block: clamp(3.5rem, 6vw, 4.5rem);
}
.orm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}
.orm-footer-link {
  color: #cbd5e1;
}
.orm-footer-link:hover,
.orm-footer-link:focus-visible {
  color: #5eead4;
}
.orm-footer-copy {
  color: #94a3b8;
}
.orm-footer-copy-muted {
  color: #64748b;
}
.faq-trigger {
  cursor: pointer;
}
.faq-item {
  box-shadow: none;
}
.faq-item.is-open {
  border-color: #14b8a6;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.faq-body {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

@media (max-width: 767px) {
  .orm-page-shell--legal {
    padding-block: clamp(3.5rem, 7vw, 4.5rem);
  }
  .orm-legal-shell {
    padding-inline: 0.75rem;
  }
  .pricing-tooltip-content {
    inset-inline-start: auto !important;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 0.75rem);
    margin-left: 0 !important;
    transform: none !important;
    min-width: min(18rem, calc(100vw - 2rem));
  }
}

/* ════════════════════════════════════════════════════════════
   BLOG PAGES — editorial layout utilities
   ════════════════════════════════════════════════════════════ */

.blog-index-hero {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.blog-index-hero__shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88));
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-index-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-index-hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.42;
}

.blog-index-hero__orb--primary {
  top: -4rem;
  right: -3rem;
  width: 18rem;
  height: 18rem;
  background: rgba(56, 189, 248, 0.18);
}

.blog-index-hero__orb--secondary {
  bottom: -2rem;
  left: 28%;
  width: 12rem;
  height: 12rem;
  background: rgba(59, 130, 246, 0.14);
}

.blog-index-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 80%);
}

.blog-index-hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.blog-index-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.9);
}

.blog-index-hero__headline {
  max-width: 48rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #f8fafc;
}

.blog-index-hero__subtitle {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.8;
  color: rgba(226, 232, 240, 0.9);
}

.blog-index-hero__description {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(203, 213, 225, 0.84);
}

.blog-index-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.blog-index-hero__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.88);
}

.blog-index-hero__panel {
  position: relative;
  z-index: 1;
  display: none;
}

.blog-index-hero__panel-frame {
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(2, 6, 23, 0.18);
}

.blog-index-hero__panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.blog-index-hero__panel-kicker,
.blog-index-hero__panel-status {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
}

.blog-index-hero__signal-list {
  display: grid;
  gap: 1rem;
}

.blog-index-hero__signal-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.blog-index-hero__signal-key {
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.82);
}

.blog-index-hero__signal-bar {
  position: relative;
  display: block;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
}

.blog-index-hero__signal-bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.95), rgba(96, 165, 250, 0.65));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
}

.blog-index-hero__signal-bar--lg::after {
  width: 84%;
}

.blog-index-hero__signal-bar--md::after {
  width: 62%;
}

.blog-index-hero__signal-bar--sm::after {
  width: 46%;
}

.blog-index-hero__panel-card {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.48);
}

.blog-index-hero__panel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.9);
}

.blog-index-hero__panel-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.84);
}

/* ── Sticky category nav with glass effect ─────────────────── */
.blog-cat-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #f1f5f9;
}

/* ── Hide scrollbar on category scroll strip ───────────────── */
.blog-cat-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-cat-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Blog card: consistent 16:9 editorial image ratio ─────── */
.blog-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.group:hover .blog-card-img img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG INDEX — editorial magazine layout
   Featured + secondary + compact column on desktop
   No linear list; supportive rail and secondary grid below
   ═══════════════════════════════════════════════════════════════ */

.blog-editorial-stage {
  display: grid;
  gap: 1rem;
}

.blog-editorial-stage__heading {
  display: grid;
  gap: 0.45rem;
  max-width: 44rem;
}

.blog-editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f766e;
}

.blog-editorial-intro {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #64748b;
}

.blog-editorial-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-edit-card,
.blog-story-card,
.blog-index-panel,
.blog-index-cta {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.4rem;
  overflow: hidden;
  min-width: 0;
}

.blog-edit-card,
.blog-story-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.blog-edit-card:hover,
.blog-story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.22);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.blog-edit-card__media,
.blog-story-card__media {
  display: block;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-edit-card__media picture,
.blog-story-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-edit-card__media img,
.blog-story-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-edit-card:hover .blog-edit-card__media img,
.blog-story-card:hover .blog-story-card__media img {
  transform: scale(1.045);
}

.blog-edit-card__body,
.blog-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.blog-edit-card__body {
  padding: 1rem 1rem 1.05rem;
}

.blog-story-card__body {
  padding: 1rem;
}

.blog-edit-card__eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
}

.blog-edit-card__eyebrow--soft {
  margin-bottom: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.blog-edit-card__meta-row,
.blog-story-card__meta,
.blog-edit-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-edit-card__meta-row,
.blog-story-card__meta {
  margin-bottom: 0.65rem;
}

.blog-edit-card__meta {
  margin-top: auto;
  padding-top: 1rem;
}

.blog-edit-card__date {
  flex-shrink: 0;
  font-size: 0.74rem;
  line-height: 1;
  color: #94a3b8;
  white-space: nowrap;
}

.blog-edit-card__title,
.blog-story-card__title {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.blog-edit-card__title--featured {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.blog-edit-card__title--secondary {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin-bottom: 0.6rem;
}

.blog-edit-card__title--compact {
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
}

.blog-story-card__title {
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
}

.blog-edit-card__excerpt,
.blog-story-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #64748b;
}

.blog-edit-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f766e;
  transition: color 0.2s ease;
}

.blog-edit-card__action:hover,
.blog-edit-card__action:focus-visible {
  color: #115e59;
}

.blog-edit-card--featured .blog-edit-card__media {
  aspect-ratio: 5 / 4;
}

.blog-edit-card--secondary .blog-edit-card__media {
  aspect-ratio: 4 / 3;
}

.blog-edit-card--compact .blog-edit-card__media,
.blog-story-card__media {
  aspect-ratio: 16 / 10;
}

.blog-index-utility-grid {
  display: grid;
  gap: 1rem;
}

.blog-index-panel {
  padding: 1.1rem;
}

.blog-index-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.blog-index-panel__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.blog-index-panel__meta {
  font-size: 0.74rem;
  color: #94a3b8;
}

.blog-index-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.9rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-index-link:hover,
.blog-index-link:focus-visible {
  background: #f8fafc;
  color: #0f766e;
}

.blog-index-link.is-active {
  background: #ecfeff;
  color: #0f766e;
  font-weight: 700;
}

.blog-index-link__count {
  flex-shrink: 0;
  font-size: 0.74rem;
  color: #94a3b8;
}

.blog-index-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-index-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-index-tag:hover,
.blog-index-tag:focus-visible {
  background: #ecfeff;
  color: #0f766e;
}

.blog-index-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: linear-gradient(140deg, #0f172a 0%, #134e4a 58%, #0f766e 100%);
  border: none;
  color: #ffffff;
}

.blog-index-cta__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(204, 251, 241, 0.92);
}

.blog-index-cta__title {
  max-width: 24rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
}

.blog-index-cta__body {
  margin-top: 0.7rem;
  margin-bottom: 1.25rem;
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(240, 253, 250, 0.82);
}

.blog-index-cta__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.8rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.2s ease;
}

.blog-index-cta__action:hover,
.blog-index-cta__action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.blog-story-section {
  display: grid;
  gap: 1rem;
}

.blog-story-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-story-section__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
}

.blog-story-section__intro {
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
}

.blog-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-story-card--wide,
.blog-story-card--tall,
.blog-story-card--standard {
  height: 100%;
}

.blog-story-card__body .blog-edit-card__action {
  margin-top: auto;
  padding-top: 0.95rem;
}

@media (min-width: 768px) {
  .blog-index-hero__shell {
    padding: 2.25rem 1.75rem;
  }

  .blog-editorial-stage {
    gap: 1.15rem;
  }

  .blog-editorial-grid-v2 {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      "featured featured"
      "secondary compact-a"
      "secondary compact-b";
  }

  .blog-edit-card--featured { grid-area: featured; }
  .blog-edit-card--secondary { grid-area: secondary; }
  .blog-edit-card--compact-a { grid-area: compact-a; }
  .blog-edit-card--compact-b { grid-area: compact-b; }

  .blog-edit-card--featured {
    min-height: 29rem;
  }

  .blog-edit-card--featured .blog-edit-card__media {
    aspect-ratio: 16 / 9;
  }

  .blog-index-utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-index-cta {
    grid-column: 1 / -1;
  }

  .blog-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-story-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .blog-index-hero__shell {
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    align-items: center;
    padding: 2.5rem;
  }

  .blog-index-hero__panel {
    display: block;
  }

  .blog-editorial-grid-v2 {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.05fr) minmax(0, 0.82fr);
    grid-template-rows: minmax(15rem, 1fr) minmax(13rem, 1fr);
    grid-template-areas:
      "featured secondary compact-a"
      "featured secondary compact-b";
    align-items: stretch;
  }

  .blog-edit-card--featured,
  .blog-edit-card--secondary,
  .blog-edit-card--compact {
    height: 100%;
  }

  .blog-edit-card--featured .blog-edit-card__media {
    aspect-ratio: unset;
    height: 58%;
  }

  .blog-edit-card--secondary .blog-edit-card__media {
    aspect-ratio: unset;
    height: 46%;
  }

  .blog-edit-card--compact .blog-edit-card__media {
    aspect-ratio: unset;
    height: 48%;
  }

  .blog-index-utility-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .blog-index-cta {
    grid-column: auto;
  }

  .blog-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .blog-story-card--wide {
    grid-column: span 2;
  }

  .blog-story-card--tall .blog-story-card__media {
    aspect-ratio: 4 / 5;
  }
}

/* ── Compact horizontal list card (blog index) ──────────────── */
.blog-list-item {
  display: flex;
  min-height: 4.75rem;
}
.blog-list-thumb {
  display: block;
  width: 6rem;
  flex-shrink: 0;
  overflow: hidden;
  align-self: stretch;
}
.blog-list-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.group:hover .blog-list-thumb img {
  transform: scale(1.04);
}
@media (min-width: 640px) {
  .blog-list-thumb {
    width: 8rem;
  }
}

/* ── Featured post image (horizontal card) ─────────────────── */
.blog-feat-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 190px;       /* cap mobile/tablet height — prevents tall image below fold */
  overflow: hidden;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .blog-feat-img {
    aspect-ratio: unset;
    max-height: none;
    min-height: 200px;
    height: 100%;
  }
}
.blog-feat-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.group:hover .blog-feat-img img {
  transform: scale(1.035);
}

/* ── Blog detail hero image ─────────────────────────────────── */
.blog-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  min-height: 220px;
}
@media (max-width: 640px) {
  .blog-hero-img {
    aspect-ratio: 16 / 9;
  }
}
.blog-hero-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Blog article prose typography ─────────────────────────── */
/*
 * !important on font-size, font-weight, color, line-height for headings:
 * Many CMS editors (TinyMCE, CKEditor, Quill) inject inline style attributes
 * like style="font-size:11pt;color:#000" which would override external CSS.
 * The !important declarations here ensure structural hierarchy is always visible
 * regardless of what the CMS stored inside the content field.
 */
.blog-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.85;
}
.blog-prose > * + * { margin-top: 1.25rem; }
/* Quill/some editors emit <div> instead of <p> — give it paragraph rhythm */
.blog-prose > div { margin-bottom: 1.25rem; line-height: 1.85; }
.blog-prose h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.blog-prose h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}
.blog-prose h4 {
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.blog-prose p { margin: 0 0 1.25rem !important; }
.blog-prose a { color: var(--orm-teal); text-decoration: none; }
.blog-prose a:hover { text-decoration: underline; color: var(--orm-teal-dark); }
.blog-prose strong { color: #1e293b; font-weight: 700; }
.blog-prose em { color: #475569; }
.blog-prose ul,
.blog-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-prose ul { list-style-type: disc !important; }
.blog-prose ol { list-style-type: decimal !important; }
/* display:list-item !important — some editors reset li to display:block */
.blog-prose li { margin-bottom: 0.375rem; color: #334155; display: list-item !important; }
.blog-prose blockquote {
  border-left: 3px solid var(--orm-teal);
  background: #f0fdfa;
  border-radius: 0 0.875rem 0.875rem 0;
  padding: 1rem 1.375rem;
  margin: 1.75rem 0;
  color: #475569;
  font-style: normal;
}
.blog-prose blockquote p { margin: 0 !important; }
.blog-prose img { border-radius: 0.875rem; max-width: 100%; height: auto; }
.blog-prose figure { margin: 1.75rem 0; }
.blog-prose figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}
.blog-prose code {
  background: #f0fdfa;
  color: var(--orm-teal-dark);
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}
.blog-prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.375rem 1.5rem;
  border-radius: 0.875rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}
.blog-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}
.blog-prose hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.75rem 0;
}
.blog-prose th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
  padding: 0.625rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  color: #0f172a;
}
.blog-prose td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

/* ── Line clamp utilities (not in all Tailwind bundles) ─────── */
.blog-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Container constrained to 72rem (replaces inline max-width) */
.blog-container {
  max-width: 72rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Article title reading width + overflow guard ───────────── */
.blog-article-title {
  max-width: 48rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Search overlay backdrop (replaces inline backdrop-filter) ─ */
.blog-search-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Sidebar teal gradient CTA ──────────────────────────────── */
.blog-cta-sidebar {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

/* ── Main article-end CTA gradient ─────────────────────────── */
.blog-cta-main {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%);
}

/* ── CTA text max-widths ────────────────────────────────────── */
.blog-cta-title {
  max-width: 32rem;
  overflow-wrap: break-word;
}
.blog-cta-body {
  max-width: 34rem;
}

/* ── Ghost button: semi-transparent white on teal bg ────────── */
.blog-btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}
.blog-btn-ghost:hover,
.blog-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

/* ── Title overflow guard for all card/article titles ────────── */
.blog-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── Responsive hardening ───────────────────────────────────── */

/* Prevent horizontal overflow on very small viewports */
.blog-cat-nav {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Shrink hero vertical padding on mobile */
@media (max-width: 639px) {
  .orm-cookie-panel {
    padding: 0.75rem 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
  }

  .orm-cookie-panel .container > div {
    gap: 0.75rem;
    align-items: flex-end;
  }

  .theme-analytee-orm .cookie-policy-bar h3 {
    margin-bottom: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .theme-analytee-orm .cookie-policy-bar p {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .theme-analytee-orm .cookie-policy-bar .btn-decline,
  .theme-analytee-orm .cookie-policy-bar .btn-accept {
    min-height: 2.125rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.775rem;
  }

  .blog-index-hero__shell {
    padding: 1.25rem 0.95rem;
    border-radius: 1.25rem;
  }

  .blog-index-hero__headline {
    font-size: 1.9rem;
    line-height: 1.08;
  }

  .blog-index-hero__subtitle {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .blog-index-hero__description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .blog-index-hero__meta {
    margin-top: 1rem;
  }

  .blog-index-hero__meta-item {
    width: 100%;
    justify-content: center;
    border-radius: 1rem;
    text-align: center;
  }

  .blog-index-hero {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }

  .blog-cat-scroll {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  /* Tighten body section on mobile */
  .blog-body-section {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }
  /* CTA blocks reduce padding on mobile */
  .blog-cta-main,
  .blog-cta-sidebar {
    padding: 1.75rem;
  }
  /* Search overlay: start from top on very small screens */
  .blog-search-dialog {
    margin-top: 3.5rem;
  }
}

/* Featured post: compact equal-height image on desktop */
@media (min-width: 1024px) {
  .blog-feat-card {
    min-height: 200px;
  }
  .blog-feat-card .blog-feat-img {
    height: 100%;
  }
}

/* Overflow protection for prose tables on narrow screens */
@media (max-width: 767px) {
  .blog-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .blog-prose th,
  .blog-prose td {
    white-space: normal;
    min-width: 8rem;
  }
}
