/* Vendeli's semantic palette. Loaded last on every public/management page. */
:root[data-theme] {
  --vd-bg: #f5f7fc;
  --vd-surface: #ffffff;
  --vd-field: #f0f3fa;
  --vd-text: #142650;
  --vd-muted: #526079;
  --vd-line: #dfe6f2;
  --vd-accent: #2449c9;
  --vd-hover: #1a389d;
  --vd-tint: #e9efff;
  --vd-on-accent: #ffffff;
  --ink: var(--vd-text);
  --muted: var(--vd-muted);
  --blue: var(--vd-accent);
  --blue-hover: var(--vd-hover);
  --line: var(--vd-line);
  --bg: var(--vd-bg);
  --paper: var(--vd-surface);
  --soft: var(--vd-field);
  --accent: var(--vd-accent);
  --tint: var(--vd-tint);
  --action: var(--vd-accent);
  --action-hover: var(--vd-hover);
  --action-text: var(--vd-on-accent);
  --button-bg: var(--vd-accent);
  --button-fg: var(--vd-on-accent);
  background: var(--vd-bg);
  color: var(--vd-text);
}
:root[data-theme="dark"] {
  --vd-bg: #0d1629;
  --vd-surface: #15223b;
  --vd-field: #101d34;
  --vd-text: #edf2ff;
  --vd-muted: #b0bed7;
  --vd-line: #30415e;
  --vd-accent: #a9beff;
  --vd-hover: #c1d0ff;
  --vd-tint: #253b67;
  --vd-on-accent: #102044;
  color-scheme: dark;
}
html[data-theme] body {
  background: var(--vd-bg);
  color: var(--vd-text);
}
.theme-control {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  font:
    600 11px Manrope,
    system-ui,
    sans-serif;
  color: var(--vd-muted);
}
.theme-control select {
  appearance: auto;
  width: auto !important;
  min-width: 82px;
  min-height: 44px !important;
  height: 44px;
  padding: 8px 9px !important;
  margin: 0 !important;
  border: 1px solid var(--vd-line) !important;
  border-radius: 10px !important;
  background: var(--vd-field) !important;
  color: var(--vd-text) !important;
  font:
    600 12px Manrope,
    system-ui,
    sans-serif !important;
  cursor: pointer;
}
.theme-control select:focus-visible {
  outline: 3px solid var(--vd-accent);
  outline-offset: 3px;
}
.auth-form-panel > .theme-control {
  align-self: flex-end;
  margin-bottom: 24px !important;
}
html[data-theme="dark"] .premium-site .masthead,
html[data-theme="dark"] .premium-site .plans-header,
html[data-theme="dark"] .scroll-story {
  background: var(--vd-bg);
  color: var(--vd-text);
}
html[data-theme="dark"]
  .premium-site
  :is(
    .site-header,
    .site-header nav.is-open,
    .floating-note,
    .plan-selection,
    .conversion-dock,
    .plan:not(.monthly),
    .story-card:not(:nth-child(3)),
    .difference-card:not(.difference-kit)
  ) {
  background: var(--vd-surface);
  color: var(--vd-text);
  border-color: var(--vd-line);
  box-shadow: 0 12px 30px #00000012;
}
html[data-theme="dark"]
  .premium-site
  :is(
    .site-header nav a,
    .header-login,
    .hero h1,
    .hero .intro strong,
    .story-card:not(:nth-child(3)) h3,
    .plan:not(.monthly) h3,
    .plan-selection label,
    .conversion-dock strong,
    .difference-card:not(.difference-kit) h3
  ) {
  color: var(--vd-text);
}
html[data-theme="dark"]
  .premium-site
  :is(
    .intro,
    .hero .intro,
    .hero-note,
    .hero .eyebrow,
    .eyebrow,
    .section-intro > p,
    .promise p,
    .promise small,
    .product-stage figcaption,
    .screen-tabs small,
    .story-card:not(:nth-child(3)) p,
    .plan:not(.monthly) > p,
    .plan:not(.monthly) .plan-top > span,
    .pricing-note,
    .plan-choice-status,
    .comparison-caption,
    .comparison-intro,
    .plan-use-cases p,
    .difference-intro,
    .difference-card:not(.difference-kit) > p,
    .connected-account p,
    .choice-guide p,
    .included-benefits p,
    .included-benefits li span,
    .conversion-dock p,
    .choice-criteria dd,
    .faq details p
  ) {
  color: var(--vd-muted);
}
html[data-theme="dark"]
  .premium-site
  :is(
    .hero h1 span,
    .hero .text-link,
    .text-link,
    .plan-use-cases h3,
    .difference-card:not(.difference-kit) .difference-label,
    .difference-card:not(.difference-kit) .text-link,
    .pricing-details a
  ) {
  color: var(--vd-accent);
}
html[data-theme="dark"]
  .premium-site
  :is(
    .menu-toggle,
    .hero-note .motion-toggle,
    .plan-options,
    .promise b,
    .floating-note .note-mark,
    .plans-bottom,
    .comparison thead
  ) {
  background: var(--vd-field);
  color: var(--vd-accent);
  border-color: var(--vd-line);
}
html[data-theme="dark"]
  .premium-site
  :is(
    .button:not(.light),
    .hero .button.light,
    .header-actions .button.light,
    .conversion-dock .button
  ) {
  background: var(--vd-accent);
  color: var(--vd-on-accent);
  border-color: var(--vd-accent);
}
html[data-theme="dark"] .premium-site .button.outline {
  background: var(--vd-field);
  color: var(--vd-accent);
  border-color: var(--vd-line);
}
html[data-theme="dark"] .premium-site .button.light {
  background: #edf2ff;
  color: #142650;
}
html[data-theme="dark"] .premium-site .product-stage {
  background: linear-gradient(150deg, #1b2e51, #15223b);
}
html[data-theme="dark"] .premium-site .screen-tabs button {
  color: var(--vd-muted);
  border-color: var(--vd-line);
}
html[data-theme="dark"]
  .premium-site
  .screen-tabs
  button:is(:hover, [aria-selected="true"]) {
  background: var(--vd-tint);
  color: var(--vd-text);
}
html[data-theme="dark"]
  .premium-site
  .screen-tabs
  button[aria-selected="true"]
  small {
  color: var(--vd-muted);
}
html[data-theme="dark"] .premium-site .plan:not(.monthly) > .price {
  background: var(--vd-field);
  color: var(--vd-text);
  box-shadow: inset 0 0 0 1px var(--vd-line);
}
html[data-theme="dark"] .premium-site .plan:not(.monthly) > .price small {
  color: var(--vd-muted);
}
html[data-theme="dark"] .premium-site .plan ul {
  border-color: var(--vd-line);
}
html[data-theme="dark"] .premium-site .plan-options button {
  color: var(--vd-muted);
}
html[data-theme="dark"]
  .premium-site
  .plan-options
  button[aria-pressed="true"] {
  background: var(--vd-accent);
  color: var(--vd-on-accent);
}
html[data-theme="dark"] .premium-site .plan > .plan-ribbon {
  background: var(--vd-tint);
  color: var(--vd-text);
  border-color: #637dae;
}
html[data-theme="dark"]
  .premium-site
  :is(
    .faq details,
    .comparison td,
    .choice-criteria > div,
    .connected-account,
    .included-benefits,
    .choice-guide
  ) {
  border-color: var(--vd-line);
}
html[data-theme="dark"] .premium-site .faq summary {
  color: var(--vd-text);
}
html[data-theme="dark"] .auth-page :is(.auth-form-panel, .auth-form-inner) {
  background: var(--vd-bg);
  color: var(--vd-text);
}
html[data-theme="dark"]
  .auth-page
  :is(input:not([type="checkbox"]), #auth-status) {
  background: var(--vd-field);
  color: var(--vd-text);
  border-color: var(--vd-line);
}
html[data-theme="dark"] .auth-page :is(label, h1) {
  color: var(--vd-text);
}
html[data-theme="dark"] .auth-page input::placeholder {
  color: #9eaeca;
}
html[data-theme="dark"] .auth-page #submit {
  background: var(--vd-accent);
  color: var(--vd-on-accent);
}
html[data-theme="dark"] .auth-page .password-input button:hover {
  background: var(--vd-tint);
}
html[data-theme="dark"] body:has(.offline-guide) :is(h1, h2, h3, strong) {
  color: var(--vd-text);
}
html[data-theme="dark"]
  body:has(.offline-guide)
  :is(p, .note, .steps li > p, .footer) {
  color: var(--vd-muted);
}
html[data-theme="dark"]
  body:has(.offline-guide)
  :is(a, h1 span, .step-title > span) {
  color: var(--vd-accent);
}
html[data-theme="dark"] body:has(.offline-guide) :is(.help) {
  background: var(--vd-surface);
}
html[data-theme="dark"] body:has(.offline-guide) :is(.devices a, .button) {
  background: var(--vd-accent);
  color: var(--vd-on-accent);
}
html[data-theme="dark"]
  body:has(.offline-guide)
  :is(.platform, .header, .offline-guide, .footer) {
  border-color: var(--vd-line);
}
html[data-theme="dark"] :is(input, select, textarea) {
  color-scheme: dark;
}
html[data-theme="dark"] .brand img {
  filter: none !important;
}
html[data-theme="dark"] :focus-visible {
  outline-color: var(--vd-accent);
}
@media (max-width: 1050px) {
  .premium-site .header-actions {
    gap: 10px;
  }
  .theme-control > span {
    display: none;
  }
  .premium-site .header-actions .button {
    display: none;
  }
}
@media (max-width: 600px) {
  .theme-control select {
    min-width: 70px;
    font-size: 11px !important;
    padding-inline: 5px !important;
  }
  .premium-site .site-header {
    padding-inline: 14px;
    width: calc(100% - 30px);
  }
  .premium-site .header-actions {
    gap: 8px;
  }
  .premium-site .header-login {
    font-size: 11px;
  }
  .premium-site .brand img {
    max-width: 112px;
  }
  header:has(> .theme-control) {
    flex-wrap: wrap;
    gap: 12px;
  }
}

