@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #becc7d;
  --accent-dark: #5a6622;
  --accent-soft: #f2f5e1;
  --ink: #181010;
  --bg: #ffffff;
  --bg-alt: #f7f7f0;
  --fg: #181010;
  --muted: #6c6a5e;
  --border: #e8e7db;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(24, 16, 16, .04), 0 8px 24px rgba(24, 16, 16, .07);
  --radius: 16px;
  --maxw: 70ch;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3 { line-height: 1.25; color: var(--fg); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #49521b; text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 96px 0 72px;
  background:
    radial-gradient(900px 360px at 50% -10%, var(--accent-soft), transparent 70%);
}
.hero .pill {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Feature cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Transparency / data blurb ---------- */
.callout {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.callout h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.callout p { color: var(--muted); margin: 0 auto 20px; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: var(--ink);
  padding: 40px 0;
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: #fff; }

/* ---------- Legal documents ---------- */
.legal { padding: 56px 0 88px; }
.legal .doc { max-width: var(--maxw); margin: 0 auto; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 6px; letter-spacing: -.01em; }
.legal .subtitle { color: var(--muted); margin: 0 0 8px; font-size: .95rem; }
.legal h2 {
  font-size: 1.4rem;
  margin: 52px 0 14px;
  padding-top: 14px;
  scroll-margin-top: 80px;
}
.legal h3 { font-size: 1.1rem; margin: 32px 0 10px; scroll-margin-top: 80px; }
.legal p, .legal li { color: #33433b; }
.legal a { word-break: break-word; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin: 6px 0; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

.legal .toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 40px;
}
.legal .toc h2 { font-size: 1rem; margin: 0 0 12px; padding: 0; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legal .toc ol { margin: 0; padding-left: 1.2rem; }
.legal .toc li { margin: 5px 0; }

.legal .summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0;
}
.legal .summary p { margin: 0; color: #1f3a2c; }

.back-top { display: inline-block; margin-top: 40px; font-weight: 600; }

/* ---------- Error page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0;
  letter-spacing: -.03em;
}
.error-page h1 { margin: 8px 0 12px; font-size: 1.6rem; }
.error-page p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Migrated privacy notice (restyled Termly source) ---------- */
.termly { color: #33433b; line-height: 1.7; font-size: 1rem; }
.termly * { background: transparent !important; }
.termly span:not([data-custom-class]) { font-size: inherit !important; }

.termly [data-custom-class='title'],
.termly [data-custom-class='title'] * {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
  font-weight: 700;
  color: var(--fg) !important;
  letter-spacing: -.01em;
}
.termly [data-custom-class='subtitle'],
.termly [data-custom-class='subtitle'] * {
  color: var(--muted) !important;
  font-size: .95rem !important;
}
.termly [data-custom-class='heading_1'],
.termly [data-custom-class='heading_1'] * {
  display: block;
  font-size: 1.4rem !important;
  font-weight: 700;
  color: var(--fg) !important;
}
.termly [data-custom-class='heading_1'] { margin: 46px 0 0; padding-top: 8px; }
.termly [data-custom-class='heading_2'],
.termly [data-custom-class='heading_2'] * {
  display: block;
  font-size: 1.12rem !important;
  font-weight: 700;
  color: var(--fg) !important;
}
.termly [data-custom-class='heading_2'] { margin: 30px 0 0; }
.termly [data-custom-class='body_text'],
.termly [data-custom-class='body_text'] * {
  color: #33433b !important;
  font-size: 1rem !important;
}
.termly [data-custom-class='link'],
.termly [data-custom-class='link'] *,
.termly a {
  color: var(--accent-dark) !important;
  word-break: break-word;
}
.termly [id] { scroll-margin-top: 80px; }
.termly ul, .termly ol { padding-left: 1.4rem; margin: 8px 0; }
.termly li { margin: 6px 0; }
.termly .table-wrap { overflow-x: auto; margin: 14px 0 22px; }
.termly table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: .95rem;
}
.termly td, .termly th {
  border: 1px solid var(--border) !important;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.termly tr:first-child td { background: var(--bg-alt); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 18px; }
  .nav a { font-size: .9rem; }
  .hero { padding: 64px 0 52px; }
  section { padding: 56px 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
