/*
 * Pro Lex Strategy — Premium 2026 visual system
 * Editorial authority, quiet luxury, restrained legal-tech precision.
 * This is the final light-theme layer plus shared typography roles; it
 * overrides legacy palette and font experiments across routes.
 */

html.light[data-theme="light"] {
  --premium-canvas: #fbfaf7;
  --premium-section: #fbfaf7;
  --premium-elevated: #dfe8e4;
  --premium-card: #fffcf7;
  --premium-card-soft: #f7faf8;
  --premium-ink: #193640;
  --premium-ink-rgb: 25, 54, 64;
  --premium-muted: #5a6b70;
  --premium-line: #cbd8d4;
  --premium-line-strong: #b7c8c2;
  --premium-copper: #a6603c;
  --premium-copper-deep: #7d452d;
  --premium-copper-wash: #f2e7df;
  --premium-sage: #7d968a;

  --page-bg: var(--premium-canvas) !important;
  --surface: var(--premium-card) !important;
  --surface-low: var(--premium-section) !important;
  --surface-container: var(--premium-elevated) !important;
  --surface-high: var(--premium-card) !important;
  --surface-variant: var(--premium-card-soft) !important;
  --text: var(--premium-ink) !important;
  --text-muted: var(--premium-muted) !important;
  --primary: var(--premium-copper) !important;
  --primary-strong: var(--premium-copper-deep) !important;
  --gold-rgb: 166, 96, 60 !important;
  --ink-rgb: 25, 54, 64 !important;
  --card-bg: #fffcf7 !important;
  --card-bg-hover: #f7faf8 !important;
  --card-bg-featured: #e9efec !important;
  --section-alt: #e9efec !important;
  --section-strong: #dfe8e4 !important;
  --article-card: #fffcf7 !important;
  --article-card-hover: #f7faf8 !important;
  --article-border: #cbd8d4 !important;
  --article-ink: #193640 !important;
}

