/* Brand unification layer — the homepage design system, made shareable.
   Tokens and primitives extracted from index.html (the reference page).
   Pages adopt this with one <link> after their legacy stylesheets; the
   cascade does the rest. Keep it visual-only: no layout breakage, no
   markup contract changes (tests depend on existing classes/ids). */

:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #0d1510;
  --body: #4e5d53;
  --muted: #7b8a80;
  --line: #e0e7e0;
  --line-strong: #cbd6cd;
  --accent: #146b45;
  --accent-dark: #0f4f33;
  --accent-soft: #e6f2ea;
  --gold: #b9852f;
  --radius: 18px;
  /* legacy aliases: pages built on ks.css/sunflower.css consume these */
  --go: #146b45; --go-ink: #ffffff;
  --green: #146b45; --green2: #0f4f33; --blue: #146b45;
  --ok: #146b45;
  --r: 10px;
  --max: 1160px;
  --shadow: 0 26px 70px rgba(13, 21, 16, .12);
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -.02em;
}

/* Header — identical to the homepage */
header.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 247, 244, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
header.nav .nav-in {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
header.nav .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink) !important;
  font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
header.nav .brand img { width: 32px; height: 32px; }
header.nav .nav-links {
  display: flex; align-items: center; gap: 24px;
  color: #405046; font-weight: 600; font-size: .9rem;
}
header.nav .nav-links a { color: inherit; text-decoration: none; }
header.nav .nav-links a:hover { color: var(--accent); }
header.nav .nav-actions { display: flex; align-items: center; gap: 16px; }
header.nav .nav-admin {
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); padding: 7px 10px; border-radius: 6px;
}
header.nav .nav-admin:hover { color: var(--accent); border-color: var(--line-strong); }
header.nav .phone {
  color: var(--accent); font-weight: 700; font-size: .9rem;
  text-decoration: none; border-bottom: 1px solid rgba(20, 107, 69, .3);
}
@media (max-width: 860px) {
  header.nav .nav-in { height: auto; min-height: 64px; flex-wrap: wrap; padding: 8px 18px; }
  header.nav .nav-links { display: none; }
  header.nav .phone { display: none; }
  header.nav .nav-actions { gap: 8px; }
}

/* Buttons — homepage pills */
.btn, .btn-primary, .btn-secondary, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; font-family: Inter, system-ui, sans-serif;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary, .btn--primary {
  background: var(--accent) !important; color: #fff !important;
}
.btn-primary:hover, .btn--primary:hover { background: var(--accent-dark) !important; }

/* Eyebrow labels — replace the old mono-caps look */
.eyebrow, .section__eyebrow {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--accent);
}

/* Generic cards and inputs in brand */
.card, .panel, .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
input, select, textarea {
  font-family: Inter, system-ui, sans-serif;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 0;
  border-color: var(--accent);
}

/* Footer — same family as the homepage */
footer {
  background: var(--ink);
  color: #b9c8bd;
}
footer a { color: #d9e4dc; }
footer a:hover { color: #fff; }

/* ---- Pricing page (pilot) — wins the cascade war against ks/sunflower ---- */
body.sunflower-public { background: var(--bg) !important; }
body.sunflower-public h1,
body.sunflower-public h2,
body.sunflower-public h3,
body.sunflower-public h5 {
  font-family: Manrope, system-ui, sans-serif !important;
  letter-spacing: -.02em !important;
}
body.sunflower-public .btn,
body.sunflower-public .nav-cta,
body.sunflower-public .path__buy {
  border-radius: 999px !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
body.sunflower-public .btn:hover,
body.sunflower-public .nav-cta:hover,
body.sunflower-public .path__buy:hover { background: var(--accent-dark) !important; }
body.sunflower-public .btn-outline,
body.sunflower-public .btn--ghost {
  background: var(--surface) !important;
  color: var(--accent) !important;
  border-color: var(--line-strong) !important;
}
body.sunflower-public .eyebrow,
body.sunflower-public .path__k,
body.sunflower-public .path__phase {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: .7rem !important; letter-spacing: .18em !important;
  text-transform: uppercase !important; font-weight: 700 !important;
  color: var(--accent) !important;
}
body.sunflower-public .path__rung {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  transition: box-shadow .2s, transform .2s !important;
}
body.sunflower-public .path__rung:hover { box-shadow: var(--shadow) !important; }
body.sunflower-public .path__rung--sel { border-color: var(--accent) !important; }
body.sunflower-public .path__price { font-family: Manrope, sans-serif !important; color: var(--ink) !important; }
body.sunflower-public .path__items span {
  background: var(--surface-2) !important; color: var(--body) !important;
  border-radius: 999px !important; border: 1px solid var(--line) !important;
}
body.sunflower-public .byo__cart {
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important; box-shadow: var(--shadow) !important;
}
body.sunflower-public input, body.sunflower-public textarea {
  border: 1px solid var(--line-strong) !important; border-radius: 10px !important;
  background: var(--surface) !important; color: var(--ink) !important;
}
body.sunflower-public footer { background: var(--ink) !important; }

/* ---- Signup form (start.html) ---- */
body.sunflower-public .lab {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: .7rem !important; letter-spacing: .14em !important;
  text-transform: uppercase !important; font-weight: 700 !important;
  color: var(--muted) !important;
}
body.sunflower-public .fld input,
body.sunflower-public .fld select,
body.sunflower-public .fld textarea {
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}
body.sunflower-public .fld input:focus,
body.sunflower-public .fld textarea:focus {
  border-color: var(--accent) !important;
  outline: 2px solid var(--accent-soft) !important;
}
body.sunflower-public .opt {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
}
body.sunflower-public .opt:has(:checked) {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}
body.sunflower-public .section__title { letter-spacing: -.02em !important; }

/* ---- Trade/SEO pages (210 generated) ---- */
body.sunflower-public .section--alt { background: var(--surface-2) !important; }
body.sunflower-public .mod {
  border-color: var(--line) !important;
  border-radius: 12px !important;
}
body.sunflower-public .mod:hover { border-color: var(--line-strong) !important; }
body.sunflower-public .price { font-family: Manrope, sans-serif !important; color: var(--ink) !important; }
body.sunflower-public .mtrade {
  background: var(--surface-2) !important; color: var(--body) !important;
  border: 1px solid var(--line) !important; border-radius: 999px !important;
}
body.sunflower-public .faq__item {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
}
body.sunflower-public .faq__q { font-family: Manrope, sans-serif !important; color: var(--ink) !important; }
body.sunflower-public a { color: var(--accent); }
body.sunflower-public .ix a { color: var(--accent) !important; }

/* ---- Customer panel (console) ---- */
body.sunflower-console {
  background: var(--bg) !important;
  font-family: Inter, system-ui, sans-serif !important;
}
body.sunflower-console h1, body.sunflower-console h2, body.sunflower-console h3 {
  font-family: Manrope, system-ui, sans-serif !important;
  letter-spacing: -.02em !important;
}
body.sunflower-console .btn, body.sunflower-console button[type="submit"] {
  border-radius: 999px !important;
  background: var(--accent) !important; border-color: var(--accent) !important;
  color: #fff !important; font-weight: 700 !important;
}
body.sunflower-console .btn:hover { background: var(--accent-dark) !important; }
body.sunflower-console .card, body.sunflower-console .panel, body.sunflower-console .box,
body.sunflower-console section {
  border-radius: var(--radius) !important;
}
