/* =========================================================
   Leaf marketing site: dark theme
   Loaded after site.css. The footer's theme switch sets this stylesheet's `media`
   (see server/theme.js): System follows the OS, Dark always applies, Light never does.
   Colours follow the Leaf app's own dark theme.
   ========================================================= */

:root {
  color-scheme: dark;

  --canvas: #0d1612;
  --surface: #14211b;
  --subtle: #1d2f27;
  --line: #253a30;
  --line-strong: #355245;
  --text: #e6efe8;
  --muted: #9eb3a7;
  --soft: #789083;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);

  --accent: var(--mint-300);
  --accent-strong: #8ed1ad;
  --accent-deep: #e9f3ec;
  --tint: #163627;
  --tint-text: #7ad0a4;
  --primary: #2d6a4f;
  --primary-hover: #388261;
  --field: #0f1a15;
  --field-line-hover: #4a6b5b;
  --range-fill: #4ba177;
  --range-thumb: #6ab990;
}

/* Colours used once in site.css, overridden here rather than given a variable each. */
.browser-bar .dot { background: var(--line-strong); }
.switch { background: var(--line-strong); }
.module[aria-pressed='true'] { background: linear-gradient(180deg, var(--surface), #1c362a); }
.module.is-custom[aria-pressed='true'] { background: linear-gradient(180deg, var(--surface), #2a2312); }
.tag-custom { background: #332710; color: #f3c464; }
.ai-visual::before { opacity: 0.4; }

.input::placeholder { color: #6a8276; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374c69d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.field-error { color: #f09585; }
.field.has-error .input { border-color: #d66a55; }
.form-alert { background: #361c19; color: #f09585; }

/* The always-dark cards and footer now sit on a dark page, so a faint edge keeps them distinct. */
.module-summary,
.price-card { box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.cta-band,
.aside-price { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.site-footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
