/* HabiBoard — Modern, clean and engaging */
:root {
  --bg: #f8fafb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #4a7c59; /* green */
  --primary-light: #5a9268;
  --primary-dark: #3a6249;
  --gold: #c9a961;
  --orange: #ff9800;
  --gradient-primary: linear-gradient(135deg, #4a7c59 0%, #5a9268 100%);
  --gradient-hero: linear-gradient(135deg, #f8fafb 0%, #e8f5e9 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { color: var(--primary-light); }
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: rgba(74,124,89,0.1);
  transform: translateY(-1px);
}

.hero {
  padding: 80px 0 60px;
  background: var(--gradient-hero);
  margin: -16px -16px 48px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 0 0 32px 32px;
  text-align: center;
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.lead {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ctas .btn { margin-right: 0; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 8px; }
h2 { font-size: 1.5rem; margin: 28px 0 8px; padding-top: 16px; }
h3 { font-size: 1.125rem; margin: 20px 0 8px; }

p { margin: 0 0 12px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin: 4px 0; }
a { color: var(--primary); }

blockquote {
  margin: 12px 0; padding: 12px 16px;
  background: #f7faf7; border-left: 4px solid var(--primary);
  color: var(--text);
}

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.btn.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.site-footer { margin-top: 48px; padding: 16px 0 32px; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { margin-right: 12px; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--primary); }
.site-footer small { color: var(--muted); }

/* details summary markdown-like */
details { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
details[open] { border-color: var(--primary); }
summary { cursor: pointer; font-weight: 600; }

/* Sections spacing */
section {
  scroll-margin-top: 80px;
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav a {
    font-size: 0.875rem;
    padding: 6px 10px;
  }
  .brand {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .lead { font-size: 1.1rem; }
  .main-nav a {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-icon {
  font-size: 1.5rem;
}

/* Screenshots Section */
.screenshots-section {
  margin: 64px 0;
  padding: 48px 0;
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.screenshots-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 0 24px;
}

.screenshot-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.screenshot-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.screenshot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 16px 12px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* How it works section */
#how-it-works ol {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 32px 32px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

#how-it-works ol li {
  margin: 16px 0;
  padding-left: 8px;
  font-size: 1.05rem;
}

#how-it-works blockquote {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  font-style: italic;
}

/* FAQ Section */
#faq details {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

#faq details[open] {
  border-color: var(--primary);
  background: #f7faf7;
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  user-select: none;
}

#faq details[open] summary {
  color: var(--primary);
  margin-bottom: 12px;
}

/* Download Section */
.download-section {
  margin: 64px 0 32px;
  padding: 60px 32px;
  background: var(--gradient-hero);
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.app-icon-large {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.download-section h2 {
  font-size: 2rem;
  margin: 16px 0;
  color: var(--primary);
}

.download-section p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.download-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-placeholder {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px 48px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.badge-placeholder:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.badge-placeholder span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.badge-placeholder p {
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  font-size: 1rem;
}

/* Contact Page Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
  transform: translateY(-2px);
}

.contact-card h2 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-card p {
  margin: 8px 0;
}

.contact-card .highlight {
  background: #f7faf7;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  margin-top: 12px;
  font-weight: 500;
}

.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.contact-info h2 {
  margin: 0 0 16px;
  padding: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.contact-info ul {
  margin: 0 0 0 20px;
}

.contact-info li {
  margin: 8px 0;
  color: var(--text);
}

