/* FarmaPlus demo styles -- intentionally lightweight, no external deps */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --muted: #8a96a3;
  --line: #e2e8eb;
  --primary: #1f7a6f;
  --primary-ink: #ffffff;
  --primary-soft: #d8ebe7;
  --accent: #c98a4b;
  --danger: #b04545;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 30, 25, .04), 0 8px 24px rgba(15, 30, 25, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* Layout ------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand svg { display: block; }
.nav {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--primary); text-decoration: none; border-bottom-color: var(--primary-soft); }
.nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.header-cta {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.site-footer {
  background: #11211f;
  color: #c7d3d0;
  padding: 36px 24px;
  margin-top: 60px;
  font-size: 14px;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 { color: #f1f3f2; margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #9eb3af; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-fineprint { max-width: 1080px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid #2a3a37; font-size: 12px; color: #7e918d; }

/* Typography --------------------------------------------------------- */
h1, h2, h3 { color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: 36px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }

/* Cards & sections --------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 40px;
}
.hero-art {
  background: linear-gradient(135deg, var(--primary-soft), #f0e6d6);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 4px; }
.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

article.long-form { max-width: 68ch; }
article.long-form p { margin: 14px 0; }
article.long-form ul { padding-left: 22px; }
article.long-form li { margin: 6px 0; }
.byline { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; }
.kv dt { color: var(--ink-soft); font-weight: 500; }
.kv dd { margin: 0; }

/* Forms -------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 14px;
  max-width: 520px;
}
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #176158; }
.btn-secondary { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-secondary:hover { background: #eef2f1; }

/* Tables ------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #f0f4f3; color: var(--ink-soft); font-weight: 600; }

/* Consent banner ----------------------------------------------------- */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #11211f;
  color: #e6ecea;
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  z-index: 100;
  font-size: 14px;
}
.consent-text { flex: 1; min-width: 260px; line-height: 1.5; }
.consent-text a { color: #b9d4cf; text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn-primary { background: #f1f3f2; color: #11211f; }
.consent-actions .btn-primary:hover { background: #fff; }
.consent-actions .btn-secondary { color: #c7d3d0; border-color: #2a3a37; }
.consent-actions .btn-secondary:hover { background: #1a2c2a; }
.consent-actions [role=button] {
  background: #f1f3f2;
  color: #11211f;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

/* Misc --------------------------------------------------------------- */
.callout {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  color: var(--ink);
}
.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .nav { display: none; }
}
