:root {
  --bg: #f7f5ef;
  --fg: #1d1d1f;
  --muted: #5b5b5f;
  --accent: #14321f;
  --accent-soft: #e8efe9;
  --line: #e3ddcd;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--fg); letter-spacing: -0.2px; }
.brand span { color: var(--accent); }
nav.main a { margin-left: 22px; text-decoration: none; color: var(--muted); font-size: 15px; }
nav.main a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .app-icon { width: 128px; height: 128px; border-radius: 28px; margin-bottom: 24px; box-shadow: 0 12px 32px rgba(20,50,31,.15); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: 16px;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #1d4a2e; }
.btn.ghost { border: 1.5px solid var(--accent); color: var(--accent); margin-left: 12px; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title { font-size: 28px; margin: 0 0 8px; text-align: center; letter-spacing: -0.3px; }
p.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

/* App cards (home) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start;
}
.card img.icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; flex: 1; }
.card .tag { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.card a.more { font-weight: 600; text-decoration: none; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
section.alt .feature { background: var(--bg); }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }

/* Free vs Pro table */
table.plans { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
table.plans th, table.plans td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; }
table.plans th { background: var(--accent-soft); font-size: 15px; }
table.plans td.yes { color: var(--accent); font-weight: 600; }
table.plans td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16.5px; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

/* Prose pages (legal) */
main.prose { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
main.prose h1 { font-size: 30px; margin: 0 0 6px; }
main.prose h2 { font-size: 19px; margin: 32px 0 6px; }
main.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
main.prose p { margin: 8px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--accent); }

@media (max-width: 600px) {
  nav.main a { margin-left: 14px; font-size: 14px; }
  .hero { padding: 48px 0 40px; }
  .btn.ghost { margin-left: 0; margin-top: 10px; }
}
