/* =========================
   Reset / Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Theme Variables
   ========================= */
:root {
  --bg: #5a26677d;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --text: #000000;
  --muted: #6b7280;

  --primary: #775b90;
  --title: #1300a5;
  --primary-soft: #94bedc;

  --radius: 14px;
  --nav-h: 100px; /* doubled header height */
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   Headings & Typography
   ========================= */

/* Base heading reset */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* Primary page headline */
h1 {
  font-size: clamp(3rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 680;
}

/* Section headlines */
h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

/* Subsection titles */
h3 {
  font-size: 1.4rem;
}

/* Card / feature titles */
h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Centered labels / captions */
h5 {
  font-size: 2.0rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}


/* =========================
   Mobile Header CTA sizing
   ========================= */
@media (max-width: 767px) {
  .topbar-actions .btn {
    min-height: 28px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 10px;    
    max-width: 80px; 
    max-height: 50px; 
  }

  h1 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.0rem, 4vw, 2.25rem);
  }

}

/* =========================
   Footer
   ========================= */
.footer {
  background: var(--surface);
  padding: 32px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}