/* Habitron marketing site — shared styles */
:root {
  --bg: #F4F6F8;
  --bg-alt: #EAF7EF;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5A6B62;
  --text-dim: #9AA39C;
  --primary: #2DBE6F;
  --primary-dim: #1a9e5a;
  --border: #E5EDE8;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(45, 190, 111, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

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

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Nav */
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--primary);
  display: inline-block;
}
.nav-links { display: flex; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 16px;
  line-height: 1.1;
}
.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(45, 190, 111, 0.25);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 32px 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-emoji { font-size: 28px; margin-bottom: 8px; }
.feature h3 { font-size: 16px; margin: 4px 0 6px; }
.feature p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Long-form pages (privacy/terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.doc h1 { font-size: 36px; letter-spacing: -0.5px; margin: 16px 0 8px; }
.doc .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; color: var(--primary-dim); }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p, .doc ul { font-size: 15.5px; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }

/* Contact form */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.contact-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 6px;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #F8FAF9;
  color: var(--text);
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.contact-card textarea { min-height: 130px; resize: vertical; }
.contact-card button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.15s;
}
.contact-card button:hover { background: var(--primary-dim); }
.contact-card .msg-success { color: var(--primary); font-weight: 600; margin-top: 14px; }
.contact-card .msg-error { color: #D93B3B; font-weight: 600; margin-top: 14px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  padding: 32px 24px;
  margin-top: 60px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
footer a { margin: 0 8px; color: var(--text-muted); }

@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
}
