:root {
  --bg: #ffffff;
  --text: #1c2430;
  --muted: #5a6573;
  --accent: #1f6f4a;
  --accent-text: #ffffff;
  --surface: #f3f6f4;
  --border: #d5ddd8;
  --notice: #fff7e0;
  --error: #a4261b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714;
    --text: #e6ece8;
    --muted: #a3b0a8;
    --accent: #5cc08d;
    --accent-text: #0d1410;
    --surface: #1c2420;
    --border: #2e3a33;
    --notice: #3a3320;
    --error: #ff8a7e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; }
.brand { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { text-decoration: none; color: var(--text); }
.site-nav a:hover { color: var(--accent); }

main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.button {
  display: inline-block; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; cursor: pointer; font-size: 1rem;
}
.button.secondary { background: transparent; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.three-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.three-up > div { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 16px 12px; }

.notice { background: var(--notice); border-radius: 6px; padding: 10px 14px; }
.error { color: var(--error); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.price-card { border: 1px solid var(--border); border-radius: 8px; padding: 4px 16px 16px; background: var(--surface); }
.price-card h3 { margin: 16px 0 4px; font-size: 1.05rem; }
.price { font-size: 1.6rem; font-weight: 700; margin: 0; }
.facilities { color: var(--muted); margin-top: 0; }

.licence-entry form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.licence-entry input { padding: 8px; min-width: min(100%, 24em); border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
button { font: inherit; }

.feature-section { border-top: 1px solid var(--border); padding-top: 8px; }
.feature-section .app { color: var(--muted); margin-top: 0; }

.screenshot { margin: 16px 0; }
.screenshot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; }
.screenshot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; padding: 12px 0; }
