/* Landing page and login (server-rendered). Colours match the web app (Nuxt UI: green primary, zinc neutral). */
:root {
  --primary: #16a34a; --primary-dark: #15803d; --text: #18181b; --muted: #52525b; --border: #e4e4e7;
  --bg: #ffffff; --bg-soft: #f4f4f5; --error: #dc2626; --radius: 0.75rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 106.25%; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 2rem 1rem; }
a { color: var(--primary); }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header nav { display: flex; gap: 0.5rem; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand-mark { width: 1.9rem; height: 1.9rem; color: var(--primary); }
.site-footer { text-align: center; padding: 1.5rem; color: var(--muted); font-size: 0.875rem; }
form.inline { display: inline; }

.button { display: inline-block; border: 0; border-radius: var(--radius); padding: 0.6rem 1.1rem; background: var(--primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--primary-dark); }
.button-ghost { background: transparent; color: var(--text); }
.button-ghost:hover { background: var(--bg-soft); }
.button-large { padding: 0.85rem 1.6rem; font-size: 1.1rem; }

.flash { max-width: 64rem; margin: 1rem auto 0; padding: 0.75rem 1rem; border-radius: var(--radius); background: #dcfce7; color: #14532d; }
.flash-alert { background: #fee2e2; color: #7f1d1d; }

.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1rem; line-height: 1.15; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 42rem; margin: 0 auto 2rem; }
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.feature { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--primary); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.feature-costs { border-top-color: #2563eb; }
.feature-automatic { border-top-color: #eab308; }
.feature h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); }

.card { background: var(--bg); border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }
.login { max-width: 24rem; margin: 2rem auto; }
.login h1 { margin-top: 0; }
.login form { display: flex; flex-direction: column; gap: 0.5rem; }
.login label { font-weight: 600; margin-top: 0.5rem; }
.login input[type=text], .login input[type=password] { font: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); }
.login input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.login .button { margin-top: 1rem; }
