/* ===== CRITICAL CSS - INITIAL SPLASH SCREEN ONLY ===== */
/* Full styles loaded from App.css after React hydration */

/* Minimal variables for splash screen */
:root {
  --accent-500: #cc0000;
  --text-primary: #0c1b2a;
  --text-secondary: #2f3b4c;
  --bg-secondary: #ffffff;
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Splash screen (shown until React loads) */
.app-splash {
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  background: radial-gradient(circle at top left, rgba(204, 0, 0, 0.08), transparent 40%),
              radial-gradient(circle at bottom right, rgba(0, 51, 102, 0.12), transparent 45%);
  color: var(--text-primary);
  min-height: clamp(280px, 50vh, 420px);
  display: grid;
  place-items: center;
}

.app-splash__inner {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-splash__kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-500);
}

.app-splash h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0;
  color: var(--text-primary);
}

.app-splash p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .app-splash {
    padding: 2.5rem 1.25rem;
  }
  .app-splash h1 {
    font-size: 2rem;
  }
  .app-splash p {
    font-size: 0.95rem;
  }
}

/* Loading skeletons (for lazy-loaded sections) */
.section-loading,
.calculator-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px dashed #d6dee8;
  gap: 0.5rem;
}

.section-loading {
  min-height: 220px;
  font-size: 1rem;
}

.calculator-loading {
  min-height: 520px;
  font-size: 1.125rem;
  padding: 2rem;
}
