/**
 * Landing Page Master Styles
 * Open Mind Transactions - Modern AI-Focused Design
 *
 * This file imports all landing page design system modules.
 * Load this in templates with: {% load static %} <link rel="stylesheet" href="{% static 'css/landing/landing.css' %}">
 */

/* Design System Modules */
@import url("./variables.6125f9f8c983.css");
@import url("./typography.fe3814a47d7b.css");
@import url("./animations.efdd8bbcc361.css");
@import url("./components.e6e3454309f0.css");

/* ===== GLOBAL OVERRIDES FOR LANDING PAGES ===== */

/*
 * IMPORTANT: Do NOT add universal resets (*, *::before, *::after) for
 * margin, padding, or box-sizing here. Tailwind CSS v4 provides its own
 * preflight reset inside @layer base. Unlayered CSS overrides @layer-ed
 * CSS per the CSS Cascade Layers spec, which would break ALL Tailwind
 * padding and margin utilities (py-20, mx-auto, mb-4, etc.).
 */

/* Ensure smooth scrolling for anchor links */
html {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Remove all animations and transitions for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== UTILITY CLASSES ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary-700);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  -webkit-transition: top var(--transition-fast) var(--ease-out);
  -moz-transition: top var(--transition-fast) var(--ease-out);
  -o-transition: top var(--transition-fast) var(--ease-out);
  transition: top var(--transition-fast) var(--ease-out);
}

.skip-to-content:focus {
  top: 0;
}

/* ===== RESPONSIVE HELPERS ===== */

.show-on-mobile {
  display: block;
}

.hide-on-mobile {
  display: none;
}

@media (min-width: 768px) {
  .show-on-mobile {
    display: none;
  }

  .hide-on-mobile {
    display: block;
  }
}

/* ===== SECTION BACKGROUNDS ===== */

.section-gradient-subtle {
  background: -webkit-linear-gradient(top,
    rgba(255, 255, 255, 0) 0%,
    rgba(26, 46, 26, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%);
  background: -moz-linear-gradient(top,
    rgba(255, 255, 255, 0) 0%,
    rgba(26, 46, 26, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%);
  background: -o-linear-gradient(top,
    rgba(255, 255, 255, 0) 0%,
    rgba(26, 46, 26, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(26, 46, 26, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%);
}

html.dark .section-gradient-subtle {
  background: -webkit-linear-gradient(top,
    rgba(26, 46, 26, 0) 0%,
    rgba(26, 46, 26, 0.3) 50%,
    rgba(26, 46, 26, 0) 100%);
  background: -moz-linear-gradient(top,
    rgba(26, 46, 26, 0) 0%,
    rgba(26, 46, 26, 0.3) 50%,
    rgba(26, 46, 26, 0) 100%);
  background: -o-linear-gradient(top,
    rgba(26, 46, 26, 0) 0%,
    rgba(26, 46, 26, 0.3) 50%,
    rgba(26, 46, 26, 0) 100%);
  background: linear-gradient(180deg,
    rgba(26, 46, 26, 0) 0%,
    rgba(26, 46, 26, 0.3) 50%,
    rgba(26, 46, 26, 0) 100%);
}

.section-gradient-primary {
  background: -webkit-linear-gradient(top,
    var(--color-primary-900) 0%,
    var(--color-primary-800) 100%);
  background: -moz-linear-gradient(top,
    var(--color-primary-900) 0%,
    var(--color-primary-800) 100%);
  background: -o-linear-gradient(top,
    var(--color-primary-900) 0%,
    var(--color-primary-800) 100%);
  background: linear-gradient(180deg,
    var(--color-primary-900) 0%,
    var(--color-primary-800) 100%);
  color: white;
}

.section-gradient-mesh {
  background: var(--gradient-hero);
  -webkit-background-size: 200% 200%;
  background-size: 200% 200%;
  -webkit-animation: gradient-shift 15s ease infinite;
  -moz-animation: gradient-shift 15s ease infinite;
  -o-animation: gradient-shift 15s ease infinite;
  animation: gradient-shift 15s ease infinite;
}

/* ===== CONTENT WIDTH CONSTRAINTS ===== */

.content-narrow {
  max-width: 65ch;  /* Optimal reading width */
  margin-left: auto;
  margin-right: auto;
}

.content-medium {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.content-wide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOCUS STYLES (Accessibility) ===== */

/*
 * :focus fallback for browsers that do not support :focus-visible.
 * Modern browsers that support :focus-visible will use the more
 * specific rule below, which takes precedence via specificity.
 */
:focus {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus,
a:focus {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 4px;
}

/* ===== PRINT STYLES ===== */

@media print {
  .no-print {
    display: none !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
}
