/* Brand preview at /?theme=violet. The rest of the app uses the default theme. */
#root:has(> .market-landing[data-theme="violet"]) {
  --violet-night: #0b0b1a;
  --violet-surface: #151328;
  --violet-raised: #1e1835;
  --violet: #7c5cff;
  --violet-light: #b796ff;
  --violet-hover: #d2bbff;
  --violet-white: #f5f3ff;
  --violet-muted: #c6bfd9;
  --violet-line: #453a60;
  color: var(--violet-white);
  background: var(--violet-night);
}

#root:has(> .market-landing[data-theme="violet"]) :is(.lnav,.lfoot,.lp-sticky) {
  color: var(--violet-white);
  background: var(--violet-night);
  border-color: var(--violet-line);
}

#root:has(> .market-landing[data-theme="violet"]) :is(.lnav,.lfoot) a {
  color: var(--violet-white);
}

/* The ribbon mark echoes the supplied direction on the preview only. */
#root:has(> .market-landing[data-theme="violet"]) .logo img {display:none}
#root:has(> .market-landing[data-theme="violet"]) .logo::before {
  content: '';
  flex: 0 0 32px;
  height: 32px;
  background: linear-gradient(145deg,var(--violet-light),var(--violet));
  clip-path: path('M 10 4 H 24 C 29 4 32 7 32 12 C 32 17 28 21 22 21 H 16 L 13 26 C 11 29 7 30 1 30 L 8 17 H 18 C 20 17 21 16 23 13 H 5 Z');
}

#root:has(> .market-landing[data-theme="violet"]) .lnav nav .btn {
  color: var(--violet-white);
  background: var(--violet-raised);
  border-color: var(--violet-light);
}

#root:has(> .market-landing[data-theme="violet"]) .lnav nav .btn:not(.sec):hover {
  color: var(--violet-night);
  background: var(--violet-light);
}

#root:has(> .market-landing[data-theme="violet"]) .lp-progress {
  background: var(--violet);
}

.market-landing[data-theme="violet"] {
  --line: var(--violet-line);
  --muted: var(--violet-muted);
  --market-ink: var(--violet-white);
  --market-yellow: var(--violet-light);
  --market-yellow-hover: var(--violet-hover);
  --market-route: var(--violet-light);
  --market-chip: #e1d4ff;
  background: var(--violet-night);
  color: var(--violet-white);
}

