:root {
  --ba-ux-focus: #22d3ee;
  --ba-ux-accent: #d4af37;
  --ba-ux-panel: rgba(15, 23, 42, 0.72);
  --ba-ux-border: var(--ba-border-muted, rgba(148, 163, 184, 0.24));
  --ba-ux-radius: var(--ba-radius-card, 16px);
  --ba-ux-shadow: var(--ba-shadow-panel, 0 18px 48px rgba(2, 6, 23, 0.24));
}

html,
body {
  max-inline-size: 100%;
  overflow-x: clip;
}

:focus-visible {
  outline: 3px solid var(--ba-ux-focus);
  outline-offset: 3px;
  border-radius: 10px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.14);
}

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

:where(a, button, input, select, textarea, summary, [role="button"]):focus-visible {
  outline: 3px solid var(--ba-ux-focus);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

a,
button,
input,
select,
textarea,
summary,
[role="button"] {
  scroll-margin-block: 96px;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
summary {
  min-block-size: var(--ba-tap-target-comfortable, 48px);
  min-inline-size: 48px;
  touch-action: manipulation;
}

summary {
  display: flex;
  align-items: center;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-main,
.btn-sub,
.btn-outline,
.nav-cta,
.internal-linking-cta,
.commercial-seo-ctas a,
.brightai-command-cta a,
.section-cta a,
.ux-section-cta a {
  align-items: center;
  justify-content: center;
  min-block-size: var(--ba-tap-target-comfortable, 48px);
}

.btn-primary,
.btn-main,
.commercial-seo-ctas a:first-child,
.brightai-command-cta a,
.section-cta a:first-child,
.ux-section-cta a:first-child {
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero-section h1,
.hero h1,
header h1 {
  max-width: 13ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero-section p,
.hero p,
header .lead {
  max-width: 72ch;
  margin-inline: auto;
}

.seo-answer-block,
.answer-block {
  border-inline-start: 4px solid var(--ba-ux-focus);
  border-radius: var(--ba-ux-radius);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.13), rgba(15, 23, 42, 0.62));
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
  text-align: start;
}

.seo-answer-block h2,
.answer-block h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  margin-block: 0 0.6rem;
}

.seo-answer-block p,
.answer-block p {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.95;
}

.seo-intent-section,
.ux-trust-block {
  max-width: 72rem;
  margin: 1.1rem auto 1.5rem;
  padding: 18px;
  border: 1px solid var(--ba-ux-border);
  border-radius: var(--ba-ux-radius);
  background: var(--ba-ux-panel);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
  text-align: start;
}

.seo-intent-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.seo-intent-group,
.seo-intent-links,
.ux-trust-item {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.seo-intent-section h2,
.ux-trust-block h2 {
  margin-block: 0 0.55rem;
  color: var(--ba-neutral-50, #f8fafc);
  font-size: 1rem;
  line-height: 1.5;
}

.seo-intent-section h3,
.ux-trust-block h3 {
  margin-block: 0.65rem 0.35rem;
  color: #bae6fd;
  font-size: 0.95rem;
  line-height: 1.55;
}

.seo-intent-section p,
.ux-trust-block p {
  margin-block: 0 0.65rem;
  color: var(--ba-neutral-300, #cbd5e1);
  font-size: 0.92rem;
  line-height: 1.85;
}

.seo-intent-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.seo-intent-links a,
.section-cta a,
.ux-section-cta a,
.hero-actions a,
.hero-actions button,
.nav-link,
.search-trigger,
.mobile-search-btn,
.mobile-toggle,
.chatbot-toggle,
.chatbot-send,
.chatbot-chip,
.chatbot-mini-btn,
.chatbot-icon-btn,
.qty-control button,
.close-btn,
.floating-cart,
.to-top,
#bai-chat-fab,
#bai-chat-close,
#bai-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--ba-tap-target-comfortable, 48px);
  min-inline-size: 48px;
}

.section-cta a,
.ux-section-cta a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.section-cta,
.ux-section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block: 18px 0;
}

.conversion-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block: 22px;
}

.conversion-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: var(--ba-tap-target-comfortable, 48px);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.conversion-cta .conversion-primary {
  color: #07111f;
  background: linear-gradient(135deg, #22d3ee, #d4af37);
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.conversion-cta .conversion-secondary {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.32);
  background: rgba(15, 23, 42, 0.68);
}

.conversion-support {
  width: 100%;
  max-width: 72ch;
  margin: 0;
  color: var(--ba-neutral-300, #cbd5e1);
  font-size: 0.95rem;
  line-height: 1.85;
}

.hero .seo-answer-block,
.hero-section .seo-answer-block,
.hero-copy .seo-answer-block,
.hero-content .seo-answer-block {
  display: block;
  inline-size: 100%;
  max-inline-size: min(64rem, calc(100vw - 32px));
  margin-inline: auto;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.72));
  box-shadow: var(--ba-ux-shadow);
  box-sizing: border-box;
}

.hero .seo-intent-section,
.hero-section .seo-intent-section,
.hero-copy .seo-intent-section,
.hero-content .seo-intent-section {
  inline-size: min(100%, 64rem);
  max-inline-size: calc(100vw - 32px);
  max-height: 11rem;
  overflow: auto;
  scrollbar-gutter: stable;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.hero-actions,
.hero .flex.flex-col.sm\:flex-row,
.hero-section .flex.flex-col.sm\:flex-row {
  justify-content: center;
}

.hero-actions a:first-child,
.hero-section .flex.flex-col.sm\:flex-row a:first-child,
.hero .flex.flex-col.sm\:flex-row a:first-child {
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.ux-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 72rem;
  margin: 0 auto;
  padding: 18px;
  border-block: 1px solid var(--ba-ux-border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(2, 6, 23, 0.82));
  text-align: start;
}

.ux-trust-card {
  border: 1px solid var(--ba-ux-border);
  border-radius: var(--ba-ux-radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.14);
}

.ux-trust-card strong {
  display: block;
  color: var(--ba-neutral-50, #f8fafc);
  font-size: 1rem;
  line-height: 1.5;
  margin-block-end: 0.35rem;
}

.ux-trust-card p {
  margin: 0;
  color: var(--ba-neutral-300, #cbd5e1);
  font-size: 0.93rem;
  line-height: 1.85;
}

.responsive-table,
.table-scroll,
.geo-table,
.compare-wrap,
.table-wrapper,
.comparison-table-wrapper,
table {
  max-width: 100%;
}

.responsive-table,
.table-scroll,
.geo-table,
.compare-wrap,
.table-wrapper,
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

table {
  word-break: normal;
}

th,
td {
  overflow-wrap: break-word;
}

.compare,
.comparison-table,
.automation-table,
.geo-table table,
.responsive-table table,
.table-scroll table {
  min-width: 720px;
}

@media (max-width: 768px) {
  .hero-section,
  .hero {
    min-height: auto;
    padding-block: 96px 48px;
  }

  .hero-section h1,
  .hero h1,
  header h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    line-height: 1.25;
  }

  .seo-answer-block,
  .answer-block,
  .seo-intent-section,
  .ux-trust-block {
    padding: 16px;
    margin-block: 16px;
  }

  .section-cta,
  .ux-section-cta,
  .conversion-cta,
  .commercial-seo-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .section-cta a,
  .ux-section-cta a,
  .conversion-cta a,
  .commercial-seo-ctas a,
  .hero-actions a,
  .hero-actions button,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-main,
  .btn-sub,
  .btn-outline {
    width: 100%;
    min-block-size: var(--ba-tap-target-comfortable, 48px);
    text-align: center;
    white-space: normal;
  }

  .hero .seo-intent-section,
  .hero-section .seo-intent-section,
  .hero-copy .seo-intent-section,
  .hero-content .seo-intent-section {
    display: none;
  }

  .ux-trust-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .geo-table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
