/**
 * Loads from /mythic-fallback.css (public/) — always copied to dist root.
 * If the Tailwind bundle fails to load, the page still looks like a real site.
 */
:root {
  --mythic-red: #e50914;
  --mythic-red-hover: #b20710;
  --mythic-bg: #000000;
  --mythic-panel: #141414;
  --mythic-muted: #b3b3b3;
  --mythic-border: #333333;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--mythic-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--mythic-bg);
  color: #ffffff;
  font-family:
    'Barlow Semi Condensed',
    system-ui,
    -apple-system,
    'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
}

.mythic-font-display {
  font-family:
    'Barlow Semi Condensed',
    system-ui,
    -apple-system,
    'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
}

/* ——— Header ——— */
.mythic-header-outer {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.mythic-max {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.mythic-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mythic-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.mythic-brand:hover {
  color: #fff;
}

/* ——— Primary actions (always visible) ——— */
.mythic-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--mythic-red) !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 0.75rem 1.35rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  text-decoration: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.25 !important;
}

.mythic-btn:hover {
  background: var(--mythic-red-hover) !important;
  color: #fff !important;
}

.mythic-btn--lg {
  padding: 0.9rem 2rem !important;
  font-size: 1rem !important;
}

.mythic-btn--block {
  width: 100% !important;
}

/* ——— Hero ——— */
.mythic-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
}

.mythic-hero-inner {
  max-width: 42rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .mythic-hero-inner {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}

.mythic-kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mythic-red);
}

.mythic-h1 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}

.mythic-h1-line2 {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 4.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mythic-h1-em {
  color: var(--mythic-red);
}

.mythic-h1-rest {
  color: #fff;
}

.mythic-subtitle {
  margin: 1.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mythic-muted);
}

@media (min-width: 640px) {
  .mythic-subtitle {
    font-size: 1.5rem;
  }
}

.mythic-prose {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mythic-muted);
}

@media (min-width: 640px) {
  .mythic-prose {
    font-size: 1.0625rem;
  }
}

.mythic-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
  color: #d4d4d4;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .mythic-list {
    font-size: 1rem;
  }
}

.mythic-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mythic-cta-row {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mythic-cta-row {
    flex-direction: row;
    align-items: center;
  }
}

.mythic-footnote {
  font-size: 0.8125rem;
  color: #808080;
}

/* ——— How it works pipeline ——— */
/* Red energy strokes: hidden in HTML/CSS until JS runs prepPath (avoids flash before React layout). */
@media (prefers-reduced-motion: no-preference) {
  .mythic-pipeline-energy.mythic-pipeline-energy--prepaint-hide {
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mythic-pipeline-energy--loop {
    stroke-dasharray: 5 32;
    animation: mythic-pipeline-dash-flow 4.2s linear infinite;
  }
}

@keyframes mythic-pipeline-dash-flow {
  to {
    stroke-dashoffset: -148;
  }
}

/* ——— Waitlist ——— */
.mythic-waitlist {
  background: var(--mythic-panel);
  border-top: 1px solid var(--mythic-border);
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.mythic-waitlist-inner {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.mythic-h2 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .mythic-h2 {
    font-size: 2.25rem;
  }
}

.mythic-waitlist-lede {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mythic-muted);
}

.mythic-form {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mythic-form--lead {
  gap: 1.5rem;
}

.mythic-form-fieldset {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.mythic-form-fieldset--qualify {
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mythic-border);
}

.mythic-form-legend-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mythic-form-legend {
  width: 100%;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mythic-muted);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.mythic-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mythic-field-label label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.mythic-field-error {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ff6b6b;
}

.mythic-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #404040;
  border-radius: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.mythic-input::placeholder {
  color: #737373;
}

.mythic-input:focus {
  outline: 2px solid var(--mythic-red);
  outline-offset: 1px;
  border-color: var(--mythic-red);
}

.mythic-select,
.mythic-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #404040;
  border-radius: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
}

.mythic-select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a3a3a3 50%),
    linear-gradient(135deg, #a3a3a3 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.mythic-select option {
  background: #141414;
  color: #fff;
}

.mythic-textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.mythic-textarea::placeholder {
  color: #737373;
}

.mythic-select:focus,
.mythic-textarea:focus {
  outline: 2px solid var(--mythic-red);
  outline-offset: 1px;
  border-color: var(--mythic-red);
}

.mythic-btn:disabled {
  opacity: 0.72 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.mythic-btn:disabled:hover {
  background: var(--mythic-red) !important;
}

.mythic-alert--error {
  border-color: rgba(229, 9, 20, 0.45);
  color: #e5e5e5;
}

/* ——— Footer ——— */
.mythic-footer {
  border-top: 1px solid var(--mythic-border);
  background: #000;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.mythic-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mythic-footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.mythic-footer-brand {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.mythic-footer-tag {
  margin: 0.5rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  color: var(--mythic-muted);
}

.mythic-footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: #808080;
}

.mythic-disclaimer {
  margin: 2rem 0 0;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #808080;
}

.mythic-alert {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--mythic-border);
  border-radius: 0.5rem;
  background: #1a1a1a;
  font-size: 0.875rem;
  color: var(--mythic-muted);
}

.mythic-success {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  color: #fff;
}