.market-landing[data-theme="violet"] .market-hero {
  background: radial-gradient(ellipse at 90% 74%,#2d1c5c 0%,transparent 57%),var(--violet-night);
}

.market-landing[data-theme="violet"] .market-copy h1 .hl .w {
  color: var(--violet-light);
  background: none;
}

.market-landing[data-theme="violet"] :is(.market-copy > p,.hero-proof li,.hero-sample,.closing p,.closing small) {
  color: var(--violet-muted);
}

.market-landing[data-theme="violet"] .market-copy .hero-eyebrow {
  color: var(--violet-white);
  background: var(--violet-surface);
  border-color: var(--violet-line);
}

.market-landing[data-theme="violet"] .hero-eyebrow i {
  background: var(--violet-light);
  animation: none;
  box-shadow: none;
}

.market-landing[data-theme="violet"] .hero-proof svg {
  background: var(--violet-raised);
  color: var(--violet-light);
}

.market-landing[data-theme="violet"] :is(.hero-us-map[data-map-style],.hero-us-map) {
  --map-land: #211c3c;
  --map-line: #70618e;
  --market-route: var(--violet-light);
}

.market-landing[data-theme="violet"] .us-zone {
  fill: color-mix(in srgb,var(--violet) 43%,var(--map-land));
}

.market-landing[data-theme="violet"] .hero-float {
  color: var(--violet-night);
  background: var(--violet-white);
  border-color: #d1c3ee;
  box-shadow: 0 9px 24px -14px #080612;
}

.market-landing[data-theme="violet"] .hero-float small {color:#574d70}
.market-landing[data-theme="violet"] .hero-float em small {color:#e8dcff}
.market-landing[data-theme="violet"] .hero-float em {background:#4f339f;color:white}
.market-landing[data-theme="violet"] .hf-ic {background:#e9dfff;color:#4f339f}

#root:has(> .market-landing[data-theme="violet"]) .lp-sticky {
  --market-yellow: var(--violet-light);
  --market-yellow-hover: var(--violet-hover);
  border: 1px solid var(--violet-line);
}

#root:has(> .market-landing[data-theme="violet"]) .market-primary.btn {
  color: var(--violet-night);
}

#root:has(> .market-landing[data-theme="violet"]) .market-primary.btn:hover {
  color: var(--violet-night);
}

#root:has(> .market-landing[data-theme="violet"]) :focus-visible {
  outline-color: var(--violet-light);
}

.market-landing[data-theme="violet"] :is(.market-demo,.story-source a) {color:var(--violet-white)}
.market-landing[data-theme="violet"] .film-feature {background:var(--violet-night)}
.market-landing[data-theme="violet"] .market-film {background:var(--violet-surface);border-color:var(--violet-line)}
.market-landing[data-theme="violet"] :is(.guided-story,.story-stage-wrap) {background:var(--violet-night)}

.market-landing[data-theme="violet"] .guided-story .story-stage {
  background: var(--violet-white);
  border-color: var(--violet-line);
  color: var(--violet-night);
}

.market-landing[data-theme="violet"] :is(.sstep > p,.story-jump button,.guided-story .sstep .sn) {
  color: var(--violet-muted);
}

.market-landing[data-theme="violet"] .story-jump button[aria-current="step"] {
  color: var(--violet-white);
  border-bottom-color: var(--violet);
}

.market-landing[data-theme="violet"] .lp-kicker,
.market-landing[data-theme="violet"] .faq summary::after,
.market-landing[data-theme="violet"] .faq summary:hover {color:var(--violet-light)}
.market-landing[data-theme="violet"] :is(#pricing,.faq-section) {background:var(--violet-surface)}

.market-landing[data-theme="violet"] :is(.plans,.plan,.one-time) {
  background: var(--violet-night);
  border-color: var(--violet-line);
}

.market-landing[data-theme="violet"] .plan.hl {
  background: var(--violet-raised);
  box-shadow: none;
}

.market-landing[data-theme="violet"] .plan-badge {color:var(--violet-night)}
.market-landing[data-theme="violet"] .plan li::before {border-color:var(--violet-light)}

.market-landing[data-theme="violet"] .one-time > svg {color:var(--violet-light)}
.market-landing[data-theme="violet"] .faq a {color:var(--violet-light)}

.market-landing[data-theme="violet"] .btn.sec {
  color: var(--violet-white);
  background: var(--violet-surface);
  border-color: #77669e;
}

.market-landing[data-theme="violet"] .btn.sec:hover {
  color: var(--violet-white);
  background: var(--violet-raised);
  border-color: var(--violet-light);
}

.market-landing[data-theme="violet"] .closing {
  background: var(--violet-raised);
  border: 1px solid var(--violet-line);
}

.market-landing[data-theme="violet"] .closing::before {display:none}

@media (forced-colors:active) {
  #root:has(> .market-landing[data-theme="violet"]) .logo::before {display:none}
  #root:has(> .market-landing[data-theme="violet"]) .logo img {display:block}
}

/* The light variant shares the violet identity, with dark navigation and closing. */
.market-landing[data-theme="violet"][data-tone="light"] {
  --light-paper: #f5f3ff;
  --light-ink: #17112b;
  --light-muted: #514764;
  --light-accent: #5530a9;
  --light-border: #ddd4ef;
  --line: var(--light-border);
  --muted: var(--light-muted);
  --market-ink: var(--light-ink);
  background: white;
  color: var(--light-ink);

  .market-hero {
    background: radial-gradient(ellipse at 88% 42%,#e9e0ff 0%,transparent 59%),var(--light-paper);
  }

  .market-copy h1 .hl .w, .market-demo, .story-source a {color:var(--light-accent)}
  .market-copy > p, .hero-proof li, .hero-sample {color:var(--light-muted)}

  .market-copy .hero-eyebrow {
    color: var(--light-ink);
    background: white;
    border-color: var(--light-border);
  }

  .hero-eyebrow i {background:var(--light-accent)}
  .hero-proof svg {background:#e9e0fb;color:var(--light-accent)}

  .hero-us-map[data-map-style] {
    --map-land: #e8dff8;
    --map-line: #a294bc;
    --market-route: var(--light-accent);
  }

  .us-zone {fill:color-mix(in srgb,var(--violet) 27%,var(--map-land))}
  .hero-float {background:white;box-shadow:0 10px 28px -18px #423262}

  :is(.film-feature,.guided-story,.story-stage-wrap,.faq-section) {background:white}
  .guided-story .story-stage {border-color:var(--light-border)}
  .guided-story .sstep .sn,
  .sstep > p, .story-jump button {color:var(--light-muted)}
  .story-jump button[aria-current="step"], .lp-kicker,
  .faq summary::after, .faq summary:hover, .faq a {color:var(--light-accent)}

  #pricing {background:var(--light-paper)}
  :is(.plans,.plan,.one-time) {background:white;border-color:var(--light-border)}
  .plan.hl {background:#eee7fc}
  .plan li::before {border-color:var(--light-accent)}
  .one-time > svg {color:var(--light-accent)}

  .btn.sec {
    color: var(--light-ink);
    background: white;
    border-color: #9485ae;
  }

  .btn.sec:hover {
    color: var(--light-accent);
    background: var(--light-paper);
    border-color: var(--light-accent);
  }

  .closing {
    color: var(--violet-white);
    background: var(--violet-night);
  }
}

#root:has(> .market-landing[data-tone="light"]) :is(.market-hero,.guided-story,#pricing,.faq-section) :focus-visible {
  outline-color: var(--light-accent);
}

@media (forced-colors:active) {
  .market-landing[data-theme="violet"][data-tone="light"] .market-copy h1 .hl .w {color:CanvasText}
}
