/* assets/css/styles.css */

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #f9fafb;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header & Nav */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative; /* added */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}


.brand-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* helps on mid-size screens */
}


.nav a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #111827;
}

/* Hamburger button (hidden on desktop by default) */
.nav-toggle {
  display: none; /* show only on mobile via media query */
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Two small bars inside the hamburger */
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 3px 0;
}


/* Main */
main {
  flex: 1;
  padding: 2rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Landing page hero */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  max-width: 30rem;
  margin: 0.5rem auto 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* Feature grid */
.features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: #fef3c7;
  font-size: 1.1rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-text {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Content pages (privacy/terms/support) */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.page-section {
  margin-bottom: 1.5rem;
}

.page-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-section p {
  margin-bottom: 0.5rem;
}

.page-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.75rem;
  color: #374151;
}

/* Small helpers */
.muted {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Mobile navigation (burger menu) */
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: none; /* hidden by default on mobile */
  }

  .nav a {
    padding: 0.25rem 0;
  }

  .nav.nav-open {
    display: flex; /* shown when JS toggles .nav-open */
  }
}
