:root {
  --bm-green: #299E52;
  --bm-green-dark: #146633;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #111418;
  --text-muted: #5B6470;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1115;
    --surface: #161B22;
    --text: #F2F4F7;
    --text-muted: #9AA4B2;
    --border: #2A3038;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--bm-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: #5DD08A; } }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 48px;
}
.hero .logo {
  width: clamp(120px, 24vw, 180px);
  height: auto;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  margin: 0;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  margin-top: 12px;
}

section { padding: 40px 0; text-align: center; }
section + section { border-top: 1px solid var(--border); }

/* About */
.about p { font-size: 1.05rem; max-width: 64ch; margin-left: auto; margin-right: auto; }
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 12px auto 0;
  max-width: 64ch;
  box-shadow: var(--shadow);
}

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.screens-grid figure {
  margin: 0;
  text-align: center;
}
.screens-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.screen-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  background-image: url("logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38% auto;
  box-shadow: var(--shadow);
  opacity: .9;
}
.screens-grid figcaption {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--text-muted);
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.trust-grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.trust-grid p { color: var(--text-muted); margin: 0; }

/* Contact */
.contact { padding-bottom: 80px; }
.contact > p { max-width: 64ch; margin-left: auto; margin-right: auto; }
#contact-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 16px auto 0;
  text-align: left;
}
#contact-form label { display: grid; gap: 6px; font-size: .92rem; color: var(--text-muted); }
#contact-form input, #contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}
#contact-form input:focus, #contact-form textarea:focus {
  outline: 2px solid var(--bm-green);
  outline-offset: 1px;
  border-color: var(--bm-green);
}
#contact-form .cf-turnstile { display: flex; justify-content: center; }
#contact-form button {
  justify-self: center;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bm-green), var(--bm-green-dark));
  color: #fff;
  cursor: pointer;
  transition: transform .05s ease;
}
#contact-form button:hover { filter: brightness(1.05); }
#contact-form button:active { transform: translateY(1px); }
#contact-form button:disabled { opacity: .55; cursor: not-allowed; }
.form-status { min-height: 1.4em; font-size: .92rem; margin: 0; text-align: center; }
.form-status.success { color: var(--bm-green-dark); }
.form-status.error { color: #B42318; }
@media (prefers-color-scheme: dark) {
  .form-status.success { color: #5DD08A; }
  .form-status.error { color: #F97066; }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 28px 24px 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
}
footer nav { margin-top: 8px; }
footer nav a { color: var(--text-muted); margin: 0 6px; }
footer nav a:hover { color: var(--text); }

/* Generic doc page */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.doc h1 { font-size: 2rem; margin: 0 0 8px; }
.doc .updated { color: var(--text-muted); margin-bottom: 32px; font-size: .95rem; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc .back { display: inline-block; margin-bottom: 24px; font-size: .9rem; }
