:root {
  --brand: #533afd;
  --brand-hover: #4328e8;
  --brand-soft: #533afd14;
  --brand-line: #8b77ff45;
  --brand-ink: #c7bcff;
}
html[data-theme] {
  --accent: var(--brand);
  --blue: var(--brand);
}
html[data-theme="light"] {
  --brand-ink: #533afd;
  --brand-soft: #533afd0b;
  --brand-line: #533afd30;
}
html[data-theme="light"] :is(.site-header .brand,.site-footer .brand,.policy-header .brand,.section-brand,.brand,.story-brand) { color: #000; --cat-eye: #fff; }
html[data-theme] :is(.section-brand,.brand,.story-brand) strong { font-family: inherit; font-weight: 700; }
html[data-theme] [data-theme-control] {
  --theme-selected: var(--brand-soft);
}
html[data-theme] .button-primary,
html[data-theme] .customer-workspace .button-primary,
html[data-theme].client-portal .login-card .button-primary {
  color: #fff;
  background: linear-gradient(145deg, #624aff, #533afd 55%, #4930e7);
  border-color: #8875ff;
  box-shadow:
    inset 0 1px 0 #ffffff45,
    0 6px 20px #533afd25;
}
html[data-theme] .button-primary:hover,
html[data-theme] .customer-workspace .button-primary:hover,
html[data-theme].client-portal .login-card .button-primary:hover {
  color: #fff;
  background: linear-gradient(145deg, #715bff, #6046ff 55%, #533afd);
  border-color: #a294ff;
}
html[data-theme]
  :is(button, a, summary, input, select, textarea):focus-visible {
  outline-color: #806aff;
}
html[data-theme] :is(input, select, textarea):focus {
  border-color: #8b77ff;
}
html[data-theme] .gradient-text {
  background-image: linear-gradient(115deg, #d2caff, #a08cff 75%);
}
html[data-theme="light"] .gradient-text {
  background-image: linear-gradient(115deg, #533afd, #7258d9 75%);
}
html[data-theme]
  :is(
    .device-switcher button[aria-pressed="true"],
    .client-nav-item.active,
    .rail-group.active,
    #section-navigation button.active
  ) {
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
html[data-theme] .theme-options button[aria-pressed="true"],
html[data-theme] .theme-segment button[aria-pressed="true"] {
  color: var(--brand-ink);
  border-color: var(--brand-line);
}
html[data-theme] .plan-comparison .comparison-toggle {
  color: var(--brand-ink);
}
html[data-theme="light"] .plan-comparison .comparison-title {
  color: #263b5d;
}
html[data-theme] .menu-category.contains-current .menu-category-label {
  color: var(--brand-ink);
}
html[data-theme]
  .plan-card .check-badge {
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
html[data-theme] .plan-recommend {
  color: #f1edff;
  background: #3b2d6b;
  border-color: #8f79d4;
}
html[data-theme="light"] .plan-recommend {
  color: #49318f;
  background: #f0ebff;
  border-color: #c5b6ee;
}

/* The current choice is carried by its label, without a trailing marker. */
html[data-theme] :is(.language-switch nav, .site-header .nav-language-options) a {
  color: #929caf;
  font-weight: 400;
}
html[data-theme] :is(.language-switch nav, .site-header .nav-language-options) a[aria-current] {
  color: #f3f1ff;
  font-weight: 650;
  background: #c1b0ff0d;
  border-color: transparent;
  box-shadow: none;
}
html[data-theme] :is(.language-switch nav, .site-header .nav-language-options) a[aria-current]::after {
  content: none;
  display: none;
}
html[data-theme="light"] :is(.language-switch nav, .site-header .nav-language-options) a {
  color: #788296;
}
html[data-theme="light"] :is(.language-switch nav, .site-header .nav-language-options) a[aria-current] {
  color: #28213d;
  background: #f5f2fc;
  border-color: transparent;
}
html[data-theme] .theme-options button {
  color: #929caf;
  font-weight: 400;
  transition: color .18s, background-color .18s;
}
html[data-theme] .theme-options button[aria-pressed="true"] {
  color: #f3f1ff;
  font-weight: 650;
  background: #c1b0ff0d;
  border-color: transparent;
}
html[data-theme="light"] .theme-options button { color: #788296; }
html[data-theme="light"] .theme-options button[aria-pressed="true"] {
  color: #28213d;
  background: #f5f2fc;
}
html[data-theme] .theme-options button:hover,
html[data-theme] :is(.language-switch nav, .site-header .nav-language-options) a:hover {
  color: #ede8ff;
  background: #c1b0ff14;
}
html[data-theme="light"] .theme-options button:hover,
html[data-theme="light"] :is(.language-switch nav, .site-header .nav-language-options) a:hover {
  color: #443665;
  background: #f2eef9;
}
html[data-theme]
  :is(
    .digital-wordmark,
    .digital-copy em,
    .text-link,
    .client-text-link,
    .client-back-link
  ) {
  color: var(--brand-ink);
}
html[data-theme] .dashboard-chart svg path[stroke] {
  stroke: #806aff;
}
html[data-theme] #chart-fill stop {
  stop-color: #533afd;
}
html[data-theme] .status-dot {
  background: #9c88ff;
  box-shadow: 0 0 12px #533afd80;
}
html[data-theme] .plan-featured {
  border-color: #8b77ff70;
  box-shadow: 0 14px 38px #533afd12;
}
html[data-theme] .loading-spinner {
  border-top-color: var(--brand-ink);
}
html[data-theme="light"] .loading-spinner {
  border-top-color: var(--brand);
}
html[data-theme] .hero .ambient-halo {
  background: radial-gradient(ellipse, #533afd80, transparent 70%);
}
html[data-theme] .hero .ambient-core {
  background: radial-gradient(ellipse, #533afdb0, transparent 70%);
}
html[data-theme] ::selection {
  background: #533afd40;
}

html[data-theme="light"] { --bg: #fff; }
html[data-theme="light"] body,
html[data-theme="light"] body.customer-workspace,
html[data-theme="light"] .login-screen { background: #fff; }
html[data-theme="light"] .topbar,
html[data-theme="light"] .customer-workspace .topbar { background: #fffffff5; }
html[data-theme="light"] .section-sidebar { background: #fff; }

/* Brand-colored scrollbars keep the browser's native scrolling behavior. */
html[data-theme] { --scroll-thumb: #9682eb99; --scroll-thumb-hover: #b8a5ff; --scroll-track: #11131d; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
html[data-theme="light"] { --scroll-thumb: #533afd70; --scroll-thumb-hover: #533afd; --scroll-track: #f7f6fc; }
html[data-theme] :is(.comparison-scroll,.dialog-scroll,.select-options,.section-sidebar,.workspace-main) { scrollbar-color: var(--scroll-thumb) transparent; scrollbar-width: thin; }
@supports selector(::-webkit-scrollbar) {
  html[data-theme], html[data-theme] :is(.comparison-scroll,.dialog-scroll,.select-options,.section-sidebar,.workspace-main) { scrollbar-color: auto; scrollbar-width: auto; }
  html[data-theme]::-webkit-scrollbar, html[data-theme] ::-webkit-scrollbar { width: 8px; height: 8px; }
  html[data-theme]::-webkit-scrollbar-track, html[data-theme] ::-webkit-scrollbar-track { background: var(--scroll-track); }
  html[data-theme]::-webkit-scrollbar-thumb, html[data-theme] ::-webkit-scrollbar-thumb { min-height: 32px; border: 2px solid transparent; border-radius: 999px; background: var(--scroll-thumb); background-clip: padding-box; }
  html[data-theme]::-webkit-scrollbar-thumb:hover, html[data-theme] ::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
  html[data-theme]::-webkit-scrollbar-button, html[data-theme] ::-webkit-scrollbar-button { display: none; }
  html[data-theme]::-webkit-scrollbar-corner, html[data-theme] ::-webkit-scrollbar-corner { background: transparent; }
}
html[data-theme] .process-step-icon { color: var(--brand-ink); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-theme] .theme-workspace .theme-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html[data-theme] .theme-workspace .theme-label { margin: 0; font-size: 10px; }
html[data-theme] .theme-workspace .theme-segment { display: inline-flex; gap: 2px; border: 0; padding: 0; background: transparent; }
html[data-theme] .theme-workspace .theme-segment button { min-height: 36px; width: 36px; padding: 8px; border: 1px solid transparent; border-radius: 9px; flex-direction: row; }
html[data-theme] .theme-workspace .theme-segment button span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(pointer:coarse) { html[data-theme] .theme-workspace .theme-segment button { min-height: 44px; width: 44px; } }

/* Compact workspace appearance: three accessible icon choices, without a boxed selector. */
html[data-theme] .theme-workspace { padding: 9px 3px 0; margin-top: 8px; border: 0; }
html[data-theme] .theme-workspace .theme-inline { display: flex; justify-content: flex-start; padding: 0; }
html[data-theme] .theme-workspace .theme-label { display: none; }
html[data-theme] .theme-workspace .theme-segment { display: flex; gap: 3px; padding: 0; border: 0; border-radius: 0; background: transparent; }
html[data-theme] .theme-workspace .theme-segment button { width: 32px; min-height: 32px; padding: 7px; border: 0; border-radius: 7px; background: transparent; color: #8290a5; }
html[data-theme] .theme-workspace .theme-segment button[aria-pressed="true"] { color: var(--brand-ink); background: var(--brand-soft); box-shadow: none; }
html[data-theme] .theme-workspace .theme-segment button > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(pointer:coarse) { html[data-theme] .theme-workspace .theme-segment button { width: 44px; min-height: 44px; } }
