:root {
  --msgreen: #2D6B58;
  --msgreen-dark: #1e4e3f;
  --msdark: #1a1a1a;
  --msgray: #555;
  --white: #fff;
  --bg-overlay: rgba(0, 0, 0, 0.52);
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--white);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--msgreen-dark);
  background-image: url("assets/bg-mountain.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  gap: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* Header / Logo */
.site-header {
  text-align: center;
}

.logo {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Hero */
.hero {
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.claim {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Newsletter */
.newsletter {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
}

.newsletter h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.newsletter p {
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
}

.input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

input[type="email"]::placeholder {
  color: rgba(255,255,255,.5);
}

input[type="email"]:focus {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  border-color: var(--white);
}

input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

button[type="submit"] {
  padding: 0.65rem 1.4rem;
  background: var(--msgreen);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

button[type="submit"]:hover {
  background: var(--msgreen-dark);
}

button[type="submit"]:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field-error {
  font-size: 0.85rem;
  color: #fca5a5;
  min-height: 1.2em;
}

.privacy-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  margin-top: 0.8rem;
  line-height: 1.5;
}

#form-message {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

#form-message.success {
  color: #86efac;
}

#form-message.error {
  color: #fca5a5;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.site-footer a {
  color: rgba(255,255,255,.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--white);
}

@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem 1.5rem;
    gap: 2rem;
  }

  .newsletter {
    padding: 1.5rem 1rem;
  }

  .input-row {
    flex-direction: column;
  }

  button[type="submit"] {
    width: 100%;
  }
}
