/* ============================================================================
   services-ai-hub.css -- Shared utility CSS for the AI cluster pages.
   Pairs with /shared/firm.css. Used by:
     /AI-Implementation-Legal-Hub/
     /practice-areas/ai-implementation-attorney/
     /services/ai-implementation/*
     /showcase/
     /services/ai-output-rights/ (eligible)
   ----------------------------------------------------------------------------
   Why this file exists.
   Each AI-cluster page used to inline 15-90 KB of one-off CSS, with its own
   :root block, its own card shape, its own gradient hero, its own button
   color. The result reads as a thousand WordPress posts, not as one
   attorney-supervised boutique law firm. firm.css fixes the homepage,
   intake, and memo standards; this file fixes the AI-cluster equivalents.

   Token discipline.
   No new colors. Every utility class below either uses firm.css tokens
   (var(--accent), var(--text-primary), var(--surface), var(--border)) or
   transparent overlays for dark sections. The single allowed exception
   is the legacy AI-hub indigo accent (#4338ca/#6366f1) used in /showcase/
   and the practice-areas page; that is kept until those pages migrate to
   the firm.css accent for hero gradients.

   No em dashes anywhere in this file. No "AI Lawyer" copy in comments.
   First-person voice when class names mention attribution.
   ========================================================================== */

/* ============================================================================
   AI HUB PAGE WRAPPER
   ========================================================================== */

.ai-hub-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface, #f7f5f0);
  color: var(--text-primary, #0b1733);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.ai-hub-page * {
  box-sizing: border-box;
}

.ai-hub-page a,
.ai-hub-page button {
  -webkit-tap-highlight-color: rgba(30, 58, 138, 0.18);
  touch-action: manipulation;
}

/* ============================================================================
   HEADER (compact dark band)
   Used on AI-Implementation-Legal-Hub and ai-implementation services pages.
   ========================================================================== */

