@property --osaura-ambient-one {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(191, 219, 254, 0.58);
}

@property --osaura-ambient-two {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(186, 230, 253, 0.42);
}

@property --osaura-ambient-three {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.72);
}

:root {
  --osaura-ambient-one: rgba(191, 219, 254, 0.58);
  --osaura-ambient-two: rgba(186, 230, 253, 0.42);
  --osaura-ambient-three: rgba(255, 255, 255, 0.72);
  color-scheme: light;
  transition: --osaura-ambient-one 16s ease-in-out,
    --osaura-ambient-two 16s ease-in-out,
    --osaura-ambient-three 16s ease-in-out;
}

html.osaura-dark { color-scheme: dark; }
html.osaura-ambient-static { transition: none; }
html.osaura-ambient-resuming {
  transition: --osaura-ambient-one 4s ease-in-out,
    --osaura-ambient-two 4s ease-in-out,
    --osaura-ambient-three 4s ease-in-out;
}

.aura-bg-blob-one { background: var(--osaura-ambient-one) !important; }
.aura-bg-blob-two { background: var(--osaura-ambient-two) !important; }
.aura-bg-blob-three { background: var(--osaura-ambient-three) !important; }

.osaura-theme-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.osaura-mode-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.osaura-mode-button:hover { color: #2563eb; transform: translateY(-1px); }
.osaura-mode-button:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.24); outline-offset: 2px; }

