:root { color-scheme: dark; }
.starter__flow-mark { margin-left: .1em; color: var(--accent-purple); font-size: .6em; vertical-align: super; }
.starter__flow .starter__flow-note { margin-top: 1rem; color: var(--text-muted); font-size: .75rem; line-height: 1.5; }
.site-version { font-size: .75rem; color: var(--text-muted); white-space: nowrap; }
.form-field select[hidden] { display: none; }
.select-menu { position: relative; }
.select-menu__trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 50px; padding: .875rem 1rem; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: .95rem; text-align: left; transition: border-color .18s ease, box-shadow .18s ease; }
.select-menu__trigger::after { content: ''; width: 7px; height: 7px; margin-right: .25rem; border-right: 1.5px solid var(--accent-purple); border-bottom: 1.5px solid var(--accent-purple); transform: rotate(45deg); flex-shrink: 0; }
.select-menu__trigger[aria-expanded="true"]::after { transform: rotate(225deg); }
.select-menu__trigger:hover, .select-menu__trigger:focus-visible { outline: none; border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(128, 81, 180, .12); }
.select-menu__list[hidden] { display: none; }
.select-menu__list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); box-shadow: 0 12px 30px rgba(0, 0, 0, .2); outline: none; }
.select-menu__list [role="option"] { padding: .7rem .8rem; border-radius: 8px; color: var(--text-secondary); font-size: .9rem; line-height: 1.5; cursor: pointer; }
.select-menu__list [role="option"]:hover, .select-menu__list .is-active { background: rgba(183, 153, 230, .12); color: var(--text-primary); }
.select-menu__list [aria-selected="true"] { color: var(--accent-purple); font-weight: 600; }
.select-menu__list [aria-disabled="true"] { opacity: .5; cursor: default; }
[data-theme="light"] .select-menu__list { box-shadow: 0 10px 28px rgba(75, 45, 105, .12); }
.form-field select, .form-field select:focus {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  border-radius: 10px;
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239273bd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-field select:hover { border-color: var(--accent-purple); }
.form-field select option { background: var(--bg-card); color: var(--text-primary); }
[data-theme="light"] .form-field select { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237044a7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .form-field select { transition: none; } }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: #ff465d;
  box-shadow: 0 0 0 1px rgba(255, 70, 93, .45), 0 0 12px rgba(255, 45, 75, .23);
}
.form-field .field-error { display: block; color: #ff7a8b; font-size: .8rem; line-height: 1.5; margin-top: .4rem; }
[data-theme="light"] .form-field .field-error { color: #b31b35; }
[data-theme="light"] .form-field [aria-invalid="true"] { border-color: #d52d49; box-shadow: 0 0 0 1px rgba(213, 45, 73, .3), 0 0 10px rgba(213, 45, 73, .12); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-color); border-radius: 50%; background: transparent; color: var(--accent-purple); cursor: pointer; flex-shrink: 0; }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:hover { background: var(--bg-card); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-purple); outline-offset: 3px; }
.theme-toggle__moon, [data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #faf8fd;
  --bg-secondary: #f1edf7;
  --bg-card: #fff;
  --bg-card-hover: #f5f0fb;
  --text-primary: #291e39;
  --text-secondary: #574967;
  --text-muted: #6c5b7f;
  --accent-purple: #7044a7;
  --accent-cyan: #62418b;
  --border-color: rgba(99, 67, 139, .2);
  --border-cyan: rgba(99, 67, 139, .3);
}
[data-theme="light"] .navbar, [data-theme="light"] .navbar.scrolled { background: rgba(250, 248, 253, .97); }
[data-theme="light"] #sobre, [data-theme="light"] #por-que, [data-theme="light"] #contato, [data-theme="light"] .footer { background: rgba(241, 237, 247, .8); }
[data-theme="light"] .nav-mobile-menu { background: #faf8fd; }
[data-theme="light"] .cookie-notice { background: #fff; box-shadow: 0 8px 28px rgba(65, 40, 94, .12); }
.brand-logo .brand-logo__light-wordmark { display: none; }
[data-theme="light"] .brand-logo img { filter: none; clip-path: inset(0 65.5% 0 0); }
[data-theme="light"] .brand-logo .brand-logo__light-wordmark { display: block; clip-path: inset(0 0 0 34.5%); filter: brightness(0); }
.powered-mark { display: inline-block; position: relative; width: 74px; height: 16px; }
.powered-mark .powered-mark__wordmark { display: none; }
[data-theme="light"] .powered-mark img { filter: none; clip-path: inset(0 74% 0 0); }
[data-theme="light"] .powered-mark .powered-mark__wordmark { position: absolute; inset: 0; display: block; clip-path: inset(0 0 0 26%); filter: brightness(0); }
[data-theme="light"] img[src*="inspectaris-logo"] { filter: brightness(.45) saturate(1.3); }
[data-theme="light"] .starter__flow { background: var(--bg-card); }
[data-theme="light"] .starter__flow > img { background: var(--bg-card); }
[data-theme="light"] .product-card__headline { color: var(--accent-purple); }
[data-theme="light"] .product-value__head span:last-child { color: var(--accent-purple); }
[data-theme="light"] .technology-strip__brand { color: var(--accent-purple); }
[data-theme="light"] .map-card { background: var(--bg-card); }
[data-theme="light"] .map-container iframe { filter: grayscale(1) brightness(1.08) contrast(.9); background: #f5f0fa; }
[data-theme="light"] .map-card__frame::after { background: rgba(122, 89, 194, .18); mix-blend-mode: color; }
[data-theme="light"] .form-field input, [data-theme="light"] .form-field select, [data-theme="light"] .form-field textarea { background-color: #fff; border: 1px solid rgba(99, 67, 139, .35); color: var(--text-primary); }
[data-theme="light"] .form-field input::placeholder, [data-theme="light"] .form-field textarea::placeholder { color: #80718f; }
[data-theme="light"] .form-field input:focus, [data-theme="light"] .form-field select:focus, [data-theme="light"] .form-field textarea:focus { border-color: #8051b4; box-shadow: 0 0 0 3px rgba(128, 81, 180, .12); }
[data-theme="light"] .form-field input[aria-invalid="true"], [data-theme="light"] .form-field select[aria-invalid="true"], [data-theme="light"] .form-field textarea[aria-invalid="true"] { border-color: #d52d49; box-shadow: 0 0 0 1px rgba(213, 45, 73, .3), 0 0 10px rgba(213, 45, 73, .12); }
html[data-theme="light"] { scrollbar-color: #9273bd #f1edf7; }
[data-theme="light"] ::-webkit-scrollbar-track, [data-theme="light"] ::-webkit-scrollbar-corner { background: #f1edf7; }
[data-theme="light"] ::-webkit-scrollbar-thumb { border-color: #f1edf7; }
@media (max-width: 600px) {
  .navbar:has(.theme-toggle) .brand-logo { width: 105px; }
  .theme-toggle { width: 32px; height: 32px; }
  .navbar:has(.theme-toggle) .lang-switcher { margin-inline: 4px; }
}
