/* Evado — launch / coming-soon page
   Configurable bits (photo grade, atmospheric veil) are exposed as custom
   properties so app.js can drive them from the CONFIG object. */
:root {
  --ink: #191c19;
  --paper: #fafaf9;
  --cta-text: #154212;

  /* Photo grade — set by CONFIG.photoGrade */
  --photo-grade: saturate(0.92) brightness(0.94) contrast(1.03);

  /* Atmospheric veil (radial halo) — set by CONFIG.veilIntensity */
  --halo-in: 0.56;
  --halo-mid: 0.30;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero shell + atmospheric layers ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.hero__photo,
.hero__halo,
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__photo {
  /* Real hero image over a forest-toned fallback gradient: if the webp is
     missing the gradient shows through, so the page never renders flat. */
  background:
    url("uploads/hero-bg.webp") center 42% / cover no-repeat,
    linear-gradient(160deg, #2a3a26 0%, #1a241a 45%, #11160f 100%);
  filter: var(--photo-grade);
}

.hero__halo {
  background: radial-gradient(
    ellipse 62% 56% at 50% 52%,
    rgba(8, 16, 8, var(--halo-in)) 0%,
    rgba(8, 16, 8, var(--halo-mid)) 48%,
    rgba(8, 16, 8, 0.12) 100%
  );
}

.hero__veil {
  background: linear-gradient(
    180deg,
    rgba(8, 16, 8, 0.30) 0%,
    rgba(8, 16, 8, 0) 24%,
    rgba(8, 16, 8, 0) 78%,
    rgba(8, 16, 8, 0.40) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 38px clamp(24px, 5vw, 72px) 46px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lang {
  display: flex;
  gap: 14px;
}

.lang__btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.lang__btn:hover { color: rgba(255, 255, 255, 0.8); }

.lang__btn.is-active {
  color: #ffffff;
  font-weight: 700;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* ---------- Centerpiece ---------- */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand__mark {
  display: inline-block;
  width: 26px;
  height: 35px;
  background: var(--paper);
  -webkit-mask: url("assets/logo-mark.svg") center / contain no-repeat;
  mask: url("assets/logo-mark.svg") center / contain no-repeat;
}

.brand__name {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 28px;
  color: var(--paper);
}

.brand__rule {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
}

.headline {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-size: clamp(40px, 5.2vw, 64px);
  color: var(--paper);
  margin: 0 0 20px;
  max-width: 740px;
  text-wrap: balance;
}

.sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 34px;
  max-width: 540px;
}

/* ---------- Email capture ---------- */
.capture {
  width: 100%;
  max-width: 480px;
}

.signup__field {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.signup__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  text-align: left;
}

.signup__input::placeholder {
  color: inherit;
  opacity: 0.55;
}

.signup__btn {
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 13px 26px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--cta-text);
  background: var(--paper);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.signup__btn:hover { opacity: 0.9; }

.signup[aria-busy="true"] .signup__btn { opacity: 0.6; cursor: progress; }

.signup__note {
  margin: 13px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.signup__error {
  margin: 13px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #ffd2cc;
}
.signup__error[hidden] { display: none; }

.success {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 16px 26px;
}

.success__check { flex: none; }

/* ---------- Footer ---------- */
.contact {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.contact__link {
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

[hidden] { display: none !important; }