.ai-hub-header {
  background: #0b1733;
  padding: 0.85rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ai-hub-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.ai-hub-header a.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ai-hub-header a.brand span {
  color: #6366f1;
}
.ai-hub-header nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ai-hub-header nav a:hover { color: #fff; }
@media (max-width: 600px) {
  .ai-hub-header nav a { display: none; }
  .ai-hub-header nav a.cta {
    display: inline-flex;
    background: var(--accent, #1e3a8a);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    min-height: 44px;
  }
}

/* ============================================================================
   BREADCRUMBS
   ========================================================================== */

.ai-hub-breadcrumb {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
}
.ai-hub-breadcrumb a {
  color: var(--accent, #1e3a8a);
  text-decoration: none;
}
.ai-hub-breadcrumb a:hover { text-decoration: underline; }
.ai-hub-breadcrumb .sep {
  color: var(--text-tertiary, #94a3b8);
  margin: 0 0.4rem;
}

/* ============================================================================
   HERO (lawyer-led, calm, factual)
   Pairs with the firm.css accent token. Gradient kept restrained.
   ========================================================================== */

.ai-hub-hero {
  background: linear-gradient(135deg, var(--accent, #1e3a8a) 0%, #2c4cb6 100%);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
}
.ai-hub-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.ai-hub-hero .eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c7d2fe;
  margin-bottom: 0.5rem;
}
.ai-hub-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 820px;
}
.ai-hub-hero .sub {
  font-size: 1.05rem;
  color: #dbeafe;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.ai-hub-hero .cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.ai-hub-hero .pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.ai-hub-hero .pill {
  font-size: 0.78rem;
  color: #c7d2fe;
  background: rgba(255,255,255,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 600px) {
  .ai-hub-hero { padding: 2rem 1rem 1.5rem; }
  .ai-hub-hero .cta-row { flex-direction: column; align-items: stretch; }
  .ai-hub-hero .cta-row a { width: 100%; justify-content: center; }
}

/* ============================================================================
   BUTTONS (hero, package, CTA)
   ========================================================================== */

.ai-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--accent, #1e3a8a);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
}
.ai-hub-btn:hover { background: #dbeafe; }

.ai-hub-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  min-height: 48px;
  transition: background 0.2s;
}
.ai-hub-btn-outline:hover { background: rgba(255,255,255,0.2); }

.ai-hub-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s;
}
.ai-hub-btn-primary:hover {
  background: #142a64;
  transform: translateY(-1px);
}

.ai-hub-btn-ghost {
  display: inline-block;
  background: #f1f5f9;
  color: var(--text-primary, #0b1733);
  border: 1px solid #cbd5e1;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  text-align: center;
}
.ai-hub-btn-ghost:hover { background: #e2e8f0; }

/* ============================================================================
   CONTAINER + SECTION
   ========================================================================== */

.ai-hub-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}
.ai-hub-section {
  margin-bottom: 2rem;
}
.ai-hub-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary, #0b1733);
  margin: 0 0 0.5rem;
}
.ai-hub-section h2.center { text-align: center; }
.ai-hub-section .lede {
  font-size: 1rem;
  color: var(--text-secondary, #475569);
  margin-bottom: 1rem;
  max-width: 720px;
}
.ai-hub-section .lede.center { text-align: center; margin: 0 auto 1rem; }

@media (max-width: 600px) {
  .ai-hub-container { padding: 1rem; }
}

/* ============================================================================
   SERVICES / PACKAGES GRID + CARD
   ========================================================================== */

.ai-hub-services-grid,
.ai-hub-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.ai-hub-service-card,
.ai-hub-package-card {
  background: var(--surface-elevated, #fff);
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.ai-hub-service-card:hover,
.ai-hub-package-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.ai-hub-package-card.featured {
  border-color: var(--accent, #1e3a8a);
  position: relative;
}
.ai-hub-package-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ai-hub-package-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary, #0b1733);
  margin: 0 0 0.35rem;
}
.ai-hub-package-card .price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent, #1e3a8a);
  margin: 0 0 0.25rem;
}
.ai-hub-package-card .price small {
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  font-weight: 500;
}
.ai-hub-package-card .turnaround {
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  margin-bottom: 0.85rem;
}
.ai-hub-package-card .desc {
  font-size: 0.92rem;
  color: var(--text-secondary, #475569);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.ai-hub-package-card ul {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  flex-grow: 1;
}
.ai-hub-package-card ul li {
  font-size: 0.88rem;
  color: var(--text-secondary, #475569);
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  line-height: 1.5;
}
.ai-hub-package-card ul li::before {
  content: '\2713';
  color: #16a34a;
  font-weight: 700;
  position: absolute;
  left: 0;
}
.ai-hub-package-card .pkg-cta {
  display: block;
  text-align: center;
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  transition: background 0.2s;
}
.ai-hub-package-card .pkg-cta:hover { background: #142a64; }
.ai-hub-package-card.outline .pkg-cta {
  background: #f1f5f9;
  color: var(--text-primary, #0b1733);
  border: 1px solid #cbd5e1;
}
.ai-hub-package-card.outline .pkg-cta:hover { background: #e2e8f0; }

/* ============================================================================
   TWO-COLUMN GOOD / BAD
   ========================================================================== */

.ai-hub-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .ai-hub-two-col { grid-template-columns: 1fr; }
}
.ai-hub-two-col .col {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem;
}
.ai-hub-two-col .col.good { border-left: 4px solid #16a34a; }
.ai-hub-two-col .col.bad { border-left: 4px solid #cbd5e1; }
.ai-hub-two-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text-primary, #0b1733);
}
.ai-hub-two-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-hub-two-col ul li {
  font-size: 0.9rem;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
}
.ai-hub-two-col .good ul li::before {
  content: '\2713';
  color: #16a34a;
  font-weight: 700;
  position: absolute;
  left: 0;
}
.ai-hub-two-col .bad ul li::before {
  content: '\2715';
  color: var(--text-tertiary, #94a3b8);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ============================================================================
   PROCESS STEPS
   ========================================================================== */

.ai-hub-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.ai-hub-step {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
}
.ai-hub-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #1e3a8a);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.ai-hub-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0b1733);
  margin: 0 0 0.4rem;
}
.ai-hub-step p {
  font-size: 0.9rem;
  color: var(--text-secondary, #475569);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================================
   TESTIMONIAL CARD
   ========================================================================== */

.ai-hub-testimonial {
  background: var(--surface-elevated, #fff);
  border-left: 4px solid #16a34a;
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1rem;
}
.ai-hub-testimonial blockquote {
  font-size: 0.95rem;
  color: var(--text-primary, #0b1733);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}
.ai-hub-testimonial cite {
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  font-style: normal;
  display: block;
}
.ai-hub-testimonial cite strong {
  color: #166534;
  font-weight: 700;
}

/* ============================================================================
   ABOUT BOX (Sergei photo + bio)
   ========================================================================== */

.ai-hub-about {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 600px) {
  .ai-hub-about { grid-template-columns: 1fr; text-align: center; }
  .ai-hub-about img,
  .ai-hub-about picture { margin: 0 auto; }
}
.ai-hub-about img,
.ai-hub-about picture img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 2px solid #c7d2fe;
  display: block;
}
.ai-hub-about h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary, #0b1733);
  margin: 0 0 0.25rem;
}
.ai-hub-about .meta {
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  margin-bottom: 0.6rem;
}
.ai-hub-about .meta a {
  color: var(--accent, #1e3a8a);
  text-decoration: none;
}
.ai-hub-about .meta a:hover { text-decoration: underline; }
.ai-hub-about p {
  font-size: 0.92rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* ============================================================================
   FAQ ACCORDION
   ========================================================================== */

.ai-hub-faq details {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.ai-hub-faq summary {
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #0b1733);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
}
.ai-hub-faq summary::-webkit-details-marker { display: none; }
.ai-hub-faq summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-secondary, #475569);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ai-hub-faq details[open] summary::after { content: '\2212'; }
.ai-hub-faq details p {
  padding: 0 1.15rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #475569);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================================
   RESOURCES GRID
   ========================================================================== */

.ai-hub-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.ai-hub-res-link {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition: border-color 0.2s;
  display: block;
  min-height: 80px;
}
.ai-hub-res-link:hover { border-color: #c7d2fe; }
.ai-hub-res-link h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent, #1e3a8a);
  margin: 0 0 0.3rem;
}
.ai-hub-res-link p {
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================================
   BOTTOM CTA SECTION (gradient)
   ========================================================================== */

.ai-hub-cta-block {
  background: linear-gradient(135deg, var(--accent, #1e3a8a) 0%, #142a64 100%);
  color: #fff;
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-radius: 16px;
  margin: 2rem 0 1rem;
}
.ai-hub-cta-block h2 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.ai-hub-cta-block p {
  color: #c7d2fe;
  font-size: 1rem;
  margin: 0 auto 1.25rem;
  max-width: 560px;
}
.ai-hub-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 600px) {
  .ai-hub-cta-row { flex-direction: column; align-items: stretch; }
  .ai-hub-cta-row a { width: 100%; justify-content: center; }
}

/* ============================================================================
   FOOTER (compact dark)
   ========================================================================== */

.ai-hub-footer {
  background: #0b1733;
  color: #cbd5e1;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.ai-hub-footer a {
  color: #c7d2fe;
  text-decoration: none;
}
.ai-hub-footer a:hover { color: #fff; }
.ai-hub-footer .links {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.ai-hub-footer .disclaimer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ============================================================================
   ROUTES (large tappable category cards above the package grid)
   ========================================================================== */

.ai-hub-routes {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 1.5rem auto;
}
.ai-hub-route {
  display: block;
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary, #0b1733);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.ai-hub-route:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 14px rgba(15,23,42,0.06);
}
.ai-hub-route .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, #1e3a8a);
  margin-bottom: 0.3rem;
}
.ai-hub-route .title {
  font-weight: 700;
  color: var(--text-primary, #0b1733);
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}
.ai-hub-route .desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
}

/* ============================================================================
   CHECKLIST + WARNING BLOCKS
   ========================================================================== */

.ai-hub-checklist {
  background: #f8fafc;
  border-left: 4px solid var(--accent, #1e3a8a);
  padding: 1.5rem 1.25rem;
  border-radius: 8px;
  max-width: 980px;
  margin: 2rem auto;
}
.ai-hub-checklist .list {
  max-width: 780px;
  margin: 1rem auto 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: #1e293b;
}

.ai-hub-warning {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  padding: 1.75rem 1.25rem;
  border-radius: 8px;
  max-width: 980px;
  margin: 3rem auto;
}
.ai-hub-warning h2 { color: #78350f; margin-top: 0; }
.ai-hub-warning .list {
  max-width: 780px;
  margin: 1rem auto 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: #78350f;
}

/* ============================================================================
   AI SUMMARY BLOCK (Quick answer for AI/SEO crawlers)
   ========================================================================== */

.ai-hub-summary {
  max-width: 880px;
  margin: 24px auto;
  padding: 14px 18px;
  background: #eff6ff;
  border-left: 4px solid var(--accent, #1e3a8a);
  border-radius: 8px;
  color: var(--text-primary, #0b1733);
  font-size: 0.96rem;
  line-height: 1.55;
}
.ai-hub-summary strong { color: var(--accent, #1e3a8a); }
.ai-hub-summary a {
  color: var(--accent, #1e3a8a);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================================================
   HIRE-LAWYER TIER TABLE (Round 2)
   ========================================================================== */

.ai-hub-tier-section {
  max-width: 880px;
  margin: 32px auto;
  padding: 0 16px;
}
.ai-hub-tier-section h2 {
  font-size: 1.6rem;
  color: var(--text-primary, #0b1733);
  margin: 0 0 8px;
  font-weight: 800;
}
.ai-hub-tier-section > p {
  color: #374151;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0 0 16px;
}
.ai-hub-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 680px) {
  .ai-hub-tier-grid { grid-template-columns: 1fr 1fr; }
}
.ai-hub-tier-card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
  position: relative;
}
.ai-hub-tier-card.is-featured {
  border: 2px solid var(--accent, #1e3a8a);
  box-shadow: 0 6px 18px rgba(30,58,138,0.15);
}
.ai-hub-tier-card .tier-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ai-hub-tier-card .tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary, #0b1733);
}
.ai-hub-tier-card .tier-name {
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
}
.ai-hub-tier-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #374151;
  line-height: 1.6;
  font-size: 0.95rem;
}
.ai-hub-tier-card .tier-cta {
  display: inline-block;
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  min-height: 48px;
  line-height: 20px;
  box-sizing: border-box;
  font-size: 1rem;
}
.ai-hub-tier-card .tier-cta.dark {
  background: var(--text-primary, #0b1733);
}
.ai-hub-tier-card .tier-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
}
.ai-hub-tier-card .tier-meta a { color: var(--accent, #1e3a8a); }

/* ============================================================================
   TOOLS STRIP (free AI legal tools cross-link)
   ========================================================================== */

.ai-hub-tools-strip {
  max-width: 1080px;
  margin: 32px auto;
  padding: 0 16px;
}
.ai-hub-tools-strip h2 {
  font-size: 1.2rem;
  color: var(--text-primary, #0b1733);
  margin: 0 0 12px;
  font-weight: 700;
}
.ai-hub-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 680px) {
  .ai-hub-tools-grid { grid-template-columns: repeat(3, 1fr); }
}
.ai-hub-tool-card {
  display: block;
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-primary, #0b1733);
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
  min-height: 88px;
}
.ai-hub-tool-card .tool-name {
  font-weight: 700;
  color: var(--accent, #1e3a8a);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.ai-hub-tool-card .tool-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  line-height: 1.45;
}

/* ============================================================================
   CROSS-LINKS PILL ROW (Related on Terms.Law)
   ========================================================================== */

.ai-hub-cross {
  max-width: 880px;
  margin: 24px auto;
  padding: 0 16px;
}
.ai-hub-cross h2 {
  font-size: 1.1rem;
  color: var(--text-primary, #0b1733);
  margin: 0 0 10px;
  font-weight: 700;
}
.ai-hub-cross a {
  display: inline-block;
  padding: 10px 14px;
  margin: 4px 6px 4px 0;
  background: #f3f4f6;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  color: var(--accent, #1e3a8a);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  line-height: 24px;
}
.ai-hub-cross a:hover { background: #e2e8f0; }

/* ============================================================================
   FREE INTERACTIVE TOOLS / CALCULATORS (modal pattern)
   ========================================================================== */

.ai-hub-calc-section {
  max-width: 1080px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}
.ai-hub-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ai-hub-calc-card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.ai-hub-calc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
}
.ai-hub-calc-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.ai-hub-calc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0b1733);
  margin: 0 0 0.4rem;
}
.ai-hub-calc-card p {
  font-size: 0.9rem;
  color: var(--text-secondary, #475569);
  line-height: 1.5;
  margin: 0 0 0.85rem;
}
.ai-hub-calc-btn {
  display: inline-block;
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}
.ai-hub-calc-btn:hover { background: #142a64; }
.ai-hub-calc-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ai-hub-calc-modal[hidden] { display: none; }
.ai-hub-calc-modal-inner {
  background: var(--surface-elevated, #fff);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.ai-hub-calc-close {
  position: absolute;
  top: 0.6rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #475569);
}
.ai-hub-calc-modal-inner h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #0b1733);
  margin: 0 0 0.75rem;
}
.ai-hub-calc-result {
  margin-top: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1e293b;
  display: none;
}
.ai-hub-calc-result.show { display: block; }
.ai-hub-calc-result ul { margin-top: 0.4rem; padding-left: 1.25rem; }
.ai-hub-calc-result li { margin-bottom: 0.3rem; }
.ai-hub-calc-go {
  display: block;
  width: 100%;
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.ai-hub-calc-go:hover { background: #142a64; }
.ai-hub-calc-q {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  cursor: pointer;
}
.ai-hub-calc-q:hover { background: #f8fafc; }
.ai-hub-calc-q.yes {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding-left: 0.5rem;
}

/* ============================================================================
   DISCLAIMER BLOCK
   ========================================================================== */

.ai-hub-disclaimer {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
}
.ai-hub-disclaimer strong {
  color: var(--text-primary, #0b1733);
}

/* ============================================================================
   STACK / TOOLS GRID (used on my-ai-stack and case-studies subpages)
   ========================================================================== */

.ai-hub-stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .ai-hub-stack-grid { grid-template-columns: 1fr; }
}
.ai-hub-stack-card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.ai-hub-stack-card.use { border-top: 4px solid var(--accent, #1e3a8a); }
.ai-hub-stack-card.ethics { border-top: 4px solid #16a34a; }
.ai-hub-stack-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}
.ai-hub-stack-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-hub-stack-card li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border, #e2e8f0);
  font-size: 0.93rem;
}
.ai-hub-stack-card li:last-child { border-bottom: none; }
.ai-hub-stack-card li strong {
  color: var(--text-primary, #0b1733);
  display: block;
  margin-bottom: 0.15rem;
}

/* ============================================================================
   CASE STUDY CARD (case-studies page)
   ========================================================================== */

.ai-hub-case {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.ai-hub-case .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.ai-hub-case .meta .pill {
  background: #eef2ff;
  color: var(--accent, #1e3a8a);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.ai-hub-case .meta .pill.tier { background: #eef2ff; color: var(--accent, #1e3a8a); }
.ai-hub-case .meta .pill.fee { background: #f0fdf4; color: #166534; }
.ai-hub-case h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}
.ai-hub-case h3 {
  margin: 1.1rem 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-secondary, #475569);
}
.ai-hub-case p {
  color: var(--text-secondary, #475569);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.ai-hub-case ul {
  margin: 0.4rem 0 0.75rem 1.25rem;
  padding: 0;
}
.ai-hub-case ul li {
  margin-bottom: 0.3rem;
  color: var(--text-secondary, #475569);
  font-size: 0.94rem;
}

/* ============================================================================
   ROW CARDS (Who I help)
   ========================================================================== */

.ai-hub-row-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.ai-hub-row-card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.ai-hub-row-card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--text-primary, #0b1733);
}
.ai-hub-row-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-secondary, #475569);
}

/* ============================================================================
   RULE-FAILURE LIST (numbered, red-bordered)
   ========================================================================== */

.ai-hub-rule-list {
  counter-reset: ruleitem;
  padding-left: 0;
  list-style: none;
  margin: 1.5rem 0;
}
.ai-hub-rule-item {
  counter-increment: ruleitem;
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
}
.ai-hub-rule-item h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-primary, #0b1733);
}
.ai-hub-rule-item h3::before {
  content: counter(ruleitem);
  background: #dc2626;
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ai-hub-rule-item .cite {
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc2626;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ai-hub-rule-item p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-secondary, #475569);
}

/* ============================================================================
   CASE-STRIP / LINK-CARD GRIDS (cross-link sections)
   ========================================================================== */

.ai-hub-case-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.ai-hub-case-strip-card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.18s, transform 0.18s;
}
.ai-hub-case-strip-card:hover {
  border-color: var(--accent, #1e3a8a);
  transform: translateY(-2px);
}
.ai-hub-case-strip-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent, #1e3a8a);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.ai-hub-case-strip-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.ai-hub-case-strip-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-secondary, #475569);
}

.ai-hub-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.ai-hub-link-card {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s;
  min-height: 44px;
  display: block;
}
.ai-hub-link-card:hover { border-color: var(--accent, #1e3a8a); }
.ai-hub-link-card .kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #475569);
  margin-bottom: 0.25rem;
}
.ai-hub-link-card .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #0b1733);
}

/* ============================================================================
   PRICING TIER GRID (services/ai-implementation main page pattern)
   ========================================================================== */

.ai-hub-tier-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: stretch;
}
.ai-hub-tier-3-card {
  background: var(--surface-elevated, #fff);
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.ai-hub-tier-3-card.featured {
  border-color: var(--accent, #1e3a8a);
  background: linear-gradient(to bottom, #eef2ff, #fff 30%);
  box-shadow: 0 4px 20px rgba(15,23,42,0.08);
}
.ai-hub-tier-3-card.featured::before {
  content: 'Flagship';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #1e3a8a);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ai-hub-tier-3-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.ai-hub-tier-3-card .kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #475569);
  margin-bottom: 0.5rem;
}
.ai-hub-tier-3-card .price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent, #1e3a8a);
  margin: 0.5rem 0 0.85rem;
}
.ai-hub-tier-3-card .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary, #475569);
}
.ai-hub-tier-3-card ul {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  padding: 0;
  flex-grow: 1;
}
.ai-hub-tier-3-card li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.93rem;
  color: var(--text-secondary, #475569);
  margin: 0;
}
.ai-hub-tier-3-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}
.ai-hub-tier-3-card .cta {
  display: block;
  width: 100%;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--accent, #1e3a8a);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.ai-hub-tier-3-card .cta:hover { background: #142a64; }
.ai-hub-tier-3-card.outline .cta {
  background: #fff;
  color: var(--accent, #1e3a8a);
  border: 2px solid var(--accent, #1e3a8a);
  padding: 12px 16px;
}
.ai-hub-tier-3-card.outline .cta:hover {
  background: var(--accent, #1e3a8a);
  color: #fff;
}

/* ============================================================================
   PRINTABLE UTILITIES
   ========================================================================== */

.ai-hub-grid-mobile-1 { grid-template-columns: 1fr !important; }
.ai-hub-flex-center { display: flex; align-items: center; justify-content: center; }
.ai-hub-mt-1 { margin-top: 1rem; }
.ai-hub-mt-2 { margin-top: 2rem; }
.ai-hub-text-center { text-align: center; }
.ai-hub-text-sm { font-size: 0.85rem; }
.ai-hub-text-muted { color: var(--text-secondary, #475569); }

/* ============================================================================
   PRACTICE-AREA (pa-*) SHARED LAYOUT
   Originally inlined on six AI-cluster pages. Lifted here so each page can
   drop ~22 KB of inline CSS. Uses indigo accent (#6366f1) where the legacy
   pages did; firm.css accent (--accent #1e3a8a) overrides where applied.
   ========================================================================== */

.pa-product-section {
  padding: 56px 24px;
  background: var(--pa-section-bg, #fafbfc);
}
.pa-product-section.is-dark {
  background: linear-gradient(135deg, #06080f 0%, #0d1220 50%, #1a1a3a 100%);
  color: #fff;
}
.pa-wide-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.pa-visual-body { min-width: 0; }
.pa-visual-body > h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 16px; letter-spacing: -0.01em; }
.pa-visual-body > h2:first-child { margin-top: 0; }
.pa-visual-body > p { color: #374151; margin-bottom: 14px; line-height: 1.65; }
@media (max-width: 920px) {
  .pa-wide-grid { grid-template-columns: 1fr; gap: 24px; }
  .pa-product-section { padding: 36px 16px; }
}

.pa-case-rail {
  position: sticky;
  top: 24px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--pa-card-border, #e5e7eb);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.pa-case-rail .rail-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #6b7280; margin-bottom: 4px;
}
.pa-case-rail .rail-value {
  font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 16px;
  line-height: 1.5;
}
.pa-case-rail .rail-divider {
  height: 1px; background: #e5e7eb; margin: 4px 0 16px;
}
.pa-case-rail .rail-price {
  font-size: 28px; font-weight: 900; color: #2563eb;
  margin-bottom: 4px; letter-spacing: -.02em; line-height: 1.1;
}
.pa-case-rail .rail-price-note {
  font-size: 12px; color: #6b7280; margin-bottom: 20px;
}
.pa-case-rail .rail-docs {
  list-style: none; padding: 0; margin: 0 0 18px;
}
.pa-case-rail .rail-docs li {
  position: relative; padding: 4px 0 4px 22px; font-size: 12.5px;
  color: #374151; line-height: 1.45;
}
.pa-case-rail .rail-docs li::before {
  content: '\2713'; position: absolute; left: 0; top: 4px;
  width: 14px; color: #2563eb; font-weight: 700;
}
.pa-case-rail .rail-cta {
  display: block; width: 100%; text-align: center;
  background: #2563eb; color: #fff; text-decoration: none;
  padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px;
  min-height: 44px; line-height: 20px;
  box-sizing: border-box;
}
.pa-case-rail .rail-cta:hover { background: #1d4ed8; text-decoration: none; }
.pa-case-rail .rail-secondary {
  display: block; width: 100%; text-align: center;
  background: #fff; color: #2563eb; text-decoration: none;
  padding: 12px; border-radius: 10px; font-weight: 600; font-size: 13px;
  border: 1px solid #2563eb; margin-top: 8px;
  min-height: 44px; line-height: 20px;
  box-sizing: border-box;
}
.pa-case-rail .rail-secondary:hover { background: #eff6ff; text-decoration: none; }
@media (max-width: 920px) {
  .pa-case-rail { position: static; }
}

.pa-statute-card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin: 22px 0 16px;
}
.law-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.law-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.12);
}
.law-card .law-cite {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(99,102,241,0.10); color: #4c1d95;
  border: 1px solid rgba(99,102,241,0.3); border-radius: 6px;
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  margin-bottom: 10px;
}
.law-card h3 {
  font-size: 16px; font-weight: 700; color: #1a1a2e;
  margin: 0 0 8px; line-height: 1.3;
}
.law-card p {
  font-size: 14px; color: #374151; line-height: 1.55;
  margin: 0 0 12px;
}
.law-card .law-meta {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #6b7280;
}
.law-card .law-meta span {
  background: #f3f4f6; padding: 3px 8px; border-radius: 4px;
}

.pa-choose-path {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 22px 0 28px;
}
@media (max-width: 720px) {
  .pa-choose-path { grid-template-columns: 1fr; }
}
.path-card {
  background: #fff; border: 2px solid #e5e7eb; border-radius: 14px;
  padding: 22px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.path-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.10); }
.path-card.is-recommended {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.path-card h4 {
  font-size: 14px; font-weight: 700; color: #1a1a2e;
  margin: 0 0 4px;
}
.path-card .path-price {
  font-size: 20px; font-weight: 800; color: #2563eb; margin-bottom: 12px;
}
.path-card .when {
  font-size: 11px; font-weight: 700; color: #6b7280;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px;
}
.path-card ul {
  list-style: none; padding: 0; margin: 0 0 16px 0; font-size: 13px;
}
.path-card li {
  padding: 4px 0; color: #374151; padding-left: 18px;
  position: relative; line-height: 1.45;
}
.path-card li::before {
  content: '\2713'; position: absolute; left: 0; color: #22c55e; font-weight: 700;
}
.path-card .path-cta {
  display: block; text-align: center;
  background: #f3f4f6; color: #1a1a2e; text-decoration: none;
  padding: 10px; border-radius: 8px; font-weight: 600; font-size: 13px;
  min-height: 44px; line-height: 24px;
  box-sizing: border-box;
}
.path-card.is-recommended .path-cta { background: #2563eb; color: #fff; }
.path-card.is-recommended .path-cta:hover { background: #1d4ed8; text-decoration: none; }
.path-card .path-cta:hover { text-decoration: none; }

.pa-process-timeline {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  position: relative; margin: 22px 0 14px;
}
.pa-process-timeline::before {
  content: ''; position: absolute; top: 16px; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
  z-index: 0;
}
@media (max-width: 720px) {
  .pa-process-timeline { grid-template-columns: 1fr; gap: 18px; }
  .pa-process-timeline::before { display: none; }
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-step .step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899); color: #fff;
  font-weight: 800; font-size: 13px; line-height: 28px;
  margin: 0 auto 12px; border: 3px solid #fff;
  box-shadow: 0 2px 6px -1px rgba(99,102,241,0.4);
}
.process-step h5 {
  font-size: 13px; font-weight: 700; color: #1a1a2e;
  margin: 0 0 4px; line-height: 1.3;
}
.process-step p {
  font-size: 12px; color: #6b7280; line-height: 1.4; margin: 0;
}

.pa-damages-math {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b; border-radius: 14px;
  padding: 22px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 22px 0 14px;
}
.pa-damages-math .math-title {
  font-size: 13px; font-weight: 700; color: #92400e;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.pa-damages-math .math-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: 1px dashed rgba(146,64,14,0.3);
  font-size: 13px; color: #78350f;
  gap: 12px;
}
.pa-damages-math .math-line .math-label { flex: 1; min-width: 0; }
.pa-damages-math .math-line .math-value { font-weight: 700; white-space: nowrap; }
.pa-damages-math .math-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0 0; margin-top: 6px;
  border-top: 2px solid #f59e0b; font-size: 16px; font-weight: 800;
  color: #92400e;
}

.pa-chat-faq { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 14px; }
.chat-bubble { display: flex; gap: 12px; align-items: flex-start; }
.chat-bubble.is-user { justify-content: flex-end; flex-direction: row-reverse; }
.chat-bubble .avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.chat-bubble.is-user .avatar { background: #e5e7eb; color: #6b7280; }
.chat-bubble.is-ai .avatar { background: linear-gradient(135deg, #6366f1, #ec4899); color: #fff; }
.chat-bubble .bubble {
  max-width: 80%; padding: 12px 16px; border-radius: 14px;
  font-size: 14px; line-height: 1.55;
}
.chat-bubble.is-user .bubble {
  background: #f3f4f6; border-bottom-right-radius: 4px;
  color: #1a1a2e; font-weight: 600;
}
.chat-bubble.is-ai .bubble {
  background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px;
  color: #374151;
}
.chat-bubble.is-ai .bubble strong { color: #4c1d95; }
.chat-bubble.is-ai .bubble a { color: #2563eb; }
@media (max-width: 720px) {
  .chat-bubble .bubble { max-width: calc(100% - 44px); }
}

.pa-visual-body .container { max-width: none; padding: 0; }
.pa-visual-body section.block { padding: 0; background: transparent; }
.pa-visual-body section.block.alt { background: transparent; }

/* ============================================================================
   AI-IMPLEMENTATION subpage shared (case-studies, my-ai-stack, etc.)
   ========================================================================== */

.ai-srv-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: #1a1a2e; background: #f8fafc;
  -webkit-font-smoothing: antialiased; margin: 0;
}
.ai-srv-body * { box-sizing: border-box; }
.ai-srv-container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.ai-srv-container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.25rem; }

.ai-srv-header { background: #1a1a2e; padding: 14px 0; }
.ai-srv-header .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ai-srv-header a { color: #e2e8f0; text-decoration: none; font-size: 14px; }
.ai-srv-header .logo { font-weight: 800; font-size: 18px; color: #fff; }
.ai-srv-header .nav-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.ai-srv-header .nav-links a { padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.ai-srv-header .email-cta { background: #2563eb; color: #fff !important; padding: 10px 16px; border-radius: 8px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.ai-srv-breadcrumb { background: #f1f5f9; padding: 0.75rem 0; font-size: 0.85rem; color: #475569; }
.ai-srv-breadcrumb a { color: #2563eb; text-decoration: none; }
.ai-srv-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.55; }

.ai-srv-page-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #4338ca 100%); padding: 3rem 0 2.5rem; color: #fff; }
.ai-srv-page-hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); font-weight: 800; margin-bottom: 0.75rem; }
.ai-srv-page-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 700px; }

.ai-srv-disclaimer { background: #f1f5f9; border-radius: 10px; padding: 1.1rem 1.25rem; margin-top: 1.5rem; font-size: 0.82rem; color: #475569; line-height: 1.6; }
.ai-srv-disclaimer strong { color: #1a1a2e; }

.ai-srv-footer { background: #1a1a2e; color: #cbd5e1; padding: 2rem 0; margin-top: 3rem; font-size: 0.88rem; }
.ai-srv-footer a { color: #93c5fd; text-decoration: none; }
.ai-srv-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ai-srv-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

.ai-srv-cta-block { background: linear-gradient(135deg, #7c3aed, #a855f7); padding: 2rem 1.5rem; border-radius: 12px; color: #fff; text-align: center; margin-top: 2rem; }
.ai-srv-cta-block h3 { font-size: 1.25rem; margin: 0 0 0.65rem; }
.ai-srv-cta-block p { color: rgba(255,255,255,0.92); margin: 0 0 1.25rem; }
.ai-srv-cta-block a.cta,
.ai-srv-cta-block .package-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  background: #fff; color: #7c3aed;
  padding: 12px 26px; border-radius: 10px;
  text-decoration: none; font-weight: 700;
}

/* ============================================================================
   LEGACY services/ai-implementation class aliases.
   Six AI-cluster pages reference these names directly inline; this block
   defines them once so the inline <style> blocks can be removed.
   ========================================================================== */

/* Scoped to .ai-srv-body to avoid colliding with firm.css equivalents. */
.ai-srv-body .site-header { background: #1a1a2e; padding: 14px 0; }
.ai-srv-body .site-header .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ai-srv-body .site-header a { color: #e2e8f0; text-decoration: none; font-size: 14px; }
.ai-srv-body .site-header .logo { font-weight: 800; font-size: 18px; color: #fff; }
.ai-srv-body .site-header .nav-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.ai-srv-body .site-header .nav-links a { padding: 8px 4px; min-height: 44px; display: inline-flex; align-items: center; }
.ai-srv-body .site-header .email-cta { background: #2563eb; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.ai-srv-body .breadcrumb-nav { background: #f1f5f9; padding: 0.75rem 0; font-size: 0.85rem; color: #475569; }
.ai-srv-body .breadcrumb-nav a { color: #2563eb; text-decoration: none; }
.ai-srv-body .breadcrumb-nav a:hover { text-decoration: underline; }
.ai-srv-body .breadcrumb-nav .sep { margin: 0 0.5rem; opacity: 0.55; }

.ai-srv-body .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #4338ca 100%);
  padding: 4rem 0 3.25rem; color: #fff;
}
.ai-srv-body .hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; margin-bottom: 0.85rem; line-height: 1.15; }
.ai-srv-body .hero .tagline { font-size: clamp(1rem, 2.5vw, 1.15rem); opacity: 0.92; max-width: 720px; margin-bottom: 1.25rem; }
.ai-srv-body .hero .credential-line { font-size: 0.85rem; opacity: 0.72; margin-bottom: 1.5rem; }
.ai-srv-body .hero-microbar { margin-top: 1.25rem; }
.ai-srv-body .hero-microbar [data-trust-block] strong { color: #fff !important; }
.ai-srv-body .hero-microbar .tl-trust-microbar { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.18) !important; color: #e2e8f0 !important; }

.ai-srv-body section { padding: 3rem 0; }
.ai-srv-body section.alt { background: #fff; }
.ai-srv-body section h2 { font-size: clamp(1.4rem, 3.5vw, 1.85rem); font-weight: 800; margin-bottom: 1rem; }
.ai-srv-body section h2 + .lead { font-size: 1.05rem; color: #475569; margin-bottom: 1.75rem; max-width: 720px; }
.ai-srv-body section p { margin: 0 0 1rem; color: #475569; }
.ai-srv-body section ul { margin: 0.5rem 0 1rem 1.25rem; }
.ai-srv-body section li { margin-bottom: 0.4rem; color: #475569; }

.ai-srv-body .row-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.ai-srv-body .row-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(15,23,42,0.06); }
.ai-srv-body .row-card h3 { font-size: 1rem; margin-bottom: 0.4rem; color: #1a1a2e; }
.ai-srv-body .row-card p { font-size: 0.92rem; margin: 0; }

.ai-srv-body .rule-list { counter-reset: ruleitem; padding-left: 0; list-style: none; margin: 1.5rem 0; }
.ai-srv-body .rule-item { counter-increment: ruleitem; background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #ef4444; border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 0.85rem; }
.ai-srv-body .rule-item h3 { display: flex; align-items: baseline; gap: 0.55rem; font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a2e; }
.ai-srv-body .rule-item h3::before { content: counter(ruleitem); background: #ef4444; color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.ai-srv-body .rule-item .rule-cite { font-size: 0.78rem; font-weight: 600; color: #ef4444; letter-spacing: 0.04em; text-transform: uppercase; }
.ai-srv-body .rule-item p { font-size: 0.95rem; margin: 0; }

.ai-srv-body .stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.ai-srv-body .stack-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.4rem 1.5rem; }
.ai-srv-body .stack-card.use { border-top: 4px solid #2563eb; }
.ai-srv-body .stack-card.ethics { border-top: 4px solid #22c55e; }
.ai-srv-body .stack-card h3 { font-size: 1.05rem; margin-bottom: 0.85rem; }
.ai-srv-body .stack-card ul { list-style: none; margin: 0; padding: 0; }
.ai-srv-body .stack-card li { padding: 0.5rem 0; border-bottom: 1px dashed #e2e8f0; font-size: 0.93rem; }
.ai-srv-body .stack-card li:last-child { border-bottom: none; }
.ai-srv-body .stack-card li strong { color: #1a1a2e; display: block; margin-bottom: 0.15rem; }
@media (max-width: 768px) { .ai-srv-body .stack-grid { grid-template-columns: 1fr; } }

.ai-srv-body .tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; align-items: stretch; }
.ai-srv-body .tier-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 1.6rem 1.4rem; position: relative; display: flex; flex-direction: column; }
.ai-srv-body .tier-card.featured { border-color: #7c3aed; background: linear-gradient(to bottom, #f5f3ff, #fff 30%); box-shadow: 0 4px 20px rgba(15,23,42,0.08); }
.ai-srv-body .tier-card.featured::before { content: 'Flagship'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #7c3aed; color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ai-srv-body .tier-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.ai-srv-body .tier-card .kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #475569; margin-bottom: 0.5rem; }
.ai-srv-body .tier-card .price { font-size: 1.85rem; font-weight: 800; color: #7c3aed; margin: 0.5rem 0 0.85rem; }
.ai-srv-body .tier-card .price span { font-size: 0.95rem; font-weight: 500; color: #475569; }
.ai-srv-body .tier-card ul { list-style: none; margin: 0.5rem 0 1.5rem; padding: 0; flex-grow: 1; }
.ai-srv-body .tier-card li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; font-size: 0.93rem; color: #475569; margin: 0; }
.ai-srv-body .tier-card li::before { content: '\2713'; position: absolute; left: 0; color: #22c55e; font-weight: 800; }
.ai-srv-body .tier-card .package-cta,
.ai-srv-body .tier-card a.cta { display: block; width: 100%; padding: 14px 16px; min-height: 44px; background: #7c3aed; color: #fff; text-decoration: none; text-align: center; border-radius: 10px; font-weight: 700; font-size: 0.95rem; box-sizing: border-box; }
.ai-srv-body .tier-card .package-cta:hover,
.ai-srv-body .tier-card a.cta:hover { background: #6d28d9; }
.ai-srv-body .tier-card.outline a.cta { background: #fff; color: #2563eb; border: 2px solid #2563eb; padding: 12px 16px; }
.ai-srv-body .tier-card.outline a.cta:hover { background: #2563eb; color: #fff; }

.ai-srv-body .why-grid { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; margin-top: 1.25rem; }
.ai-srv-body .why-grid [data-trust-block] { display: block; }

.ai-srv-body .case-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.ai-srv-body .case-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.2rem; text-decoration: none; color: inherit; display: block; transition: border-color 0.18s, transform 0.18s; }
.ai-srv-body .case-card:hover { border-color: #2563eb; transform: translateY(-2px); }
.ai-srv-body .case-card .tag { display: inline-block; font-size: 0.7rem; font-weight: 700; color: #2563eb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.ai-srv-body .case-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.ai-srv-body .case-card p { font-size: 0.88rem; margin: 0; }

.ai-srv-body .link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; margin-top: 1.25rem; }
.ai-srv-body .link-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; transition: border-color 0.18s; min-height: 44px; }
.ai-srv-body .link-card:hover { border-color: #2563eb; }
.ai-srv-body .link-card .kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; margin-bottom: 0.25rem; }
.ai-srv-body .link-card .title { font-size: 0.95rem; font-weight: 600; color: #1a1a2e; }

.ai-srv-body .faq-wrap details { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 0.6rem; }
.ai-srv-body .faq-wrap summary { font-weight: 600; cursor: pointer; list-style: none; font-size: 1rem; color: #1a1a2e; position: relative; padding-right: 2rem; min-height: 44px; display: flex; align-items: center; }
.ai-srv-body .faq-wrap summary::-webkit-details-marker { display: none; }
.ai-srv-body .faq-wrap summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #2563eb; font-weight: 700; font-size: 1.2rem; }
.ai-srv-body .faq-wrap details[open] summary::after { content: '\2013'; }
.ai-srv-body .faq-wrap details p { margin: 0.85rem 0 0; font-size: 0.95rem; line-height: 1.65; }

.ai-srv-body .cta-block { background: linear-gradient(135deg, #7c3aed, #a855f7); padding: 2.25rem 1.75rem; border-radius: 12px; color: #fff; text-align: center; margin: 1.5rem 0; }
.ai-srv-body .cta-block h3 { font-size: 1.35rem; margin-bottom: 0.85rem; }
.ai-srv-body .cta-block p { color: rgba(255,255,255,0.92); margin-bottom: 1.25rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.ai-srv-body .cta-block a.cta { display: inline-flex; align-items: center; min-height: 44px; background: #fff; color: #7c3aed; padding: 12px 28px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.ai-srv-body .cta-block a.cta:hover { background: #f5f3ff; }

.ai-srv-body .disclaimer { background: #f1f5f9; border-radius: 10px; padding: 1.1rem 1.25rem; margin-top: 2rem; font-size: 0.82rem; color: #475569; line-height: 1.6; }
.ai-srv-body .disclaimer strong { color: #1a1a2e; }

.ai-srv-body .site-footer { background: #1a1a2e; color: #cbd5e1; padding: 2rem 0; margin-top: 3rem; font-size: 0.88rem; }
.ai-srv-body .site-footer a { color: #93c5fd; text-decoration: none; }
.ai-srv-body .site-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ai-srv-body .site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .ai-srv-body section { padding: 2.25rem 0; }
  .ai-srv-body .hero { padding: 3rem 0 2.25rem; }
  .ai-srv-body .row-cards,
  .ai-srv-body .tier-grid,
  .ai-srv-body .case-strip,
  .ai-srv-body .link-grid { grid-template-columns: 1fr; }
  .ai-srv-body .site-header .nav-links { gap: 10px; }
  .ai-srv-body .site-header .nav-links a:not(.email-cta) { display: none; }
  .ai-srv-body .site-header .nav-links a.email-cta { display: inline-flex; }
}

/* Case page (case-studies/index.html) */
.ai-srv-body .case { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.75rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(15,23,42,0.05); }
.ai-srv-body .case-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.85rem; }
.ai-srv-body .case-meta .pill { background: #eef2ff; color: #4338ca; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.ai-srv-body .case-meta .pill.tier { background: #f5f3ff; color: #7c3aed; }
.ai-srv-body .case-meta .pill.fee { background: #f0fdf4; color: #166534; }
.ai-srv-body .case h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.ai-srv-body .case h3 { margin: 1.1rem 0 0.45rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; font-size: 0.78rem; color: #475569; }
.ai-srv-body .case p { color: #475569; margin-bottom: 0.75rem; font-size: 0.95rem; }
.ai-srv-body .case ul { margin: 0.4rem 0 0.75rem 1.25rem; }
.ai-srv-body .case ul li { margin-bottom: 0.3rem; color: #475569; font-size: 0.94rem; }

.ai-srv-body .todo-block { background: #fef3c7; border: 1px solid #f59e0b; border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; }
.ai-srv-body .todo-block strong { color: #92400e; }
.ai-srv-body .todo-block p { color: #78350f; margin: 0.35rem 0 0; font-size: 0.9rem; }

.ai-srv-body .related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.ai-srv-body .related-grid a { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.1rem; text-decoration: none; color: inherit; min-height: 44px; display: block; }
.ai-srv-body .related-grid a:hover { border-color: #2563eb; }
.ai-srv-body .related-grid .kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; margin-bottom: 0.2rem; }
.ai-srv-body .related-grid .title { font-size: 0.94rem; font-weight: 600; color: #1a1a2e; }

.ai-srv-body .intro { padding: 2.25rem 0 0; }
.ai-srv-body .intro p { color: #475569; margin-bottom: 1rem; }
.ai-srv-body .ai-srv-why-buy { margin-top: 1.25rem; font-size: 0.95rem; color: #475569; line-height: 1.7; }
.ai-srv-body .ai-srv-related-h { margin: 2rem 0 0.6rem; font-size: 1.05rem; }

/* ============================================================================
   QUICK CRPC RISK CHECK widget (practice-areas/ai-implementation-attorney)
   ========================================================================== */

.pa-quick-proof-crpc { background: linear-gradient(135deg, #0a0e1c 0%, #11172a 100%); color: #e8edf7; border-radius: 14px; padding: 20px 22px; margin: 18px 0 24px; border: 1px solid rgba(99,102,241,0.25); box-shadow: 0 8px 24px rgba(10,14,28,0.18); }
.pa-quick-proof-crpc .qpc-head { margin-bottom: 14px; }
.pa-quick-proof-crpc .qpc-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c4b5fd; }
.pa-quick-proof-crpc .qpc-title { font-size: 17px; font-weight: 700; margin: 2px 0 0; color: #fff; }
.pa-quick-proof-crpc .qpc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.pa-quick-proof-crpc .qpc-qlist { display: flex; flex-direction: column; gap: 8px; }
.pa-quick-proof-crpc .qpc-q { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; font-size: 12.5px; color: #cbd5e1; }
.pa-quick-proof-crpc .qpc-yn { display: flex; gap: 4px; flex-shrink: 0; }
.pa-quick-proof-crpc .qpc-yn-btn { min-width: 44px; min-height: 32px; padding: 4px 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; color: #cbd5e1; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: all 0.18s; }
.pa-quick-proof-crpc .qpc-yn-btn.is-yes { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.4); color: #4ade80; }
.pa-quick-proof-crpc .qpc-yn-btn.is-no { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #fca5a5; }
.pa-quick-proof-crpc .qpc-out { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(236,72,153,0.1)); border: 1px solid rgba(99,102,241,0.32); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.pa-quick-proof-crpc .qpc-out-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #c4b5fd; font-weight: 600; margin-bottom: 6px; }
.pa-quick-proof-crpc .qpc-score { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(34px, 6vw, 44px); font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.pa-quick-proof-crpc .qpc-meter { height: 5px; background: rgba(255,255,255,0.08); border-radius: 999px; margin: 10px 0 8px; overflow: hidden; }
.pa-quick-proof-crpc .qpc-meter-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f59e0b 50%, #22c55e); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.pa-quick-proof-crpc .qpc-verdict { font-size: 12px; color: #cbd5e1; font-weight: 500; line-height: 1.4; }
.pa-quick-proof-crpc .qpc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 11.5px; }
.pa-quick-proof-crpc .qpc-link { color: #c4b5fd; font-weight: 600; text-decoration: none; }
.pa-quick-proof-crpc .qpc-link:hover { color: #fbbf24; }
.pa-quick-proof-crpc .qpc-disc { color: #6b7280; font-size: 10.5px; }
@media (max-width: 640px) { .pa-quick-proof-crpc .qpc-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   AI WORKFLOW RISK MAP widget (practice-areas/ai-implementation-attorney)
   ========================================================================== */

.tl-proof-ai-risk-map { background: linear-gradient(180deg, #0a0e1c 0%, #11172a 100%); color: #e8edf7; padding: 56px 0; position: relative; overflow: hidden; }
.tl-proof-ai-risk-map::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.18), transparent 60%), radial-gradient(ellipse 40% 40% at 100% 80%, rgba(6,182,212,0.12), transparent 60%); pointer-events: none; }
.tl-par-wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.tl-par-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35); border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 14px; }
.tl-par-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #818cf8; box-shadow: 0 0 0 4px rgba(129,140,248,0.2); animation: tlParPulse 2.4s ease-in-out infinite; }
@keyframes tlParPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.5; } }
.tl-par-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.tl-par-sub { color: #9aa3b8; font-size: 15px; max-width: 720px; margin: 0 0 28px; }
.tl-par-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-bottom: 22px; }
.tl-par-panel { background: rgba(19,26,45,0.65); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 22px; backdrop-filter: blur(10px); }
.tl-par-panel h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c4b5fd; margin: 0 0 16px; }
.tl-par-toggles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tl-par-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: rgba(99,102,241,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; cursor: pointer; user-select: none; transition: all 0.2s; min-height: 44px; }
.tl-par-toggle:hover { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); }
.tl-par-toggle.is-on { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); }
.tl-par-toggle.is-risk { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18); }
.tl-par-toggle.is-risk.is-on { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.5); }
.tl-par-check { width: 18px; height: 18px; border-radius: 4px; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.2); flex-shrink: 0; margin-top: 1px; position: relative; transition: all 0.2s; }
.tl-par-toggle.is-on .tl-par-check { background: linear-gradient(135deg, #22c55e, #4ade80); border-color: #4ade80; }
.tl-par-toggle.is-on .tl-par-check::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.tl-par-toggle.is-risk.is-on .tl-par-check { background: linear-gradient(135deg, #ef4444, #f87171); border-color: #f87171; }
.tl-par-toggle.is-risk.is-on .tl-par-check::after { content: '!'; position: absolute; left: 0; top: -2px; width: 100%; text-align: center; color: #fff; font-weight: 800; font-size: 12px; border: 0; transform: none; }
.tl-par-toggle-label { font-size: 12px; color: #cbd5e1; line-height: 1.35; }
.tl-par-toggle.is-on .tl-par-toggle-label { color: #fff; }
.tl-par-risk-pill { display: inline-block; margin-left: 4px; padding: 1px 5px; background: rgba(239,68,68,0.2); color: #fca5a5; border-radius: 4px; font-size: 9px; letter-spacing: 0.05em; font-weight: 700; vertical-align: middle; }
.tl-par-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tl-par-meter { padding: 20px; background: rgba(0,0,0,0.3); border-radius: 12px; margin-bottom: 16px; }
.tl-par-meter-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9aa3b8; font-weight: 600; margin-bottom: 8px; }
.tl-par-meter-score { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(40px, 6vw, 56px); font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.tl-par-meter-bar { height: 10px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.tl-par-meter-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f59e0b 40%, #22c55e 80%); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-par-rules h3 { margin-bottom: 12px; }
.tl-par-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-par-rule { padding: 10px 12px; background: rgba(0,0,0,0.25); border-radius: 8px; border-left: 3px solid #6b7280; transition: border-color 0.3s; }
.tl-par-rule.compliant { border-left-color: #22c55e; }
.tl-par-rule.gap { border-left-color: #f59e0b; }
.tl-par-rule.high-risk { border-left-color: #ef4444; }
.tl-par-rule-name { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #9aa3b8; letter-spacing: 0.04em; margin-bottom: 2px; }
.tl-par-rule-status { font-size: 12px; font-weight: 600; color: #e8edf7; }
.tl-par-rule.compliant .tl-par-rule-status { color: #4ade80; }
.tl-par-rule.gap .tl-par-rule-status { color: #fbbf24; }
.tl-par-rule.high-risk .tl-par-rule-status { color: #f87171; }
.tl-par-rec { padding: 18px 20px; background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.1)); border: 1px solid rgba(99,102,241,0.35); border-radius: 12px; font-size: 14px; color: #e8edf7; line-height: 1.6; }
.tl-par-rec strong { color: #c4b5fd; font-weight: 700; }
.tl-par-disclaimer { margin-top: 18px; font-size: 12px; color: #6b7280; line-height: 1.6; padding: 14px; background: rgba(0,0,0,0.25); border-radius: 8px; border-left: 3px solid #6366f1; }
.tl-par-disclaimer a { color: #c4b5fd; }
@media (max-width: 900px) { .tl-par-top { grid-template-columns: 1fr; } .tl-par-toggles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tl-par-toggles { grid-template-columns: 1fr; } .tl-par-rule-grid { grid-template-columns: 1fr; } }

/* Utility: spacing for h2 between widget sections */
.pa-h2-spaced { margin-top: 32px; }
