/*
 * Critical shared marketing styles for public routes where full orm.css can
 * be deferred safely after first paint.
 */

:root {
  --orm-teal: #0d9488;
  --orm-teal-dark: #0f766e;
  --orm-teal-light: #99f6e4;
  --orm-teal-rgb: 13 148 136;
  --orm-body-bg: #ffffff;
  --orm-text: #0f172a;
  --orm-text-secondary: #475569;
  --orm-text-muted: #64748b;
  --orm-text-soft: #334155;
  --orm-text-on-dark: #f8fafc;
  --orm-text-on-dark-secondary: #e2e8f0;
  --orm-text-on-dark-muted: #cbd5e1;
  --orm-text-on-dark-soft: #94a3b8;
  --orm-eyebrow-soft: #334155;
  --orm-border-soft: #cbd5e1;
  --orm-surface-subtle: #f8fafc;
  --orm-radius: 1rem;
  --orm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --orm-space-section: clamp(4rem, 8vw, 6rem);
  --orm-space-section-tight: clamp(3rem, 5vw, 4.5rem);
  --orm-safe-header: 5rem;
  --orm-cookie-offset: 0px;
  --orm-surface-base: #ffffff;
  --orm-surface-elevated: #ffffff;
  --orm-surface-soft: #f8fafc;
  --orm-shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html[data-color-scheme="light"] {
  color-scheme: light;
}

html[data-color-scheme="dark"] {
  color-scheme: dark;
}

.theme-analytee-orm[data-color-scheme="dark"] {
  --orm-body-bg: #020617;
  --orm-text: #f8fafc;
  --orm-text-secondary: #dbe5f0;
  --orm-text-muted: #b8c4d6;
  --orm-text-soft: #d7e1ee;
  --orm-border-soft: rgba(148, 163, 184, 0.28);
  --orm-surface-subtle: #0f172a;
  --orm-surface-base: #020617;
  --orm-surface-elevated: #0b1220;
  --orm-surface-soft: #111c2e;
  --orm-shadow-soft: 0 18px 42px rgba(2, 6, 23, 0.46);
}

.theme-analytee-orm {
  font-family: var(--orm-font);
  background: var(--orm-body-bg);
  color: var(--orm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--orm-safe-header) + 1rem);
  --orm-cookie-offset: 0px;
}

.theme-analytee-orm[data-cookie-bar-visible='true'] {
  padding-bottom: var(--orm-cookie-offset);
}

.orm-skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
  z-index: 1200;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #ffffff;
  border-radius: 0.875rem;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.orm-skip-link:focus {
  transform: translateY(0);
}

.orm-main-shell {
  min-width: 0;
}

.orm-page-shell {
  position: relative;
}

.orm-page-shell--marketing {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.42) 0%, rgba(255, 255, 255, 0) 18rem);
}

.orm-page-intro,
.orm-section-intro {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.orm-section-intro--compact {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.orm-section {
  padding-block: var(--orm-space-section);
}

.orm-section--tight {
  padding-block: var(--orm-space-section-tight);
}

.orm-section--page {
  padding-block: clamp(4.5rem, 7vw, 6rem);
}

.orm-section--band {
  padding-block: clamp(2.5rem, 5vw, 3.25rem);
}

.orm-section--hero {
  padding-block: 0;
}

.orm-section--dark {
  color: #ffffff;
}

.orm-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orm-eyebrow--muted {
  border-color: var(--orm-border-soft);
  background: var(--orm-surface-subtle);
  color: var(--orm-eyebrow-soft);
}

.orm-eyebrow--surface {
  border-color: var(--orm-border-soft);
  background: #ffffff;
  color: var(--orm-text-secondary);
}

.orm-eyebrow--dark {
  border-color: rgba(94, 234, 212, 0.36);
  background: rgba(20, 184, 166, 0.16);
  color: #ccfbf1;
}

.orm-text-primary {
  color: var(--orm-text);
}

.orm-text-secondary {
  color: var(--orm-text-secondary);
}

.orm-text-muted,
.orm-icon-muted {
  color: var(--orm-text-muted);
}

.orm-text-subtle,
.orm-surface-meta,
.orm-eyebrow-contrast,
.orm-form-help {
  color: var(--orm-text-secondary);
}

.orm-text-on-dark {
  color: var(--orm-text-on-dark);
}

.orm-dark-muted {
  color: var(--orm-text-on-dark-muted);
}

.orm-dark-soft {
  color: var(--orm-text-on-dark-soft);
}

.orm-meta-text {
  color: var(--orm-text-muted);
  font-weight: 500;
}

.orm-pricing-meta {
  color: var(--orm-text-secondary);
}

.orm-pricing-muted {
  color: var(--orm-text-muted);
}

.orm-pricing-on-dark {
  color: var(--orm-text-on-dark-secondary);
}

.orm-pricing-on-dark-muted {
  color: #d1fae5;
}

.theme-analytee-orm .prose h1,
.theme-analytee-orm .prose h2,
.theme-analytee-orm .prose h3 {
  color: #0f172a;
  font-weight: 700;
}

.theme-analytee-orm .prose a {
  color: var(--orm-teal);
}

.theme-analytee-orm .prose a:hover {
  color: var(--orm-teal-dark);
}

.theme-analytee-orm #orm-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 1024px) {
  .theme-analytee-orm #orm-header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.theme-analytee-orm .cookie-policy-bar {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.orm-cookie-bar-layer {
  z-index: 1100;
}

.theme-analytee-orm .cookie-policy-bar[hidden] {
  display: none !important;
}

.orm-cookie-panel {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
}

.orm-cookie-accept {
  background: #0d9488;
}

.orm-language-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
}

