/* UrbanGrid — Shared Styles */

:root {
  --forest:  #2d4a35;
  --sage:    #5a7d5e;
  --meadow:  #7aaa7a;
  --cream:   #f5f0e8;
  --parchment: #ede5d5;
  --earth:   #7a5230;
  --bark:    #4e3520;
  --straw:   #d6c48a;
  --moss:    #3d5c3f;
  --mist:    #e8ede5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--cream);
  color: var(--forest);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ── NAVIGATION ── */
.nav-link {
  position: relative;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active {
  color: var(--sage);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ── LOGO ── */
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--forest);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--moss);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,74,53,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--forest);
  padding: 11px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--forest);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--forest);
  color: #fff;
  transform: translateY(-1px);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--forest);
  color: #fff;
  padding: 18px 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.btn-download:hover {
  background: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45,74,53,0.3);
}

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2ddd5;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(45,74,53,0.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--mist);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--forest);
  flex-shrink: 0;
}

/* ── SECTION HEADERS ── */
.section-tag {
  display: inline-block;
  background: var(--mist);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── HERO ── */
.hero-bg {
  background: linear-gradient(145deg, var(--cream) 0%, #eae5d8 50%, var(--mist) 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(122,170,122,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(90,125,94,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── TRUST BADGES ── */
.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2ddd5;
}
.trust-icon {
  width: 46px; height: 46px;
  background: var(--mist);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--forest);
}

/* ── FAQ ACCORDION ── */
.faq-item {
  border-bottom: 1px solid #e2ddd5;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--forest);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--sage); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--sage);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.93rem;
  color: #4a5e4e;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 18px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 7px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d5cfc4;
  border-radius: 10px;
  background: #fff;
  color: var(--forest);
  font-size: 0.93rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90,125,94,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
footer {
  background: var(--forest);
  color: rgba(255,255,255,0.75);
}
footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
.footer-heading { color: rgba(255,255,255,0.95); font-weight: 600; margin-bottom: 12px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── VERSION BADGE ── */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mist);
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #c8d8c0;
}
.version-badge.current {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* ── CHECKSUM BOX ── */
.checksum-box {
  background: #f0ece4;
  border: 1px solid #ddd7cc;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #4a5e4e;
  word-break: break-all;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid #e2ddd5;
  margin: 40px 0;
}

/* ── STAT ── */
.stat-block {
  text-align: center;
  padding: 24px 16px;
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: #6b7e6d;
  margin-top: 6px;
}

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2ddd5;
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-size: 4rem;
  color: var(--mist);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ── CHANGELOG ── */
.changelog-entry {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e2ddd5;
}
.changelog-dot {
  width: 10px; height: 10px;
  background: var(--sage);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ── LEGAL PAGE ── */
.legal-link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2ddd5;
  text-decoration: none;
  color: var(--forest);
  transition: box-shadow 0.2s, transform 0.15s;
}
.legal-link-card:hover {
  box-shadow: 0 6px 24px rgba(45,74,53,0.1);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* ── UTILITIES ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.text-muted { color: #6b7e6d; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* ── SUCCESS MESSAGE ── */
.success-msg {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.93rem;
  margin-top: 16px;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e2ddd5;
  box-shadow: 0 -4px 24px rgba(45,74,53,0.1);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 0;
}
#cookie-banner.cb-visible {
  transform: translateY(0);
}
.cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cb-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #4a5e4e;
  line-height: 1.6;
  flex: 1;
  min-width: 260px;
}
.cb-link {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cb-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.cb-accept {
  background: var(--forest);
  color: #fff;
}
.cb-accept:hover { background: var(--moss); transform: translateY(-1px); }
.cb-decline {
  background: var(--mist);
  color: var(--forest);
}
.cb-decline:hover { background: #dde7d9; }
@media (max-width: 600px) {
  .cb-inner { flex-direction: column; }
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; text-align: center; }
}

/* ── AGE RATING BADGE ── */
.age-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--forest);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  user-select: none;
}

/* ── DOWNLOAD BADGE LARGE ── */
.age-rating-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2.5px solid rgba(255,255,255,0.5);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  user-select: none;
}

/* ── TESTIMONIAL DISCLAIMER ── */
.testimonial-disclaimer {
  font-size: 0.75rem;
  color: #9aae9c;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e8ede5;
  line-height: 1.5;
}
