/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-text: #111827;
  --secondary-text: #1f2937;
  --text-muted: #666;
  --accent: #f7c244;
  --accent-dark: #f0a829;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a:focus,
a:focus-visible,
a:active {
  outline: none !important;
}

.bg-gradient {
  background-image: linear-gradient(to bottom, var(--accent), var(--accent-dark));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: scroll; /* keep tied to content height */
  background-color: var(--accent-dark); /* safe fallback fill */
}

/* Container */
main.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}
.wrapper {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Site Header */
.site-header {
  background-color: #f8c656;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #facd6c;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.site-header-inner:has(> :only-child) {
  justify-content: flex-end;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-text);
}

.site-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-name {
  font-size: 1rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav .nav-item {
  color: var(--primary-text);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  position: relative;
  font-weight: 500;
}

.site-nav .nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hero Section (generic landing) */
.hero-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.hero_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-logo {
  width: 90px;
  height: 90px;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-large {
  width: 4rem;
  height: 4rem;
  color: var(--primary-text);
}

.icon-small {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--primary-text);
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-text);
  margin-bottom: 0rem;
  margin-top: 4rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--primary-text); /* changed from gray to primary */
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Install Button */
.btn-install {
  background-color: var(--primary-text);
  color: white;
  padding: 0.7rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  -webkit-appearance: none;      /* remove native button styling (Safari/iOS) */
  appearance: none;
}
.btn-install:link,
.btn-install:visited {
  color: #fff;                   /* ensure anchors keep the same text color */
}

.btn-install svg,
.btn-install .icon-small {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}
.btn-install:hover {
  background-color: #1f2937;
  transform: scale(1.05);
}

/* Features Section */
.features-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.features-content {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-image {
  aspect-ratio: 16 / 9;
  background-color: #f3f4f6;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-text);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* 404 Not Found page */

.hero-section.not-found {
  flex: 1 0 auto;          /* occupy remaining height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertically; remove if you prefer top */
}

.hero-section.not-found .hero-content {
  text-align: center;
  padding: 40px 0;
}

.hero-section.not-found .hero_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-section.not-found .hero-title {
  margin: 0;
}

.hero-section.not-found .hero-subtitle {
  margin-top: 12px;
}

.hero-section.not-found .hero-description {
  margin: 8px 0 20px;
}

.hero-section.not-found .btn-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hero-section.not-found .icon-small {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* Privacy Page (new structure) */
main.privacy-page {
  flex: 1 0 auto;
  padding: 36px 0 32px;
  max-width: 820px;
  margin: 0 auto;
}

.page-title {
  font-size: 1.6rem;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--primary-text);
}

.page-intro {
  margin: 0 0 24px;
  color: var(--primary-text);
  font-size: 1.05rem;
  line-height: 1.5;
}

.privacy-content p {
  margin: 10px 0;
  line-height: 1.5;
  color: var(--secondary-text);
}

.privacy-content h2 {
  margin: 32px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-text);
}

.privacy-content h2:first-of-type {
  margin-top: 4px;
}

.privacy-content ul {
  margin: 10px 0 16px 22px;
  padding: 0;
  list-style: disc;
}

.privacy-content li {
  margin: 6px 0;
}

.privacy-updated {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: #555;
}

.back-home {
  margin-top: 12px;
  display: inline-flex;
  gap: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  background-color: rgba(17, 24, 39, 0.05);
  backdrop-filter: blur(4px);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-text {
  color: var(--secondary-text);
  font-size: 0.875rem;
}

.footer-link {
  color: var(--secondary-text);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-text);
}

/* Responsive Design - Tablet and larger */
@media (min-width: 768px) {
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.875rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .footer-content {
    flex-direction: row;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .privacy-content h2 {
    font-size: 1.25rem;
    margin: 36px 0 14px;
  }
}

/* Allow main sections to grow for footer anchoring */
.hero-section,
.hero-section.not-found,
.features-section {
  flex: 1 0 auto;
}

/* Utility (ensure no horizontal scroll) */
body {
  overflow-x: hidden;
}