/* The existing body::after rules own the starfield in both themes. */
:root[data-theme="light"] {
  color-scheme: light;
  --light-card-background: linear-gradient(135deg, #e3b8ff, #c680ff);
  --bg: #ebcfff;
  --bg2: #fffafd;
  --bg3: #f1e7f8;
  --bg4: #e9dbf3;
  --text: #241733;
  --text2: #51445d;
  --text3: #675972;
  --border: #d9cce3;
  --border2: #c5aed7;
  --sky: #7034aa;
  --sky2: #702ca7;
  --sky3: #6d28bc;
  --sky4: #ead9f8;
}

:root[data-theme="light"] body {
  background-color: var(--bg);
}

:root[data-theme="light"] .wizard-contact-panel {
  background: #e3b8ff;
}

:root[data-theme="light"] .wizard-contact-form-eyebrow {
  font-size: 16px;
  -webkit-text-stroke: 0.02px #000;
}

:root[data-theme="light"] .wizard-contact-panel-star {
  -webkit-text-stroke: 0.75px #000;
}

:root[data-theme="light"] .portfolio-dialog[open] {
  background: var(--light-card-background);
}

:root[data-theme="light"] :is(
  .portfolio-project,
  .wizard-service-card,
  .price-card,
  .faq-item,
  .process-dot:not(.active),
  .wizard-pricing-toggle
) {
  background: var(--light-card-background);
}

@media (max-width: 767px) {
  :root[data-theme="light"] .portfolio-dialog-slide {
    background: transparent;
    border-color: transparent;
  }

  :root[data-theme="light"] .wizard-process-layout {
    background: var(--light-card-background);
  }
}

:root[data-theme="light"] :is(.wizard-toggle-option.active, .featured-badge) {
  background: #af7af0;
}

:root[data-theme="light"] .process-dot:not(.active) {
  color: var(--text);
}

:root[data-theme="light"] :is(
  .portfolio-project-toggle,
  .portfolio-dialog-header h2,
  .portfolio-dialog-slide h3,
  .portfolio-project-tags span,
  .portfolio-visit
) {
  color: var(--sky2);
}

:root[data-theme="light"] :is(.portfolio-project-details p, .portfolio-dialog-details p) {
  color: var(--text2);
}

:root[data-theme="light"] .portfolio-project-chevron {
  border-color: var(--sky2);
}

:root[data-theme="light"] .portfolio-visit:hover {
  color: var(--bg2);
}

:root[data-theme="light"] .portfolio-browser {
  padding: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  background: #fff;
}

:root[data-theme="light"] .portfolio-browser-toolbar {
  height: 58px;
  margin: 0;
  padding: 0 8px;
  background-color: #34343b;
}

:root[data-theme="light"] .portfolio-browser-screen {
  border-radius: 0;
  background-color: #fff;
}

:root[data-theme="light"] .portfolio-browser-address {
  background-color: var(--bg3);
  color: var(--sky2);
}

:root[data-theme="light"] .portfolio-browser-screen img[src="images/portfolio-placeholder.webp"] {
  content: url("../images/portfolio-placeholder-light.png");
}

:root[data-theme="light"] .portfolio-browser-screen:has(img[src="images/portfolio-placeholder.webp"]) {
  position: relative;
}

:root[data-theme="light"] .portfolio-browser-screen:has(img[src="images/portfolio-placeholder.webp"])::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(192, 132, 252, .25);
  pointer-events: none;
}

:root[data-theme="light"] .hero-devices {
  filter: none;
}

:root[data-theme="light"] .hero-visual::before {
  content: none;
}

:root[data-theme="light"] .wizard-cta {
  overflow: clip visible;
  z-index: 2;
}

:root[data-theme="light"] :is(.wizard-nav, .wizard-nav.scrolled) {
  background: #c084fc;
  border-color: #702ca7;
}

:root[data-theme="light"] :is(.wizard-nav .nav-links a, .mobile-menu > a) {
  color: var(--text);
}

:root[data-theme="light"] :is(.wizard-nav .nav-links a:hover, .wizard-nav .nav-links a.active, .mobile-menu > a:hover) {
  color: #4c1d73;
}

:root[data-theme="light"] .wizard-nav .nav-links a::after {
  background: #4c1d73;
  box-shadow: 0 0 10px rgba(76, 29, 115, .25);
}

:root[data-theme="light"] .wizard-nav .hamburger span {
  background: #4c1d73;
}

.wizard-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-theme-toggle:not([hidden]) {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-items: start;
  flex: 0 0 48px;
  width: 48px;
  height: 44px;
  padding: 0 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.site-theme-toggle::before {
  content: "";
  position: absolute;
  inset: 9px 0;
  border-radius: inherit;
  background: #dab2ff;
  transition: background-color 180ms ease;
}

.theme-toggle-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ead9f8;
  color: #7034aa;
  transition: transform 180ms ease;
}

.site-theme-toggle :is(.theme-icon-sun, .theme-icon-moon) {
  width: 14px;
  height: 14px;
}

.site-theme-toggle .theme-icon-moon path {
  fill: currentColor;
}

:root:not([data-theme="light"]) .site-theme-toggle::before {
  background: #8019ff;
}

:root[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(22px);
}

@media (prefers-reduced-motion: reduce) {
  .site-theme-toggle::before,
  .theme-toggle-thumb {
    transition: none;
  }
}

:root:not([data-theme="light"]) .site-theme-toggle .theme-icon-moon,
:root[data-theme="light"] .site-theme-toggle .theme-icon-sun {
  display: none;
}

.site-theme-toggle:focus-visible {
  outline: 2px solid var(--sky2);
  outline-offset: 3px;
}
