:root {
  --bg: #fafaf7;
  --fg: #1d2330;
  --muted: #5b6475;
  --brand: #2f6f5e;
  --brand-fg: #ffffff;
  --card: #ffffff;
  --line: #e3e5ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f;
    --fg: #eceef2;
    --muted: #a3abba;
    --brand: #5fb89f;
    --brand-fg: #0f1a16;
    --card: #1c222c;
    --line: #2b3340;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
a { color: var(--brand); }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
nav a { margin-right: 16px; text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
main { padding: 40px 0 64px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 16px; }
h2 { margin-top: 36px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { margin-top: 0; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-fg); padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 24px 0; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* Keep the nav on one row; scroll sideways only as a last resort */
nav { display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; max-width: 100%; white-space: nowrap; }
nav a { margin-right: 0; }
@media (max-width: 480px) {
  nav { gap: 11px; font-size: 0.88rem; }
}
li{margin:4px 0}.card ul{padding-left:20px}
hr{border:0;border-top:1px solid var(--line);margin:20px 0}

.form { display: grid; gap: 16px; max-width: 560px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); width: 100%; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- Home page ---- */
.home main, main.home { padding-top: 0; }
.hero { display: grid; gap: 40px; align-items: center; padding: 72px 0 56px; background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); }
@media (min-width: 820px) { .hero { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; }
.hl { color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.flow { display: grid; justify-items: center; gap: 4px; }
.flow-step { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; width: min(100%, 320px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.flow-step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; font-weight: 700; }
.flow-step b { font-size: 1.15rem; }
.flow-step small { color: var(--muted); }
.flow-arrow { color: var(--brand); font-size: 1.3rem; line-height: 1; }
.steps { margin-top: 8px; }
.card.step { display: flex; flex-direction: column; border-top: 3px solid var(--brand); transition: transform .15s ease, box-shadow .15s ease; }
.card.step:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.card.step .num { color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .08em; }
.card.step h3 { color: var(--brand); margin: 6px 0 10px; font-size: 1.3rem; }
.card.step p { margin: 0 0 20px; }
.card.step .more { margin-top: auto; text-decoration: none; font-weight: 600; }
.card.step .more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .card.step { transition: none; } .card.step:hover { transform: none; } }

/* Home buttons: both outlined with a brand-coloured border */
.actions .btn, .actions .btn-outline { background: transparent; color: var(--fg); border: 1.5px solid var(--brand); }
.actions .btn:hover, .actions .btn-outline:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); border-color: var(--brand); }

/* All buttons site-wide: outlined */
.btn, button.btn { background: transparent; color: var(--fg); border: 1.5px solid var(--brand); }
.btn:hover, button.btn:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.form button { border: 1.5px solid var(--brand); }

/* Home cards: no movement on hover, just a green border highlight */
.card.step { transition: border-color .15s ease; }
.card.step:hover { transform: none; box-shadow: none; border-color: var(--brand); }

/* Button text keeps its colour on hover */
.btn:hover, button.btn:hover, .btn-outline:hover, .actions .btn:hover, .actions .btn-outline:hover { color: var(--fg); }

/* Sign in / Register link in the nav */
nav a.nav-cta { color: var(--fg); border: 1.5px solid var(--brand); border-radius: 8px; padding: 2px 12px; }
nav a.nav-cta:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--fg); }
@media (max-width: 480px) { nav a.nav-cta { padding: 2px 8px; } }
