/* Selfhosted — public site. Single stylesheet, no external assets, mobile-first.
   Light mode by default. Forest-green brand per canopy-standards 02-marketing
   (no blue/purple). Served same-origin from nginx-redirect at the apex. */
:root {
  color-scheme: light;
  --forest-950: #0a1410;
  --forest-900: #0d3b1e;
  --forest-800: #14532d;
  --forest-600: #2a9d54;
  --cream: #f6f3ec;
  --paper: #fbfaf6;
  --line: #dfe8df;
  --muted: #607064;
  --amber: #f59e0b;
  --emerald: #10b981;
  --ink: #0a1410;
  --maxw: 72rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 20rem; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

/* ---------- header / footer (shared) ---------- */
.site-header {
  align-items: center; display: flex; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 246, 0.88); backdrop-filter: blur(10px);
}
.brand { align-items: center; display: flex; gap: 0.6rem; font-weight: 800; font-size: 1.05rem; }
.brand-mark {
  align-items: center; background: var(--forest-800); border-radius: 0.5rem;
  color: white; display: inline-flex; font-size: 0.8rem; font-weight: 800;
  height: 2rem; width: 2rem; justify-content: center;
}
nav.top { display: flex; align-items: center; gap: 0.4rem; }
nav.top a { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.7rem; border-radius: 0.5rem; }
nav.top a:hover { color: var(--ink); }
nav.top a.cta { color: var(--forest-800); border: 1px solid var(--line); border-radius: 999rem; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; margin-top: 4rem; }
.site-footer .wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.75rem clamp(1rem, 4vw, 4rem);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: space-between; }
.site-footer nav a { color: var(--muted); margin-right: 1rem; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  align-items: center; display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
}
.eyebrow { color: var(--forest-600); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  margin: 0 0 0.75rem; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.0; margin-bottom: 1.25rem; }
.lede { color: var(--muted); font-size: 1.25rem; line-height: 1.5; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.button { align-items: center; border-radius: 0.5rem; display: inline-flex; font-weight: 700;
  min-height: 3rem; padding: 0 1.25rem; }
.primary { background: var(--forest-800); color: white; }
.primary:hover { background: var(--forest-900); }
.secondary { background: white; border: 1px solid var(--line); color: var(--forest-800); }
.secondary:hover { border-color: var(--forest-600); }

/* ---------- product window mockup ---------- */
.product-window { background: white; border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 1.5rem 5rem rgba(10, 20, 16, 0.14); overflow: hidden; }
.window-bar { align-items: center; background: #f0eee8; display: flex; gap: 0.5rem; height: 2.5rem; padding: 0 1rem; }
.window-bar span { border-radius: 50%; display: block; height: 0.7rem; width: 0.7rem; }
.window-bar span:nth-child(1) { background: #ef4444; }
.window-bar span:nth-child(2) { background: #f59e0b; }
.window-bar span:nth-child(3) { background: #22c55e; }
.product-panel { background: var(--forest-950); color: white; padding: 1.75rem; }
.panel-label { color: #9fb6a5; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  margin-bottom: 0.5rem; text-transform: uppercase; }
.product-panel h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.product-panel p { color: #c9d8ce; line-height: 1.45; margin-bottom: 1.25rem; }
.product-panel dl { display: grid; gap: 0.75rem; grid-template-columns: repeat(3, 1fr); margin: 0; }
.product-panel dt { color: #9fb6a5; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.product-panel dd { margin: 0.25rem 0 0; font-weight: 600; }
/* email-list mockup rows */
.maillist { display: grid; gap: 0.6rem; }
.mailrow { background: rgba(255,255,255,0.06); border-radius: 0.5rem; padding: 0.7rem 0.85rem; }
.mailrow .from { font-weight: 700; font-size: 0.95rem; }
.mailrow .subj { color: #c9d8ce; font-size: 0.85rem; }

/* ---------- products grid ---------- */
.products { max-width: var(--maxw); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 4rem) 1rem; }
.products h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.products .sub { color: var(--muted); margin-bottom: 1.75rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1rem; }
.product-card { background: white; border: 1px solid var(--line); border-radius: 0.875rem; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem; transition: border-color .15s, transform .15s; }
.product-card:hover { border-color: var(--forest-600); transform: translateY(-2px); }
.product-card .ico { align-items: center; background: var(--cream); border: 1px solid var(--line);
  border-radius: 0.6rem; display: inline-flex; height: 2.75rem; width: 2.75rem; justify-content: center;
  font-size: 1.2rem; color: var(--forest-800); }
.product-card h3 { font-size: 1.2rem; margin: 0.25rem 0 0; }
.product-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin: 0; flex: 1; }
.product-card .more { color: var(--forest-800); font-weight: 700; font-size: 0.9rem; }
.product-card.featured { border-color: var(--forest-600); box-shadow: 0 1rem 3rem rgba(10,20,16,0.08); }
.tag { align-self: flex-start; background: #dcfce7; color: var(--forest-800); border-radius: 999rem;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; text-transform: uppercase; }

/* ---------- feature band (product pages) ---------- */
.band { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 1fr);
  max-width: var(--maxw); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 4rem) 3rem; }
.section-copy h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -0.01em; line-height: 1.05; }
.section-copy p { color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.feature-grid { display: grid; gap: 1rem; }
.feature-grid article { background: white; border: 1px solid var(--line); border-radius: 0.6rem; padding: 1.25rem; }
.feature-grid article h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.feature-grid article p { color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- enterprise service entry ---------- */
.enterprise-entry {
  align-items: center; display: grid; min-height: calc(100vh - 4.5rem);
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
}
.enterprise-entry h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; margin-bottom: 1rem; }
.enterprise-actions { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 14rem)); margin-top: 2rem; }
.enterprise-actions .button { justify-content: center; }

/* ---------- legal / doc pages (light) ---------- */
/* back-compat header/footer used by privacy/terms/support/delete-account */
header.site { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 246, 0.88); backdrop-filter: blur(10px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; max-width: var(--maxw); }
header.site .brand { font-size: 1.05rem; }
.brand .dot { width: 0.75rem; height: 0.75rem; border-radius: 0.25rem; background: var(--forest-800); display: inline-block; }
nav.site a { color: var(--muted); margin-left: 1.1rem; font-size: 0.9rem; }
nav.site a:hover { color: var(--ink); }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; margin-top: 3rem; padding: 1.5rem 0; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: space-between; max-width: var(--maxw); }
footer.site nav a { color: var(--muted); margin-right: 1rem; }
footer.site nav a:hover { color: var(--ink); }

.wrap { max-width: 48rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
main.doc { padding: 2.5rem 0 4rem; }
main.doc h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
main.doc .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }
main.doc h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
main.doc p, main.doc li { color: #2b3a30; line-height: 1.65; }
main.doc a { color: var(--forest-800); text-decoration: underline; }
main.doc ul { padding-left: 1.4rem; }
main.doc .box { background: var(--cream); border: 1px solid var(--line); border-radius: 0.6rem; padding: 1rem 1.1rem; margin: 1.1rem 0; }

@media (max-width: 58rem) {
  .hero, .band { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .site-header { gap: 0.75rem; }
  nav.top a { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
  .hero h1 { font-size: 2.25rem; }
  .enterprise-actions { grid-template-columns: 1fr; }
  .product-panel dl { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