html[data-theme="dark"] .skip {
  background: var(--vd-surface);
  color: var(--vd-text);
}
html[data-theme="dark"]
  .premium-site
  :is(
    .floating-note span,
    .difference-heading > p,
    .story-heading > p,
    .offline p
  ) {
  color: var(--vd-muted);
}
@media (max-width: 600px) {
  .premium-site .header-login {
    font-size: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .premium-site .header-login::after {
    content: "Entrar";
    font-size: 11px;
  }
  .premium-site .header-actions {
    gap: 6px;
  }
  .premium-site .brand img {
    max-width: 102px;
  }
}

html[data-theme="light"]
  .premium-site
  :is(.hero-note, .story-card:nth-child(2) p) {
  color: var(--vd-muted);
}
html[data-theme="dark"]
  .premium-site
  :is(.plans-hero > p, .comparison > p, .plan-guidance p, .plans-bottom p) {
  color: var(--vd-muted);
}
html[data-theme="dark"] .premium-site :is(.trial-summary, .trial-summary span) {
  color: var(--vd-accent);
}
html[data-theme="dark"] .premium-site .comparison th {
  color: var(--vd-text);
  border-color: var(--vd-line);
}
html[data-theme="dark"] .premium-site .comparison td {
  color: var(--vd-muted);
  border-color: var(--vd-line);
}
html[data-theme="dark"] .premium-site .comparison td:last-child {
  color: var(--vd-accent);
}
html[data-theme="dark"] .auth-environment {
  color: var(--vd-muted);
}
