/* ============================================
   Monthney – Shared Styles
   ============================================ */

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

:root {
  --primary:        #1F8A5B;
  --primary-light:  #EAF6EF;
  --accent:         #2F6E56;
  --highlight:      #49A078;
  --bg:             #F5FAF7;
  --card:           #FFFFFF;
  --border:         #DCE9E1;
  --text:           #16382B;
  --text-secondary: #5F7C6F;
  --text-light:     #97ADA2;
  --income:         #1F9D63;
  --expense:        #D95D5D;
  --radius:         14px;
  --shadow:         0 4px 24px rgba(31, 138, 91, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── Navbar ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ── Sections ── */
section {
  padding: 80px 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 100px 2rem 80px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(31,138,91,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(31,138,91,0.45); }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* ── Section heading ── */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-heading p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Download strip ── */
.download-strip {
  background: var(--primary);
  border-radius: 24px;
  padding: 56px 2rem;
  text-align: center;
  color: #fff;
  max-width: 1100px;
  margin: 0 auto 80px;
}
.download-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.download-strip p { opacity: 0.8; margin-bottom: 2rem; }

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  text-decoration: none;
}
.store-badge:hover { background: rgba(255,255,255,0.25); text-decoration: none; color: #fff; }
.store-badge svg { width: 20px; height: 20px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--primary); }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* ── Privacy / content pages ── */
.page-hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 72px 2rem 56px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.8; font-size: 1rem; }

.content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 2rem 80px;
}

.content-wrap h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.content-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-wrap p { color: var(--text-secondary); margin-bottom: 1rem; }

.content-wrap ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.content-wrap ul li { margin-bottom: 0.4rem; }

.content-wrap .info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 0.93rem;
}

/* ── Screenshots strip ── */
.screenshots-strip {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-strip::-webkit-scrollbar { height: 6px; }
.screenshots-strip::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
.screenshots-strip::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.screenshot-wrap {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 6px #fff, 0 0 0 8px var(--border);
}
.screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav ul { display: none; }
  .hero { padding: 60px 1.5rem 48px; }
  section { padding: 56px 1.5rem; }
}
