/* Public home page and shared chrome of the /download page. Same fonts and palette as the app (styles.css). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/nunito-500.woff2") format("woff2"), url("/fonts/nunito-500.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-700.woff2") format("woff2"), url("/fonts/nunito-700.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-800.woff2") format("woff2"), url("/fonts/nunito-800.ttf") format("truetype"); }

:root {
  color-scheme: light dark;
  --bg: #f4f8fb;
  --panel: #ffffff;
  --panel-2: #e8f0f5;
  --text: #0e2233;
  --muted: #475f70;
  --link: #844d0a;
  --btn: #6c3d0b;
  --btn-text: #ffffff;
  --border: #c5d6e1;
  --focus: #844d0a;
  --shadow: 0 6px 20px #0a223514;
  --radius: 12px;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1620;
    --panel: #142433;
    --panel-2: #1a3040;
    --text: #f0f6fa;
    --muted: #9db4c2;
    --link: #dea762;
    --btn: #6c3d0b;
    --focus: #dea762;
    --border: #2a4558;
    --shadow: 0 10px 28px #0006;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
ul, ol { margin: 0; padding: 0; }

.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; max-width: 64rem; margin: 0 auto; padding: 1rem 1rem .5rem; }
.site-brand { display: inline-block; min-height: 2.75rem; }
.site-brand img { display: block; height: 2rem; width: auto; max-width: 100%; }
.site-lang ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .25rem; }
.site-lang a { display: inline-block; padding: .6rem .6rem; min-height: 2.75rem; text-decoration: none; border-radius: 8px; font-size: .9rem; }
.site-lang a[aria-current] { font-weight: 800; background: var(--panel-2); color: var(--text); }
.site-footer { max-width: 64rem; margin: 2rem auto 0; padding: 1rem; color: var(--muted); font-size: .9rem; }
.site-footer a { display: inline-block; padding: .5rem 0; }

.home-main, .dl-main { max-width: 64rem; margin: 0 auto; padding: 1rem; }
.home-hero { padding: 2rem 0 1.5rem; max-width: 40rem; }
.home-intro { font-size: 1.15rem; color: var(--muted); }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.home-button, .dl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.4rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--btn); }
.home-primary, .dl-button { background: var(--btn); color: var(--btn-text); }
.home-secondary { background: transparent; color: var(--link); border-color: var(--link); }
.home-button:focus-visible, .dl-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.home-app a { font-weight: 700; display: inline-block; padding: .6rem 0; }
.home-version { color: var(--muted); font-size: .9rem; margin-left: .5rem; }
.home-features { padding-top: 1rem; }
.home-features ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.home-features li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.home-features li p { color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: no-preference) { .home-button, .dl-button { transition: filter .15s; } .home-button:hover, .dl-button:hover { filter: brightness(1.12); } }