.orm-language-menu-layer {
  z-index: 1100;
  pointer-events: auto;
}

.orm-language-menu[hidden] {
  display: none !important;
}

.orm-language-option {
  min-height: 2.75rem;
  touch-action: manipulation;
}

.orm-language-option[aria-current="true"] {
  cursor: default;
}

.theme-analytee-orm #orm-mobile-drawer {
  pointer-events: none;
}

.theme-analytee-orm #orm-mobile-drawer.is-open {
  pointer-events: auto;
}

.theme-analytee-orm #orm-mobile-drawer[hidden] {
  display: none !important;
  pointer-events: none;
}

.theme-analytee-orm #orm-mobile-backdrop {
  pointer-events: auto;
}

.orm-header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .orm-header-nav {
    display: flex;
  }
}

.orm-header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .orm-header-cta {
    display: inline-block;
  }
}

.orm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--orm-text-secondary);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.orm-theme-toggle:hover {
  color: var(--orm-text);
  border-color: rgba(var(--orm-teal-rgb), 0.3);
  transform: translateY(-1px);
}

.orm-theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.orm-theme-toggle__icon--moon {
  display: none;
}

.orm-theme-toggle__label {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.theme-analytee-orm[data-color-scheme="dark"] .orm-theme-toggle__icon--sun,
html[data-color-scheme="dark"] body.theme-analytee-orm .orm-theme-toggle__icon--sun {
  display: none;
}

.theme-analytee-orm[data-color-scheme="dark"] .orm-theme-toggle__icon--moon,
html[data-color-scheme="dark"] body.theme-analytee-orm .orm-theme-toggle__icon--moon {
  display: inline-flex;
}

.orm-theme-toggle--mobile {
  justify-content: flex-start;
  width: 100%;
}

.orm-mobile-only {
  display: block;
}

@media (min-width: 1024px) {
  .orm-mobile-only {
    display: none !important;
  }
}

.theme-analytee-orm *:focus-visible {
  outline: 2px solid var(--orm-teal);
  outline-offset: 2px;
}

.orm-touch-target {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.orm-mobile-close,
.pricing-tooltip-trigger {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.orm-empty-state-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
  padding: clamp(2rem, 4vw, 3rem);
}

.orm-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.orm-footer-link-muted {
  color: var(--orm-text-on-dark-muted);
}

.orm-footer-link-muted:hover {
  color: #ffffff;
}

.orm-prefooter-cta {
  overflow: hidden;
  background-color: #0f172a;
  background-image: linear-gradient(135deg, #0f172a 0%, #111827 52%, #0b1220 100%);
  background-repeat: no-repeat;
}

.orm-prefooter-cta h2,
.orm-prefooter-cta .text-white {
  color: #ffffff;
}

.orm-prefooter-cta .text-slate-300 {
  color: var(--orm-text-on-dark-secondary);
}

.orm-prefooter-cta .text-slate-200 {
  color: var(--orm-text-on-dark);
}

.orm-prefooter-cta .text-slate-400 {
  color: var(--orm-text-on-dark-muted);
}

.orm-prefooter-cta-glow {
  background-image: radial-gradient(circle at 20% 50%, #14b8a6 0%, transparent 50%), radial-gradient(circle at 80% 20%, #0ea5e9 0%, transparent 50%);
}

.orm-footer-shell {
  padding-block: clamp(3.5rem, 6vw, 4.5rem);
}

.orm-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.orm-footer-link {
  color: #e2e8f0;
}

.orm-footer-link:hover,
.orm-footer-link:focus-visible {
  color: #ccfbf1;
}

.orm-footer-copy {
  color: #cbd5e1;
}

.orm-footer-copy-muted {
  color: #94a3b8;
}

.faq-trigger {
  cursor: pointer;
}

.faq-item {
  box-shadow: none;
}

.faq-item.is-open {
  border-color: #14b8a6;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.faq-body {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.theme-analytee-orm[data-color-scheme="dark"] {
  background: radial-gradient(circle at top, rgba(13, 148, 136, 0.14), transparent 24rem), var(--orm-body-bg);
}

.theme-analytee-orm[data-color-scheme="dark"] #orm-header,
html[data-color-scheme="dark"] body.theme-analytee-orm #orm-header {
  background: rgba(2, 6, 23, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.34);
}

.theme-analytee-orm[data-color-scheme="dark"] #orm-header img {
  filter: brightness(0) invert(1);
}

.theme-analytee-orm[data-color-scheme="dark"] #orm-header a:not(.bg-teal-600):not(.hover\\:bg-teal-700),
.theme-analytee-orm[data-color-scheme="dark"] #orm-header button,
.theme-analytee-orm[data-color-scheme="dark"] #orm-mobile-drawer nav,
.theme-analytee-orm[data-color-scheme="dark"] #orm-language-menu,
.theme-analytee-orm[data-color-scheme="dark"] .cookie-policy-bar {
  color: var(--orm-text);
}

.theme-analytee-orm[data-color-scheme="dark"] #orm-mobile-drawer nav,
.theme-analytee-orm[data-color-scheme="dark"] #orm-language-menu,
.theme-analytee-orm[data-color-scheme="dark"] .cookie-policy-bar .orm-cookie-panel {
  background: var(--orm-surface-elevated) !important;
  box-shadow: var(--orm-shadow-soft);
}

.theme-analytee-orm[data-color-scheme="dark"] .cookie-policy-bar {
  background: transparent !important;
  border-top-color: var(--orm-border-soft) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .cookie-policy-bar a,
.theme-analytee-orm[data-color-scheme="dark"] .orm-footer-link,
.theme-analytee-orm[data-color-scheme="dark"] .orm-footer-link-muted {
  color: var(--orm-text-on-dark-muted);
}

.theme-analytee-orm[data-color-scheme="dark"] .cookie-policy-bar a:hover,
.theme-analytee-orm[data-color-scheme="dark"] .orm-footer-link:hover,
.theme-analytee-orm[data-color-scheme="dark"] .orm-footer-link-muted:hover {
  color: #ffffff;
}

.theme-analytee-orm[data-color-scheme="dark"] .orm-theme-toggle {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.86) 100%);
  color: var(--orm-text);
  border-color: var(--orm-border-soft);
  box-shadow: var(--orm-shadow-soft);
}

.theme-analytee-orm[data-color-scheme="dark"] .text-gray-900,
.theme-analytee-orm[data-color-scheme="dark"] .text-slate-900,
.theme-analytee-orm[data-color-scheme="dark"] .text-gray-800,
.theme-analytee-orm[data-color-scheme="dark"] .text-slate-800 {
  color: var(--orm-text) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .text-gray-700,
.theme-analytee-orm[data-color-scheme="dark"] .text-slate-700,
.theme-analytee-orm[data-color-scheme="dark"] .text-gray-600,
.theme-analytee-orm[data-color-scheme="dark"] .text-slate-600 {
  color: var(--orm-text-secondary) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .bg-white,
.theme-analytee-orm[data-color-scheme="dark"] main .bg-white,
.theme-analytee-orm[data-color-scheme="dark"] nav.bg-white {
  background-color: var(--orm-surface-elevated) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .bg-slate-50,
.theme-analytee-orm[data-color-scheme="dark"] .bg-gray-50,
.theme-analytee-orm[data-color-scheme="dark"] main .bg-slate-50,
.theme-analytee-orm[data-color-scheme="dark"] main .bg-gray-50 {
  background-color: var(--orm-surface-soft) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .border-gray-100,
.theme-analytee-orm[data-color-scheme="dark"] .border-gray-200,
.theme-analytee-orm[data-color-scheme="dark"] .border-slate-100,
.theme-analytee-orm[data-color-scheme="dark"] .border-slate-200,
.theme-analytee-orm[data-color-scheme="dark"] .border-slate-300,
.theme-analytee-orm[data-color-scheme="dark"] main .border-gray-100,
.theme-analytee-orm[data-color-scheme="dark"] main .border-gray-200,
.theme-analytee-orm[data-color-scheme="dark"] main .border-slate-100,
.theme-analytee-orm[data-color-scheme="dark"] main .border-slate-200,
.theme-analytee-orm[data-color-scheme="dark"] main .border-slate-300 {
  border-color: var(--orm-border-soft) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .orm-section.bg-white,
.theme-analytee-orm[data-color-scheme="dark"] section.bg-white,
.theme-analytee-orm[data-color-scheme="dark"] .orm-section.bg-slate-50 {
  background-color: transparent !important;
}

.theme-analytee-orm[data-color-scheme="dark"] .border-dashed {
  border-color: rgba(148, 163, 184, 0.34) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] #faqs .orm-section-intro h1,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .orm-section-intro h2,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .orm-section-intro .text-slate-900,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-item .text-slate-900 {
  color: var(--orm-text) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] #faqs .orm-section-intro p,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .orm-text-secondary,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-item .text-slate-600,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-item .text-slate-500 {
  color: #d6e2f0 !important;
}

.theme-analytee-orm[data-color-scheme="dark"] #faqs .orm-eyebrow--surface {
  background: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(94, 234, 212, 0.3) !important;
  color: #ccfbf1 !important;
}

.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-item {
  background: rgba(8, 20, 34, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-item.is-open {
  border-color: rgba(45, 212, 191, 0.46) !important;
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.28) !important;
}

.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-trigger svg,
.theme-analytee-orm[data-color-scheme="dark"] #faqs .faq-trigger .text-slate-500 {
  color: #d6e2f0 !important;
}
