/* Shared by the static answer pages in public/ (habit-tracker-*.html).
   Same palette and type as compare.html, which keeps its own inline copy. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  background: #F9F8F6; color: #1C1916;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
a { color: #58725B; }

/* top bar */
.topbar { border-bottom: 1px solid #EFEEED; background: #F2F0E9; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: Georgia, serif; font-size: 19px; font-weight: 900; letter-spacing: -.5px; color: #1C1916; text-decoration: none; }
.logo .g { color: #7A9E7E; }
.logo .d { color: #C4BFB7; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.langs a, .langs span {
  font-size: 12px; font-weight: 600; color: #5A5450; text-decoration: none;
  border: 1px solid #E5E3DF; border-radius: 6px; padding: 5px 10px;
}
.langs span { background: #fff; color: #1C1916; }

/* hero */
.hero { background: #F2F0E9; padding: 40px 0 44px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #6E6862; margin-bottom: 18px; }
h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: 31px; line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 20px; text-wrap: balance;
}
.answer {
  background: #fff; border: 1px solid #E5E3DF; border-left: 4px solid #7A9E7E;
  border-radius: 12px; padding: 18px 20px; font-size: 16px; color: #3A3532; max-width: 68ch;
}
.answer strong { color: #1C1916; }
.updated { font-size: 13px; color: #6E6862; margin-top: 18px; }

/* sections */
section { padding: 44px 0; }
section + section { border-top: 1px solid #EFEEED; }
h2 {
  font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: 24px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px;
}
h3 { font-size: 16px; font-weight: 800; margin: 22px 0 6px; }
p, li { font-size: 15px; color: #4A4542; }
p + p { margin-top: 12px; }
.sub { color: #6E6862; margin-bottom: 20px; max-width: 64ch; }
ul.list { padding-left: 20px; }
ul.list li + li { margin-top: 10px; }
ul.list strong, p strong { color: #1C1916; }

/* tables */
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #EFEEED; border-radius: 14px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid #F1EFEC; }
thead th { font-size: 12px; font-weight: 800; color: #1C1916; background: #F7F5F2; border-bottom: 1px solid #EFEEED; }
tbody th { font-weight: 700; color: #1C1916; }
td { color: #4A4542; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
.note { font-size: 13px; color: #6E6862; margin-top: 12px; max-width: 68ch; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid #EFEEED; border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; color: #1C1916; }
.faq details p { margin-top: 10px; }

/* cta */
.cta { background: #F2F0E9; text-align: center; }
.cta .sub { margin-left: auto; margin-right: auto; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #E5E3DF; border-radius: 999px; background: #fff;
  padding: 11px 20px; font-size: 14px; font-weight: 700; color: #4A4542; text-decoration: none;
}
.btn.primary { background: #58725B; border-color: #58725B; color: #fff; }
.freeline { font-size: 13px; color: #6E6862; margin-top: 16px; }

/* footer */
footer { border-top: 1px solid #EFEEED; padding: 28px 0 44px; }
.foot { font-size: 12.5px; color: #6E6862; }
.foot + .foot { margin-top: 8px; }
.foot a { color: #5A5450; }

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 60px 0 64px; }
  h1 { font-size: 42px; }
  section { padding: 60px 0; }
  h2 { font-size: 30px; }
}