.osaura-ambient-glyph {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 27% 36%, #60a5fa 0 14%, transparent 16%),
    radial-gradient(circle at 70% 32%, #86efac 0 13%, transparent 15%),
    radial-gradient(circle at 57% 72%, #f9a8d4 0 14%, transparent 16%),
    rgba(219, 234, 254, 0.72);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2), 0 0 0 3px rgba(59, 130, 246, 0.07);
  transition: filter 180ms ease, background 180ms ease;
}

.osaura-ambient-toggle[aria-pressed="true"] {
  border-color: rgba(96, 165, 250, 0.4);
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 250, 0.88), rgba(253, 242, 248, 0.9));
  box-shadow: 0 5px 16px -9px rgba(59, 130, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.osaura-ambient-static .osaura-ambient-glyph {
  background:
    radial-gradient(circle at 27% 36%, #60a5fa 0 14%, transparent 16%),
    radial-gradient(circle at 70% 32%, #93c5fd 0 13%, transparent 15%),
    radial-gradient(circle at 57% 72%, #2563eb 0 14%, transparent 16%),
    rgba(219, 234, 254, 0.82);
  filter: saturate(0.9);
}

.osaura-theme-glyph {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask: radial-gradient(circle at 68% 34%, transparent 0 34%, #000 37%);
  mask: radial-gradient(circle at 68% 34%, transparent 0 34%, #000 37%);
  transform: rotate(-16deg);
}

.osaura-dark .osaura-theme-glyph {
  width: 0.62rem;
  height: 0.62rem;
  -webkit-mask: none;
  mask: none;
  transform: none;
  box-shadow: 0 -0.46rem 0 -0.22rem currentColor,
    0 0.46rem 0 -0.22rem currentColor,
    0.46rem 0 0 -0.22rem currentColor,
    -0.46rem 0 0 -0.22rem currentColor,
    0.33rem 0.33rem 0 -0.24rem currentColor,
    -0.33rem -0.33rem 0 -0.24rem currentColor,
    0.33rem -0.33rem 0 -0.24rem currentColor,
    -0.33rem 0.33rem 0 -0.24rem currentColor;
}

.osaura-site-header.is-over-intelligence .osaura-mode-button,
.osaura-dark .osaura-mode-button {
  color: #dbeafe;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(30, 41, 59, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dark appearance — landing pages */
html.osaura-dark body {
  color: #e2e8f0 !important;
  background: #09111f !important;
}

html.osaura-dark .aura-bg-dots {
  opacity: 0.16 !important;
  background-image: radial-gradient(circle at 1px 1px, rgba(226, 232, 240, 0.18) 1px, transparent 0) !important;
}

html.osaura-dark .osaura-nav-shell,
html.osaura-dark .osaura-mobile-menu {
  color: #e2e8f0 !important;
  background: rgba(9, 17, 31, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 42px -24px rgba(2, 6, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.osaura-dark .osaura-nav-overlay { opacity: 0 !important; }
html.osaura-dark .osaura-nav-brand { color: #f8fafc !important; }
html.osaura-dark .osaura-nav-subtitle,
html.osaura-dark .osaura-nav-links,
html.osaura-dark .osaura-mobile-menu { color: #cbd5e1 !important; }
html.osaura-dark .osaura-mobile-menu a:hover { background: rgba(59, 130, 246, 0.14) !important; }

html.osaura-dark main [class~="text-slate-950"],
html.osaura-dark main [class~="text-slate-900"],
html.osaura-dark footer [class~="text-slate-950"],
html.osaura-dark footer [class~="text-slate-900"] { color: #f8fafc !important; }

html.osaura-dark main [class~="text-slate-800"],
html.osaura-dark main [class~="text-slate-700"] { color: #e2e8f0 !important; }

html.osaura-dark main [class~="text-slate-600"],
html.osaura-dark main [class~="text-slate-500"],
html.osaura-dark footer [class~="text-slate-600"],
html.osaura-dark footer [class~="text-slate-500"] { color: #cbd5e1 !important; }

html.osaura-dark main [class~="text-slate-400"],
html.osaura-dark footer [class~="text-slate-400"] { color: #94a3b8 !important; }

html.osaura-dark main [class~="bg-white"],
html.osaura-dark main [class*="bg-white/"],
html.osaura-dark footer[class*="bg-white/"] {
  background-color: rgba(15, 23, 42, 0.84) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html.osaura-dark main [class~="bg-slate-50"],
html.osaura-dark main [class~="bg-blue-50"],
html.osaura-dark main [class~="bg-slate-100"] {
  background-color: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html.osaura-dark main .aura-hero-card,
html.osaura-dark main [class*="from-white"][class*="to-slate"],
html.osaura-dark main [class*="from-white"][class*="to-blue-50"],
html.osaura-dark main [class*="from-blue-50"][class*="to-white"],
html.osaura-dark main [class*="from-blue-50"][class*="via-white"] {
  background-image: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html.osaura-dark main [class~="border-slate-200"],
html.osaura-dark main [class~="border-blue-100"] { border-color: rgba(148, 163, 184, 0.22) !important; }

html.osaura-dark .osaura-problem-grid > div,
html.osaura-dark .osaura-capability-grid > div:not(:last-child) {
  color: #e2e8f0 !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84)) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 42px -28px rgba(2, 6, 23, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

html.osaura-dark .osaura-problem-grid > div > p,
html.osaura-dark .osaura-capability-grid > div:not(:last-child) > p { color: #cbd5e1 !important; }

html.osaura-dark footer {
  color: #cbd5e1 !important;
  background: rgba(9, 17, 31, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

/* Dark appearance — checkout, account, referral, and information pages */
html.osaura-dark {
  --ink: #f8fafc;
  --ink-soft: #e2e8f0;
  --muted: #cbd5e1;
  --muted-light: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --blue-pale: rgba(30, 64, 175, 0.22);
  --surface: rgba(15, 23, 42, 0.86);
  --shadow: 0 28px 72px -38px rgba(2, 6, 23, 0.86), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html:not(.osaura-dark) body:has(.commerce-nav) {
  background:
    radial-gradient(circle at 12% 7%, var(--osaura-ambient-one), transparent 31rem),
    radial-gradient(circle at 91% 32%, var(--osaura-ambient-two), transparent 27rem),
    linear-gradient(145deg, #f8fafc 0%, #f3f6fb 48%, #eef4fc 100%) !important;
}

html.osaura-dark body:has(.commerce-nav) {
  background:
    radial-gradient(circle at 12% 7%, var(--osaura-ambient-one), transparent 31rem),
    radial-gradient(circle at 91% 32%, var(--osaura-ambient-two), transparent 27rem),
    linear-gradient(145deg, #07101d 0%, #0b1423 48%, #101a2a 100%) !important;
}

html.osaura-dark .ambient-grid {
  opacity: 0.16;
  background-image: linear-gradient(rgba(148, 163, 184, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.11) 1px, transparent 1px);
}

html.osaura-dark .brand-mark,
html.osaura-dark .wallet-button,
html.osaura-dark .soft-button,
html.osaura-dark .field input,
html.osaura-dark .field select,
html.osaura-dark .field textarea,
html.osaura-dark .code-row input,
html.osaura-dark .code-inputs input,
html.osaura-dark .referral-link-output {
  color: var(--ink-soft);
  background: linear-gradient(180deg, #1e293b, #172033) !important;
  border-color: #334155 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html.osaura-dark .trust-chip,
html.osaura-dark .plan-select,
html.osaura-dark .segment,
html.osaura-dark .result-card,
html.osaura-dark .help-item,
html.osaura-dark .rate-tier,
html.osaura-dark .overlap-column {
  color: var(--muted);
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

html.osaura-dark .plan-option.is-active,
html.osaura-dark .segment button.is-active {
  color: #f8fafc;
  background: #263449;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.osaura-dark .square-handoff,
html.osaura-dark .plan-detail {
  color: var(--ink-soft);
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0.82));
  border-color: rgba(96, 165, 250, 0.24);
}

html.osaura-dark .handoff-mark,
html.osaura-dark .success-mark { background: #1e293b; }

html.osaura-dark .draft-notice {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.28);
  border-color: rgba(245, 158, 11, 0.3);
}

html.osaura-dark .draft-notice strong,
html.osaura-dark .placeholder { color: #fbbf24; }
html.osaura-dark .placeholder { background: rgba(120, 53, 15, 0.34); }

html.osaura-dark .function-map {
  background: radial-gradient(circle, #2f6fe4 0 26%, rgba(30, 64, 175, 0.34) 27% 48%, rgba(15, 23, 42, 0.88) 49% 100%);
  border-color: rgba(148, 163, 184, 0.18);
}

html.osaura-dark .function-map > span { color: #bfdbfe; background: rgba(15, 23, 42, 0.82); }

@media (max-width: 639px) {
  .aura-bg-blob-one { background: radial-gradient(circle, var(--osaura-ambient-one), transparent 68%) !important; }
  .aura-bg-blob-two { background: radial-gradient(circle, var(--osaura-ambient-two), transparent 70%) !important; }
  .aura-bg-blob-three { background: radial-gradient(circle, var(--osaura-ambient-three), transparent 70%) !important; }

  .osaura-site-header .osaura-theme-controls { gap: 0.2rem; }
  .osaura-site-header .osaura-mode-button {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
  }

  .osaura-mode-button::after { display: none; }
  .commerce-nav .osaura-theme-controls { gap: 0.25rem; }
  .commerce-nav .osaura-mode-button {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
  }

  .commerce-nav .nav-actions:has(.nav-link + .nav-link) .nav-link:first-of-type {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1199px) {
  .osaura-site-header .osaura-nav-secondary { display: none !important; }
  .osaura-site-header .osaura-nav-links { gap: 1rem !important; }
}

@media (max-width: 370px) {
  .osaura-site-header .osaura-nav-subtitle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .osaura-mode-button { transition: none; }
}