html.light[data-theme="light"] body,
html.light[data-theme="light"] body main {
  background: var(--premium-canvas) !important;
  background-image: none !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body,
html.light[data-theme="light"] body p,
html.light[data-theme="light"] body li,
html.light[data-theme="light"] body button,
html.light[data-theme="light"] body input,
html.light[data-theme="light"] body textarea,
html.light[data-theme="light"] body select {
  font-family: var(--font-body) !important;
}

html.light[data-theme="light"] body h1,
html.light[data-theme="light"] body h2,
html.light[data-theme="light"] body h3,
html.light[data-theme="light"] body h4,
html.light[data-theme="light"] body .brand,
html.light[data-theme="light"] body .hero-brand,
html.light[data-theme="light"] body .brand-splash__name {
  font-family: var(--font-display) !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body p,
html.light[data-theme="light"] body li,
html.light[data-theme="light"] body small,
html.light[data-theme="light"] body .text-muted,
html.light[data-theme="light"] body .form-hint {
  color: var(--premium-muted) !important;
}

/* Quiet section rhythm: atmosphere comes from spacing, not tiled textures. */
html.light[data-theme="light"] body main > :where(section, .section),
html.light[data-theme="light"] body main :where(.pricing-page, .service-archive-page, .service-detail-page, .article-archive-page, .article-detail-page, .legal-page) {
  background-color: var(--premium-canvas) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body main > :where(.trust-bar, .section-muted, .subscription-benefits, .subscription-comparison-section, .subscription-faq-section, .doubts-section, .workflow-block) {
  background-color: var(--premium-section) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(25, 54, 64, 0.96) !important;
  box-shadow: 0 12px 30px rgba(25, 54, 64, 0.12) !important;
}

html.light[data-theme="light"] body .site-header .brand,
html.light[data-theme="light"] body .site-header .main-nav,
html.light[data-theme="light"] body .site-header .nav-link,
html.light[data-theme="light"] body .site-header .nav-link-trigger,
html.light[data-theme="light"] body .site-header .header-phone {
  color: rgba(255, 255, 255, 0.9) !important;
}

html.light[data-theme="light"] body .site-header .brand-logo-dark {
  display: block !important;
  filter: brightness(1.28) grayscale(1) !important;
}

html.light[data-theme="light"] body .site-header .brand-logo-light {
  display: none !important;
}

/* Editorial titles: no beige title slabs, only a rule and a copper index. */
html.light[data-theme="light"] body :where(.pricing-direction-header, .pricing-category header, .section-heading, .section-header) {
  border: 0 !important;
  border-bottom: 1px solid var(--premium-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body :where(.pricing-direction-header, .pricing-category header) {
  padding-inline: 0 !important;
}

html.light[data-theme="light"] body :where(.section-kicker, .eyebrow, .article-eyebrow, .card-kicker, .pricing-category-heading-index) {
  color: var(--premium-copper-deep) !important;
  letter-spacing: 0.13em !important;
}

/* Navigation is a rail, never a collection of unrelated cards. */
html.light[data-theme="light"] body :where(.pricing-toc, .service-direction-nav, .pricing-category-nav, .service-direction-nav nav) {
  border: 0 !important;
  border-left: 1px solid var(--premium-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body :where(.service-direction-nav .service-direction-link, .service-direction-nav .service-direction-all, .pricing-category-nav a) {
  min-height: 44px !important;
  border: 0 !important;
  border-left: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--premium-muted) !important;
}

html.light[data-theme="light"] body :where(.service-direction-nav .service-direction-link:hover, .service-direction-nav .service-direction-link:focus-visible, .service-direction-nav .service-direction-link.is-active, .service-direction-nav .service-direction-all:hover, .service-direction-nav .service-direction-all:focus-visible, .pricing-category-nav a:hover, .pricing-category-nav a:focus-visible, .pricing-category-nav a.is-active) {
  border-left-color: var(--premium-copper) !important;
  background: rgba(166, 96, 60, 0.07) !important;
  color: var(--premium-ink) !important;
}

/* One card language across services, articles, contacts and subscriptions. */
html.light[data-theme="light"] body :where(.area-card, .service-package-card, .service-directory-card, .service-info-card, .article-card, .reason-item, .list-card, .case-card, .subscription-plan, .subscription-faq-list details, .pricing-decision-card, .pricing-format-card, .pricing-service-item, .contacts-panel, .contacts-row, .contact-form, .contact-dialog-panel) {
  border: 1px solid var(--premium-line) !important;
  border-radius: 10px !important;
  background: var(--premium-card) !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(25, 54, 64, 0.065) !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body :where(.area-card:hover, .service-package-card:hover, .service-directory-card:hover, .service-info-card:hover, .article-card:hover, .reason-item:hover, .list-card:hover, .case-card:hover, .subscription-plan:hover, .pricing-decision-card:hover, .pricing-format-card:hover, .pricing-service-item:hover, .contacts-row:hover) {
  border-color: rgba(166, 96, 60, 0.48) !important;
  background: var(--premium-card) !important;
  box-shadow: 0 20px 42px rgba(25, 54, 64, 0.1) !important;
  transform: translateY(-2px);
}

html.light[data-theme="light"] body :where(.area-card::before, .area-card::after, .service-package-card::before, .service-package-card::after, .article-card::before, .article-card::after, .reason-item::before, .reason-item::after) {
  opacity: 0.035 !important;
}

/* Pricing tables: white rows, one neutral header, copper only for price/action. */
html.light[data-theme="light"] body :where(.pricing-category, .pricing-service-list, .pricing-options, .subscription-table-wrap) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body :where(.pricing-service-item, .pricing-option-row, .pricing-option-value, .pricing-option-name, .pricing-option-details, .pricing-option-includes, .subscription-table-row, table tbody tr) {
  background: var(--premium-card) !important;
  background-image: none !important;
  border-color: var(--premium-line) !important;
  box-shadow: none !important;
}

/* Extended price cards must read as one calm surface. Legacy rules were
 * painting the intro copy and each table cell independently, creating beige
 * slabs and white stripes inside the same card. */
html.light[data-theme="light"] body :where(.pricing-service-item-options, .pricing-service-item-options .pricing-service-copy, .pricing-service-item-options .pricing-service-title, .pricing-service-item-options .pricing-options) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body :where(.pricing-service-item-options .pricing-options-head) {
  background: var(--premium-card-soft) !important;
  background-color: var(--premium-card-soft) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body :where(.pricing-service-item-options .pricing-option-row, .pricing-service-item-options .pricing-option-row > *, .pricing-service-item-options .pricing-option-value, .pricing-service-item-options .pricing-option-name, .pricing-service-item-options .pricing-option-details, .pricing-service-item-options .pricing-option-includes) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

html.light[data-theme="light"] body :where(.pricing-service-item-options .pricing-option-row:nth-child(even)) {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html.light[data-theme="light"] body :where(.pricing-options-head, table thead, .subscription-table-head) {
  background: var(--premium-card-soft) !important;
  background-image: none !important;
  border-color: var(--premium-line) !important;
  color: var(--premium-copper-deep) !important;
}

html.light[data-theme="light"] body :where(.pricing-option-row:nth-child(even), .subscription-table-row:nth-child(even), table tbody tr:nth-child(even)) {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* The pricing rail is an index, not a set of colored tiles. */
html.light[data-theme="light"] body :where(.pricing-toc a, .pricing-toc .service-direction-link, .pricing-toc .service-direction-all) {
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body :where(.pricing-toc a.is-active, .pricing-toc a:hover, .pricing-toc a:focus-visible, .pricing-toc .service-direction-link.is-active, .pricing-toc .service-direction-link:hover, .pricing-toc .service-direction-link:focus-visible) {
  border-left-color: var(--premium-copper) !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--premium-ink) !important;
}

/* Beat the older light-reference navigation selectors. */
html.light[data-theme="light"] body .pricing-toc.service-direction-nav .service-direction-link,
html.light[data-theme="light"] body .pricing-toc.service-direction-nav .service-direction-link.is-active,
html.light[data-theme="light"] body .pricing-toc.service-direction-nav .service-direction-link:hover,
html.light[data-theme="light"] body .pricing-toc.service-direction-nav .service-direction-link:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body .pricing-service-item-options .pricing-option-row,
html.light[data-theme="light"] body .pricing-service-item-options .pricing-option-row:nth-child(even) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

html.light[data-theme="light"] body .pricing-service-item-options .pricing-option-row > * {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

html.light[data-theme="light"] body :where(.pricing-service-price > strong, .pricing-options strong, .price-list strong) {
  color: var(--premium-copper-deep) !important;
}

/* CTA hierarchy: deep teal field + one copper signal. */
html.light[data-theme="light"] body :where(.button-primary, .cta-button, .form-submit, .pricing-request-link, .pricing-cta, .contact-submit) {
  border: 1px solid var(--premium-ink) !important;
  border-radius: 4px !important;
  background: var(--premium-ink) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(25, 54, 64, 0.16) !important;
}

html.light[data-theme="light"] body :where(.button-primary:hover, .button-primary:focus-visible, .cta-button:hover, .cta-button:focus-visible, .form-submit:hover, .form-submit:focus-visible, .pricing-request-link:hover, .pricing-request-link:focus-visible, .pricing-cta:hover, .pricing-cta:focus-visible, .contact-submit:hover, .contact-submit:focus-visible) {
  border-color: var(--premium-copper-deep) !important;
  background: var(--premium-copper-deep) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

html.light[data-theme="light"] body :where(.pricing-request-link .material-symbols-outlined, .button-primary .material-symbols-outlined, .cta-button .material-symbols-outlined) {
  color: #e5ad89 !important;
}

/* Forms should feel like a private intake desk, not a generic template. */
html.light[data-theme="light"] body :where(.contact-form, .contact-dialog-panel) {
  background: #ffffff !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body :where(.contact-form input, .contact-form textarea, .contact-dialog-panel input, .contact-dialog-panel textarea, select) {
  border: 1px solid var(--premium-line) !important;
  border-radius: 4px !important;
  background: var(--premium-card-soft) !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body :where(.contact-form input:focus, .contact-form textarea:focus, .contact-dialog-panel input:focus, .contact-dialog-panel textarea:focus, select:focus) {
  border-color: var(--premium-copper) !important;
  box-shadow: 0 0 0 3px rgba(166, 96, 60, 0.14) !important;
  outline: none !important;
}

/* Dark isolation is intentional only for the final conversion zones. */
html.light[data-theme="light"] body :where(.site-footer, .service-final-cta, .subscription-final-cta, .subscription-hero, .cta.media-section) {
  background-color: var(--premium-ink) !important;
  background-image: none !important;
  color: #ffffff !important;
}

html.light[data-theme="light"] body :where(.site-footer h2, .site-footer h3, .service-final-cta h2, .subscription-final-cta h2, .subscription-hero h1, .cta.media-section h2) {
  color: #ffffff !important;
}

html.light[data-theme="light"] body :where(.site-footer p, .site-footer a, .service-final-cta p, .subscription-final-cta p, .subscription-hero p, .cta.media-section p) {
  color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 760px) {
  html.light[data-theme="light"] body :where(.service-direction-nav, .pricing-toc) {
    border-left: 0 !important;
    border-bottom: 1px solid var(--premium-line) !important;
  }

  html.light[data-theme="light"] body :where(.pricing-service-item, .pricing-options) {
    border-radius: 7px !important;
  }
}

/* Remove the duplicate generated workflow index and the legacy featured card. */
html.light[data-theme="light"] body .workflow-experience .workflow-step-number::after {
  display: none !important;
  content: none !important;
}

html.light[data-theme="light"] body .workflow-experience .workflow-step:nth-child(5) .workflow-step-copy,
html.light[data-theme="light"] body .workflow-experience .workflow-step:nth-child(5) .workflow-step-title,
html.light[data-theme="light"] body .workflow-experience .workflow-step:nth-child(5) p {
  background: #ffffff !important;
  color: var(--premium-ink) !important;
}

/* Final workflow geometry override: the copy is the card; the number is its index. */
html.light[data-theme="light"] body .workflow-experience .workflow-step,
html.light[data-theme="light"] body .workflow-experience .workflow-step:nth-child(n) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
}

html.light[data-theme="light"] body .workflow-experience .workflow-step-number {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 12px !important;
  color: var(--premium-copper) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  text-align: left !important;
}

html.light[data-theme="light"] body .workflow-experience .workflow-step-copy,
html.light[data-theme="light"] body .workflow-experience .workflow-step.is-active .workflow-step-copy,
html.light[data-theme="light"] body .workflow-experience .workflow-step.is-complete .workflow-step-copy,
html.light[data-theme="light"] body .workflow-experience .workflow-step.is-approaching .workflow-step-copy {
  position: relative !important;
  min-height: 192px !important;
  padding: 24px !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(25, 54, 64, 0.065) !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body .workflow-experience .workflow-step.is-active .workflow-step-copy,
html.light[data-theme="light"] body .workflow-experience .workflow-step:last-child .workflow-step-copy {
  background: var(--premium-card) !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body .workflow-experience .workflow-step.is-active .workflow-step-title,
html.light[data-theme="light"] body .workflow-experience .workflow-step:last-child .workflow-step-title,
html.light[data-theme="light"] body .workflow-experience .workflow-step.is-active p,
html.light[data-theme="light"] body .workflow-experience .workflow-step:last-child p {
  color: var(--premium-ink) !important;
}

/* Workflow: equal cards and one readable surface, not a decorative staircase. */
html.light[data-theme="light"] body :where(.workflow-block, .workflow-panel, .workflow-experience) {
  background: var(--premium-canvas) !important;
  background-image: none !important;
  color: var(--premium-ink) !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body .workflow-panel::before,
html.light[data-theme="light"] body .workflow-route,
html.light[data-theme="light"] body .workflow-route-aura,
html.light[data-theme="light"] body .workflow-route-progress,
html.light[data-theme="light"] body .workflow-route-orbit,
html.light[data-theme="light"] body .workflow-route-signal {
  display: none !important;
}

html.light[data-theme="light"] body .workflow-header {
  margin-bottom: 36px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid var(--premium-line) !important;
  background: transparent !important;
}

html.light[data-theme="light"] body .workflow-header h2,
html.light[data-theme="light"] body .workflow-step-title,
html.light[data-theme="light"] body .workflow-step-copy,
html.light[data-theme="light"] body .workflow-step p {
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body .workflow-header p,
html.light[data-theme="light"] body .workflow-step p {
  color: var(--premium-muted) !important;
}

html.light[data-theme="light"] body .workflow-track {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
  min-height: 0 !important;
}

html.light[data-theme="light"] body .workflow-step,
html.light[data-theme="light"] body .workflow-step:nth-child(1),
html.light[data-theme="light"] body .workflow-step:nth-child(2),
html.light[data-theme="light"] body .workflow-step:nth-child(3),
html.light[data-theme="light"] body .workflow-step:nth-child(4),
html.light[data-theme="light"] body .workflow-step:nth-child(5),
html.light[data-theme="light"] body .workflow-step:nth-last-child(-n + 2),
html.light[data-theme="light"] body .workflow-step:last-child {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

html.light[data-theme="light"] body .workflow-step-surface {
  position: static !important;
  min-height: 220px !important;
  padding: 24px !important;
  border: 1px solid var(--premium-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(25, 54, 64, 0.065) !important;
  transform: none !important;
  filter: none !important;
}

html.light[data-theme="light"] body .workflow-step-number {
  color: var(--premium-copper) !important;
}

html.light[data-theme="light"] body .workflow-step-number::before {
  display: none !important;
}

html.light[data-theme="light"] body .workflow-guarantees {
  margin-top: 28px !important;
  border-top: 1px solid var(--premium-line) !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  html.light[data-theme="light"] body .workflow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  html.light[data-theme="light"] body .workflow-track {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Specificity bridge for legacy light-reference selectors. */
html.light[data-theme="light"] body :is(
  #about,
  #services,
  #popular,
  #why-pro-lex,
  #pricing,
  #workflow,
  .work-pricing-section,
  .pricing-block,
  .pricing-page,
  .service-archive-page,
  .service-detail-page,
  .article-archive-page,
  .article-detail-page,
  .legal-page,
  .contacts-page
) {
  background-color: var(--premium-canvas) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body :is(
  .trust-bar,
  .section-muted,
  .doubts-section,
  .workflow-block,
  .subscription-benefits,
  .subscription-comparison-section,
  .subscription-faq-section
) {
  background-color: var(--premium-section) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body :is(
  .area-card,
  .service-package-card,
  .service-directory-card,
  .service-info-card,
  .article-card,
  .reason-item,
  .list-card,
  .case-card,
  .subscription-plan,
  .subscription-faq-list details,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .contacts-panel,
  .contacts-row,
  .contact-form,
  .contact-dialog-panel
) {
  border-color: var(--premium-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(25, 54, 64, 0.065) !important;
  color: var(--premium-ink) !important;
}

html.light[data-theme="light"] body :is(
  .area-card:hover,
  .service-package-card:hover,
  .service-directory-card:hover,
  .service-info-card:hover,
  .article-card:hover,
  .reason-item:hover,
  .list-card:hover,
  .case-card:hover,
  .subscription-plan:hover,
  .pricing-decision-card:hover,
  .pricing-format-card:hover,
  .pricing-service-item:hover,
  .contacts-row:hover
) {
  background: #f7faf8 !important;
  background-image: none !important;
  border-color: rgba(166, 96, 60, 0.48) !important;
}

/* Pricing hero: keep the editorial scale, remove the empty dead zone. */
html.light[data-theme="light"] body .pricing-page .pricing-hero {
  min-height: 470px !important;
  padding-block: 42px 58px !important;
  align-items: center !important;
}

html.light[data-theme="light"] body .pricing-page .pricing-hero h1 {
  max-width: 920px !important;
  text-wrap: balance !important;
}

/* Subscription plans: one calm premium system, without legacy slabs or patterns. */
html.light[data-theme="light"] body .subscription-plans-section {
  background: var(--premium-canvas) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body .subscription-plan-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
}

html.light[data-theme="light"] body .subscription-plan,
html.light[data-theme="light"] body .subscription-plan:nth-child(n),
html.light[data-theme="light"] body .subscription-plan:hover,
html.light[data-theme="light"] body .subscription-plan:focus-within {
  --plan-accent: var(--premium-copper) !important;
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--premium-line) !important;
  border-top: 1px solid var(--premium-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 18px 40px rgba(25, 54, 64, 0.07) !important;
  color: var(--premium-ink) !important;
  transform: none !important;
}

html.light[data-theme="light"] body .subscription-plan::before,
html.light[data-theme="light"] body .subscription-plan::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

html.light[data-theme="light"] body .subscription-plan > header {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 28px 24px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--premium-line) !important;
  background: var(--premium-card-soft) !important;
  background-image: none !important;
}

html.light[data-theme="light"] body .subscription-plan > header > p {
  margin: 0 0 12px !important;
  color: var(--premium-copper-deep) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

html.light[data-theme="light"] body .subscription-plan > header > h3 {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--premium-ink) !important;
  font-family: "Newsreader", Georgia, serif !important;
  font-size: clamp(2.2rem, 3vw, 3.35rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}

html.light[data-theme="light"] body .subscription-plan > header > h3 > span {
  color: var(--premium-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

html.light[data-theme="light"] body .subscription-plan > header > small {
  display: block !important;
  margin-top: 12px !important;
  color: var(--premium-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.76rem !important;
}

html.light[data-theme="light"] body .subscription-plan-ribbon {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  width: auto !important;
  max-width: calc(100% - 28px) !important;
  padding: 6px 9px !important;
  transform: none !important;
  border: 1px solid rgba(166, 96, 60, 0.28) !important;
  border-radius: 999px !important;
  background: var(--premium-copper-wash) !important;
  color: var(--premium-copper-deep) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html.light[data-theme="light"] body .subscription-plan-featured {
  border-color: rgba(166, 96, 60, 0.52) !important;
  box-shadow: 0 22px 48px rgba(166, 96, 60, 0.12) !important;
}

html.light[data-theme="light"] body .subscription-plan-featured > header {
  background: #f8f2eb !important;
}

html.light[data-theme="light"] body .subscription-plan-audience {
  margin: 0 !important;
  padding: 24px 24px 22px !important;
  color: var(--premium-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.86rem !important;
  line-height: 1.65 !important;
}

html.light[data-theme="light"] body .subscription-plan-audience strong {
  color: var(--premium-ink) !important;
  font-weight: 800 !important;
}

html.light[data-theme="light"] body .subscription-plan-hours {
  margin: 0 24px !important;
  padding: 20px 0 !important;
  border-top: 1px solid var(--premium-line) !important;
  border-bottom: 1px solid var(--premium-line) !important;
}

html.light[data-theme="light"] body .subscription-plan-hours strong {
  color: var(--premium-ink) !important;
  font-family: "Newsreader", Georgia, serif !important;
  font-size: 3.25rem !important;
  font-weight: 400 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.9 !important;
}

html.light[data-theme="light"] body .subscription-plan-hours span,
html.light[data-theme="light"] body .subscription-plan-hours small {
  color: var(--premium-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

html.light[data-theme="light"] body .subscription-plan-includes {
  flex: 1 1 auto !important;
  padding: 22px 24px 0 !important;
}

html.light[data-theme="light"] body .subscription-plan-includes h4 {
  margin: 0 0 14px !important;
  color: var(--premium-copper-deep) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
}

html.light[data-theme="light"] body .subscription-plan-includes li {
  color: var(--premium-muted) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
}

html.light[data-theme="light"] body .subscription-plan-cta {
  align-self: stretch !important;
  margin: 24px !important;
  border-radius: 5px !important;
  background: var(--premium-ink) !important;
  color: #ffffff !important;
}

html.light[data-theme="light"] body .subscription-plan-cta:hover,
html.light[data-theme="light"] body .subscription-plan-cta:focus-visible {
  background: var(--premium-copper-deep) !important;
  border-color: var(--premium-copper-deep) !important;
}

@media (max-width: 1100px) {
  html.light[data-theme="light"] body .subscription-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  html.light[data-theme="light"] body .subscription-plan-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Site-wide composition pass: consistent rhythm, restrained surfaces, clear hierarchy. */
html.light[data-theme="light"] body main > :where(section, .section) {
  position: relative !important;
  isolation: isolate !important;
}

html.light[data-theme="light"] body main > :where(section, .section) > .container,
html.light[data-theme="light"] body :where(.pricing-page-inner, .service-archive-page-inner, .service-detail-page-inner, .contacts-page-inner) {
  width: min(100% - 48px, 1240px) !important;
  margin-inline: auto !important;
}

html.light[data-theme="light"] body :where(.section-heading, .section-header, .subscription-section-header, .pricing-direction-header, .pricing-category header) {
  margin-bottom: clamp(28px, 4vw, 48px) !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--premium-line) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body :where(.section-heading h2, .section-header h2, .subscription-section-header h2, .pricing-direction-header h2, .pricing-category header h3) {
  margin: 0 !important;
  color: var(--premium-ink) !important;
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
}

html.light[data-theme="light"] body :where(.section-heading p, .section-header p, .subscription-section-header p, .pricing-direction-header p) {
  max-width: 64ch !important;
  margin: 14px 0 0 !important;
  color: var(--premium-muted) !important;
  line-height: 1.7 !important;
}

/* All repeating content uses one geometry: equal gaps, no accidental tiles. */
html.light[data-theme="light"] body :where(.area-grid, .service-directory-grid, .service-package-grid, .article-grid, .reason-grid, .contacts-primary-grid, .subscription-benefit-grid) {
  gap: 18px !important;
}

html.light[data-theme="light"] body :where(.area-card, .service-package-card, .service-directory-card, .service-info-card, .article-card, .reason-item, .list-card, .case-card, .contacts-panel, .contacts-row, .pricing-decision-card, .pricing-format-card) {
  min-width: 0 !important;
  overflow: hidden !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

html.light[data-theme="light"] body :where(.area-card::before, .area-card::after, .service-package-card::before, .service-package-card::after, .service-directory-card::before, .service-directory-card::after, .article-card::before, .article-card::after, .reason-item::before, .reason-item::after, .contacts-panel::before, .contacts-panel::after) {
  opacity: 0 !important;
  background-image: none !important;
}

/* Typography scale: display serif for decisions, sans for supporting information. */
html.light[data-theme="light"] body :where(.hero h1, .subscription-hero h1, .pricing-hero h1, .contacts-hero h1, .service-detail-hero h1) {
  max-width: 15ch !important;
  color: var(--premium-ink) !important;
  font-size: clamp(2.8rem, 6vw, 5.6rem) !important;
  letter-spacing: -0.055em !important;
  line-height: 0.96 !important;
  text-wrap: balance !important;
}

html.light[data-theme="light"] body :where(.hero p, .subscription-hero p, .pricing-hero p, .contacts-hero p, .service-detail-hero p) {
  max-width: 62ch !important;
  color: var(--premium-muted) !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

/* Buttons share one silhouette; color carries the hierarchy. */
html.light[data-theme="light"] body :where(.button, .button-primary, .button-secondary, .button-ghost, .cta-button, .form-submit, .pricing-cta, .pricing-request-link, .contact-submit, .subscription-plan-cta) {
  min-height: 46px !important;
  padding: 12px 18px !important;
  border-radius: 5px !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

/* Tables stay readable: one header, quiet rows, no alternating color noise. */
html.light[data-theme="light"] body :where(table, .pricing-options, .subscription-table-wrap) {
  border: 1px solid var(--premium-line) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(25, 54, 64, 0.055) !important;
}

html.light[data-theme="light"] body :where(table thead, .pricing-options-head, .subscription-table-head) {
  color: var(--premium-copper-deep) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
}

html.light[data-theme="light"] body :where(table tbody tr, table tbody tr:nth-child(even), .pricing-option-row, .pricing-option-row:nth-child(even), .subscription-table-row, .subscription-table-row:nth-child(even)) {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

html.light[data-theme="light"] body :where(table tbody tr:hover, .pricing-option-row:hover, .subscription-table-row:hover) {
  background: var(--premium-card-soft) !important;
}

@media (max-width: 760px) {
  html.light[data-theme="light"] body main > :where(section, .section) > .container,
  html.light[data-theme="light"] body :where(.pricing-page-inner, .service-archive-page-inner, .service-detail-page-inner, .contacts-page-inner) {
    width: min(100% - 32px, 1240px) !important;
  }

  html.light[data-theme="light"] body :where(.section-heading, .section-header, .subscription-section-header) {
    margin-bottom: 28px !important;
  }

  html.light[data-theme="light"] body :where(.hero h1, .subscription-hero h1, .pricing-hero h1, .contacts-hero h1, .service-detail-hero h1) {
    max-width: 12ch !important;
    font-size: clamp(2.4rem, 12vw, 4rem) !important;
  }
}

/* Cooperation steps: no decorative connectors behind the cards. */
html body main #workflow.workflow-block {
  position: relative;
  isolation: isolate;
  --workflow-decor-warm: rgba(197, 137, 91, 0.2);
  --workflow-decor-ivory: rgba(247, 245, 240, 0.09);
}

html:not([data-theme="light"]) body main #workflow.workflow-block {
  --workflow-decor-warm: rgba(197, 137, 91, 0.13);
  --workflow-decor-ivory: rgba(247, 245, 240, 0.045);
}

html body main #workflow#workflow.workflow-block::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 43% 68% at 100% 2%, var(--workflow-decor-warm), transparent 74%),
    radial-gradient(ellipse 36% 58% at 0% 100%, var(--workflow-decor-ivory), transparent 78%),
    linear-gradient(116deg, transparent 28%, rgba(255, 255, 255, 0.025) 52%, transparent 78%) !important;
  content: "";
  pointer-events: none;
}

html body main #workflow.workflow-block > .work-pricing-layout {
  position: relative;
  z-index: 1;
}

html.light[data-theme="light"] body #workflow.workflow-block {
  --workflow-decor-warm: rgba(207, 139, 97, 0.22);
  --workflow-decor-ivory: rgba(255, 255, 255, 0.72);
  background-color: #f8f0e8 !important;
  background-image: none !important;
}

html.light[data-theme="light"] body #workflow .workflow-step::after,
html.light[data-theme="light"] body #workflow .workflow-step-copy::after {
  display: none !important;
  content: none !important;
}

html.light[data-theme="light"] body #workflow .workflow-track {
  padding-bottom: 0 !important;
}

html.light[data-theme="light"] body #workflow .workflow-experience {
  margin-top: 0 !important;
}

/* The doubts block is the light-theme reference for every page and section. */
html.light[data-theme="light"] {
  --home-block-tone-1: #fbfaf7;
  --home-block-tone-2: #fbfaf7;
  --home-block-tone-3: #fbfaf7;
  --light-canvas: #fbfaf7;
  --light-section: #fbfaf7;
  --light-elevated: #fbfaf7;
}

html.light[data-theme="light"] body main :is(
  .pricing-page,
  .service-archive-page,
  .service-detail-page,
  .article-archive-page,
  .article-detail-page,
  .legal-page,
  .contacts-page,
  .subscription-plans-section,
  .subscription-benefits,
  .subscription-comparison-section,
  .subscription-faq-section,
  .pricing-decision-panel,
  .service-choice-panel,
  .workflow-block,
  .articles-home-section
) {
  background-color: var(--premium-canvas) !important;
}

/* One restrained interaction across actual content cards, not table cells or forms.
 * Same timing and 3px lift as the reference doubt cards. */
html.light[data-theme="light"] body :is(
  .doubt-item,
  .area-card,
  .service-package-card,
  .service-directory-card,
  .service-choice-card,
  .service-info-card,
  .article-card,
  .article-summary-card,
  .reason-item,
  .reason-outcome,
  .list-card,
  .case-card,
  .workflow-step-surface,
  .subscription-plan,
  .subscription-benefit,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .contacts-row
) {
  transition: border-color 180ms ease, background-color 180ms ease,
    transform 180ms ease, box-shadow 180ms ease !important;
}

/* Earlier page-specific rules used IDs and suppressed motion on these cards. */
html.light[data-theme="light"] body #services .service-package-card,
html.light[data-theme="light"] body .service-archive-page .service-choice-card,
html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item {
  transition: border-color 180ms ease, background-color 180ms ease,
    transform 180ms ease, box-shadow 180ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body :is(
    .doubt-item,
    .area-card,
    .service-package-card,
    .service-directory-card,
    .service-choice-card,
    .service-info-card,
    .article-card,
    .article-summary-card,
    .reason-item,
    .reason-outcome,
    .list-card,
    .case-card,
    .workflow-step-surface,
    .subscription-plan,
    .subscription-benefit,
    .pricing-decision-card,
    .pricing-format-card,
    .pricing-service-item,
    .contacts-row
  ):hover {
    border-color: rgba(166, 96, 60, 0.48) !important;
    background-color: #fffdf7 !important;
    box-shadow: 0 20px 42px rgba(25, 54, 64, 0.1) !important;
    transform: translateY(-3px) !important;
  }

  html.light[data-theme="light"] body #services .service-package-card:hover,
  html.light[data-theme="light"] body .service-archive-page .service-choice-card:hover,
  html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:hover {
    border-color: rgba(166, 96, 60, 0.48) !important;
    background-color: #fffdf7 !important;
    box-shadow: 0 20px 42px rgba(25, 54, 64, 0.1) !important;
    transform: translateY(-3px) !important;
  }
}

/* Use the Popular Services surface for every content card in the light theme.
 * Keep section backgrounds, pricing table rows, controls and navigation separate. */
html.light[data-theme="light"] body main :is(
  #services .service-package-card,
  .area-card,
  .service-package-card,
  .service-directory-card,
  .service-choice-card,
  .service-info-card,
  .doubt-item,
  .article-card,
  .article-summary-card,
  .reason-item,
  .reason-outcome,
  .list-card,
  .case-card,
  .workflow-step-copy,
  .subscription-plan,
  .subscription-benefit,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .contacts-panel,
  .contacts-row,
  .contact-form,
  .contact-dialog-panel,
  .faq-list details,
  .subscription-faq-list details
) {
  background-color: var(--premium-card) !important;
  background-image: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body main :is(
    #services .service-package-card,
    .area-card, .service-package-card, .service-directory-card,
    .service-choice-card, .service-info-card, .doubt-item,
    .article-card, .article-summary-card, .reason-item,
    .reason-outcome, .list-card, .case-card, .workflow-step-copy,
    .subscription-plan, .subscription-benefit, .pricing-decision-card,
    .pricing-format-card, .pricing-service-item, .contacts-panel,
    .contacts-row, .contact-form, .contact-dialog-panel,
    .faq-list details, .subscription-faq-list details
  ):hover {
    background-color: #fffdf7 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.light[data-theme="light"] body :is(
    .doubt-item, .area-card, .service-package-card, .service-directory-card,
    .service-choice-card, .service-info-card, .article-card, .article-summary-card,
    .reason-item, .reason-outcome, .list-card, .case-card, .workflow-step-surface,
    .subscription-plan, .subscription-benefit, .pricing-decision-card,
    .pricing-format-card, .pricing-service-item, .contacts-row
  ) {
    transition-duration: 0.01ms !important;
  }
}

/* Site-wide type roles: editorial serif for titles and figures, precise sans
 * for navigation, supporting copy and actions. Material icons retain their font. */
html body :is(
  .main-nav, .main-nav a, .main-nav strong, .nav-dropdown-menu a,
  .mobile-menu-toggle, .site-footer .footer-nav-link,
  .site-footer .footer-nav-link strong,
  .service-direction-nav, .service-direction-link-copy strong,
  .pricing-category-nav, .pricing-toc,
  .service-choice-card, .service-directory-card,
  .service-package-card, .workflow-step-copy,
  .subscription-plan, .article-card, .contacts-row,
  .contact-form, .contact-dialog-panel
) {
  font-family: var(--font-body) !important;
}

html body :is(
  .service-choice-card small,
  .service-directory-card p, .service-directory-card li,
  .service-directory-card .package-link,
  .workflow-step p,
  .contacts-row strong, .contacts-row strong a
) {
  font-family: var(--font-body) !important;
}

html body :is(
  .workflow-step-title,
  .service-package-card h3,
  .service-directory-card h2, .service-directory-card h3,
  .service-choice-card strong,
  .pricing-service-price strong, .pricing-option-value-copy strong,
  .pricing-category-heading-index,
  .subscription-benefit-number, .subscription-hours strong,
  .subscription-plan > header > p,
  .stat-item strong, .pricing-direction-meta strong,
  .doubt-quote
) {
  font-family: var(--font-display) !important;
}

/* The older light-theme stylesheet used extra ID selectors on these titles. */
html.light[data-theme="light"] body #services .service-package-card h3,
html.light[data-theme="light"] body .service-archive-page .service-directory-card h2,
html.light[data-theme="light"] body .service-archive-page .service-directory-card h3,
html.light[data-theme="light"] body .service-archive-page .service-choice-card strong,
html.light[data-theme="light"] body .workflow-step-title,
html.light[data-theme="light"] body .workflow-step p {
  font-family: var(--font-display) !important;
}

html.light[data-theme="light"] body .workflow-step p {
  font-family: var(--font-body) !important;
}

html.light[data-theme="light"] body .workflow-step:nth-child(5) .workflow-step-title,
html.light[data-theme="light"] body #why-pro-lex .reason-editorial-list .reason-item h3,
html.light[data-theme="light"] body .service-detail-page .service-markdown strong,
html.light[data-theme="light"] body .service-detail-page .service-quick-overview strong {
  font-family: var(--font-display) !important;
}

html.light[data-theme="light"] body .workflow-step:nth-child(5) p,
html.light[data-theme="light"] body #why-pro-lex .reason-editorial-list .reason-item p,
html.light[data-theme="light"] body .service-archive-page .service-choice-card,
html.light[data-theme="light"] body .service-archive-page .service-choice-card small,
html.light[data-theme="light"] body .service-archive-page .service-directory-card p,
html.light[data-theme="light"] body .service-archive-page .service-directory-card li,
html.light[data-theme="light"] body .service-archive-page .service-directory-card .package-link,
html.light[data-theme="light"] body #services .area-card-link {
  font-family: var(--font-body) !important;
}

html.light[data-theme="light"] body #why-pro-lex .reason-editorial-list .reason-item p {
  font-style: normal !important;
}

html body .articles-home-link {
  font-family: var(--font-body) !important;
}

html body :is(
  .reason-list-number,
  .pricing-page h1 + span,
  .service-detail-page h1 + span,
  .subscription-table-wrap th,
  .subscription-faq-list summary span
) {
  font-family: var(--font-body) !important;
}

html.light[data-theme="light"] body .service-archive-page .service-choice-card small,
html.light[data-theme="light"] body .service-archive-page .service-directory-card small {
  font-family: var(--font-body) !important;
}

html.light[data-theme="light"] body .service-archive-page .service-choice-index,
html.light[data-theme="light"] body .service-archive-page .service-directory-card-top small,
html.light[data-theme="light"] body .service-detail-page .service-quick-overview small,
html.light[data-theme="light"] body .pricing-page .pricing-service-price strong,
html.light[data-theme="light"] body .pricing-page .pricing-option-value-copy strong {
  font-family: var(--font-display) !important;
}

html:not([data-theme="light"]) body :is(
  p, li, button, input, textarea, select,
  .button, .package-link, .area-card-link,
  .pricing-request-link, .subscription-plan-cta
) {
  font-family: var(--font-body) !important;
}

html:not([data-theme="light"]) body #why-pro-lex .reason-editorial-list .reason-item h3,
html:not([data-theme="light"]) body .service-detail-page .service-markdown strong,
html:not([data-theme="light"]) body .service-detail-page .service-quick-overview strong,
html:not([data-theme="light"]) body .service-archive-page .service-directory-card-top small,
html:not([data-theme="light"]) body .service-archive-page .service-choice-index,
html:not([data-theme="light"]) body .workflow-step-number,
html:not([data-theme="light"]) body .subscription-plan > header > p {
  font-family: var(--font-display) !important;
}

html:not([data-theme="light"]) body #why-pro-lex .reason-editorial-list .reason-item p {
  font-family: var(--font-body) !important;
  font-style: normal !important;
}


