/* Roost HQ marketing site, design tokens lifted from the app's
   web/src/index.css (Meadow brand theme, light + dark). Keep these in sync
   with the app if the brand palette ever changes. */

:root {
  color-scheme: light;
  --bg: #eff4eb;
  --surface: color-mix(in srgb, var(--bg) 80%, var(--accent) 20%);
  --surface-raised: color-mix(in srgb, var(--bg) 88%, var(--accent) 12%);
  --border: rgba(78, 122, 76, 0.18);
  --text: #1c2e1c;
  --text-2: #5a7858;
  --text-muted: #7a9878;
  --accent: #4e7a4c;
  --accent-hover: #3e623d;
  --tag-bg: #d4ead0;
  --tag-text: #2c5228;
  --gold: #d4c06a; /* owl beak gold */
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111e11;
    --surface: #1c2e1c;
    --surface-raised: color-mix(in srgb, #1c2e1c 85%, white 15%);
    --border: rgba(146, 192, 144, 0.12);
    --text: #eff4eb;
    --text-2: #92c090;
    --text-muted: #4e7a4c;
    --accent: #6eaa6c;
    --accent-hover: #86c284;
    --tag-bg: #243824;
    --tag-text: #92c090;
  }
}

/* Pixel-owl coloring, same class scheme as the app's Logo.tsx/.owl-* rules
   so the mark recolors for dark mode instead of keeping light-theme hexes on
   a dark page. Pupils/beak stay fixed per the design handoff. */
.owl-body { fill: var(--accent); }
.owl-eye { fill: var(--bg); }
.owl-pupil { fill: #1c2e1c; }
.owl-beak { fill: var(--gold); }
.owl-tuft { fill: var(--accent-hover); }
.owl-belly { fill: var(--tag-bg); }
@media (prefers-color-scheme: dark) {
  .owl-body { fill: var(--text); }
  .owl-eye { fill: var(--accent); }
  .owl-pupil { fill: #111e11; }
  .owl-tuft { fill: var(--accent); fill-opacity: 0.4; }
  .owl-belly { fill: var(--accent); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand .hq { color: var(--accent); font-weight: 400; }
.brand svg { width: 1.75rem; height: 2rem; }

.site-nav { display: flex; gap: 1.15rem; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.btn { color: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.3rem;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.ghost:hover { background: var(--tag-bg); }

/* ---- hero ---- */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; }
.hero .owl { width: 7rem; height: 8rem; margin-bottom: 1rem; }
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero h1 .hq { color: var(--accent); font-weight: 400; }
.hero .tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-2);
  margin: 0 auto 1rem;
  max-width: 38rem;
}
.hero p.sub {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.hero .ctas { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* ---- sections ---- */
section.band { padding: 3.5rem 0; }
section.band.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  text-align: center;
}
p.section-sub {
  text-align: center;
  color: var(--text-2);
  margin: 0 auto 2.5rem;
  max-width: 40rem;
}

/* ---- feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.feature {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.35rem 1.25rem;
}
section.band.alt .feature { background: var(--bg); }
.feature .icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.6rem; }
.feature h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* ---- how it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.35rem 1.25rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* ---- contact form ---- */
.contact-card {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
}
.contact-card label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.contact-card input,
.contact-card textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  margin-bottom: 1rem;
}
.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-card textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.75rem; }
.form-result {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.form-result.ok { background: var(--tag-bg); color: var(--tag-text); }
.form-result.err { background: rgba(200, 92, 58, 0.15); color: #c85c3a; }
/* honeypot, hidden from humans, bots fill it */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---- document pages (privacy/terms/support) ---- */
.doc { max-width: 46rem; margin: 0 auto; padding: 3rem 0 4rem; }
.doc h1 { letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.doc .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.doc h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }

@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
  .hero { padding-top: 3rem; }
}
