/* Mumble marketing site - tokens from DESIGN.md (dark theme, primary) */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}

:root {
  --bg: #14151A;
  --bg-deep: #0C0D11;
  --surface: #1E2027;
  --surface2: #262932;
  --hairline: #2C2F38;
  --text: #ECEAE6;
  --muted: #9A9AA2;
  --twinA: #6FD0C0;
  --twinB: #F0B68C;
  --asleep: #A99CE0;
  --done: #8FCBA0;
  --overdue: #E8836B;
  --r-card: 20px;
  --r-btn: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Nunito, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--twinA); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 40px;
  text-align: center;
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.twin-dots { display: inline-flex; gap: 5px; }
.twin-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block;
}
.twin-dots i:first-child { background: var(--twinA); }
.twin-dots i:last-child { background: var(--twinB); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.2px;
  margin: 40px 0 18px;
}

.hero .sub {
  font-size: 19px;
  color: var(--muted);
  font-weight: 600;
  max-width: 460px;
  margin: 0 auto;
}
.hero .sub strong { color: var(--text); font-weight: 700; }

/* ---------- signup form ---------- */

.signup {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px 22px;
  max-width: 460px;
  margin: 36px auto 0;
  text-align: left;
}

.signup .field { margin-bottom: 14px; }

.signup label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.signup input[type="email"],
.signup select {
  width: 100%;
  min-height: 52px;
  background: var(--surface2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  padding: 0 14px;
  appearance: none;
}
.signup select:invalid { color: var(--muted); }
.signup select option { color: var(--text); background: var(--surface2); }
.signup select option[value=""] { color: var(--muted); }

.signup input[type="email"]:focus,
.signup select:focus {
  outline: none;
  border-color: var(--twinA);
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin: 4px 0 16px;
}
.consent input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--twinA);
  flex-shrink: 0;
}

.signup button {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: var(--r-btn);
  background: var(--twinA);
  color: #10201C;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: opacity 200ms ease-out;
}
.signup button:disabled {
  background: var(--surface2);
  color: var(--muted);
  cursor: not-allowed;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
}

.form-msg {
  border-radius: var(--r-btn);
  padding: 16px;
  font-weight: 700;
  font-size: 16px;
  display: none;
}
.form-msg.ok {
  display: block;
  color: var(--done);
  background: rgba(143, 203, 160, 0.10);
}
.form-msg.err {
  display: block;
  color: var(--overdue);
  background: rgba(232, 131, 107, 0.10);
}
.signup.done form { display: none; }

/* ---------- screenshots ---------- */

.shots {
  padding: 64px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.shot {
  display: flex;
  align-items: center;
  gap: 32px;
}
.shot:nth-child(even) { flex-direction: row-reverse; }

.shot figure { flex-shrink: 0; }

.phone {
  width: 270px;
  background: var(--bg-deep);
  border: 1px solid #20222A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.phone img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

.shot .cap h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}
.shot .cap p { color: var(--muted); font-weight: 600; }
.shot .cap .quote {
  font-style: italic;
  color: var(--text);
}

/* ---------- story ---------- */

.story {
  margin: 72px 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--twinA) 0%, var(--twinA) 50%, var(--twinB) 50%, var(--twinB) 100%);
}
.story h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  margin-bottom: 16px;
}
.story p { color: var(--text); margin-bottom: 14px; }
.story p:last-of-type { margin-bottom: 0; }
.story .sig {
  color: var(--muted);
  font-weight: 700;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
footer .made {
  margin-bottom: 16px;
  color: var(--text);
}
footer .privacy {
  max-width: 520px;
  margin: 0 auto 16px;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .shot, .shot:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .shot .cap { max-width: 400px; }
}
