/* Gardeneer landing — tokens */
:root {
  --paper: #f3f5ec;
  --card: #fdfdf9;
  --ink: #1d2418;
  --ink-2: #4c5544;
  --haze: #79816d;
  --leaf: #2f6b2f;
  --leaf-deep: #24541f;
  --frost: #2f5f9e;
  --frost-soft: #e5edf7;
  --sun: #b8860b;
  --line: rgba(29, 36, 24, 0.14);
  --radius: 12px;
  --display: "Literata", "Palatino Linotype", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.shell { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; font-weight: 700; margin: 14px 0 18px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 600; margin: 0 0 22px; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 14px; }

a { color: var(--leaf-deep); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--haze); font-weight: 700; margin: 0;
}
.fine { font-size: 0.82rem; color: var(--haze); margin: 10px 0 0; }

/* buttons */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); }
.btn-outline { border-color: var(--leaf); color: var(--leaf-deep); background: transparent; }
.btn-outline:hover { background: rgba(47, 107, 47, 0.08); }
.btn-ghost { color: var(--leaf-deep); background: transparent; padding: 9px 16px; }
.btn-ghost:hover { background: rgba(47, 107, 47, 0.08); }
.btn-wide { width: 100%; border: none; }
.link-quiet { color: var(--ink-2); text-decoration: none; font-weight: 600; align-self: center; }
.link-quiet:hover { color: var(--leaf-deep); }

/* topbar */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
}
.wordmark::first-letter { color: var(--leaf); }
.wordmark-sm { font-size: 1.05rem; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.hero-ctas { display: flex; gap: 20px; margin: 24px 0 14px; flex-wrap: wrap; }
.hero-note { font-size: 0.88rem; color: var(--haze); max-width: 42ch; }

/* hero demo: prognoza -> zadania */
.hero-demo { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.forecast {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 10px;
}
.f-day { text-align: center; border-radius: 8px; padding: 6px 2px; }
.f-day span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--haze); }
.f-day b { font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.f-alert { background: var(--frost-soft); }
.f-alert span, .f-alert b { color: var(--frost); }

.alert-card {
  background: var(--card); border: 1px solid var(--line); border-left-width: 4px;
  border-radius: var(--radius); padding: 14px 18px;
  opacity: 0; transform: translateY(10px);
  animation: rise .5s ease forwards;
}
.a-frost { border-left-color: var(--frost); animation-delay: .15s; }
.a-spray { border-left-color: var(--leaf); animation-delay: .35s; }
.a-water { border-left-color: var(--sun); animation-delay: .55s; }
.a-when { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--haze); }
.a-frost .a-when { color: var(--frost); }
.a-spray .a-when { color: var(--leaf); }
.a-water .a-when { color: var(--sun); }
.a-what { margin-top: 4px; font-size: 0.98rem; }

@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .alert-card { animation: none; opacity: 1; transform: none; }
}

/* features */
.features { padding: 56px 0; background: var(--card); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* how */
.how { padding: 56px 0; }
.steps { margin: 0; padding-left: 22px; max-width: 62ch; }
.steps li { margin-bottom: 12px; color: var(--ink-2); }
.steps b { color: var(--ink); }

/* pricing */
.pricing { padding: 56px 0 64px; background: var(--card); border-block: 1px solid var(--line); }
.pricing-sub { color: var(--ink-2); margin-bottom: 30px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 8px;
}
.price-featured { border: 2px solid var(--leaf); background: #f6f9f0; position: relative; }
.badge {
  position: absolute; top: -12px; left: 22px;
  background: var(--leaf); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px;
}
.price b { font-family: var(--display); font-size: 2.1rem; font-weight: 700; }
.price span { color: var(--haze); }
.price-card ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.price-card li { margin-bottom: 6px; }

/* signup */
.signup { padding: 64px 0; }
.signup-in { max-width: 620px; }
#signup-form { display: flex; flex-direction: column; gap: 18px; }
.variant-row { display: flex; gap: 10px; border: none; margin: 0; padding: 0; flex-wrap: wrap; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; inset: 0; }
.variant span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--line); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  background: var(--card);
}
.variant em { font-style: normal; color: var(--haze); font-weight: 400; }
.variant input:checked + span { border-color: var(--leaf); background: #eef4e4; }
.variant input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.field span { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 11px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
.field input:focus, .field select:focus { outline: 3px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-msg { min-height: 1.4em; font-weight: 600; margin: 0; }
.form-msg.ok { color: var(--leaf-deep); }
.form-msg.err { color: #a33131; }

/* faq */
.faq { padding: 0 0 64px; }
.faq dl { max-width: 62ch; }
.faq dt { font-weight: 700; font-family: var(--display); margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; color: var(--haze); font-size: 0.9rem; flex-wrap: wrap; gap: 8px; }

/* responsive */
@media (max-width: 860px) {
  .hero { padding: 40px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: 1fr; gap: 22px; }
  .price-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
