/* Project Maelis — public landing page.
   Palette copied directly from the app's dark theme (src/app.css) so the
   two surfaces feel like the same product without sharing any code. */

:root {
  --bg: #0a0e0c;
  --surface: #111714;
  --line: #24302a;
  --field-line: #526b5f;
  --text: #dde8e1;
  --muted: #85998d;
  --accent: #4faa82;
  --accent-bright: #8fd9b2;
  --accent-soft: #16261e;
  --accent-ink: #04160f;
  --danger: #d98fb0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: 8vh 1.5rem;
  text-align: center;
}

.logo {
  width: min(300px, 60vw);
  height: auto;
  display: block;
  /* If the exported asset's canvas doesn't already match --bg, this is the
     spot to add a matched background/padding so it reads as native rather
     than a pasted rectangle. Left plain until the real asset is in place. */
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-trigger {
  appearance: none;
  background: transparent;
  border: 1px solid var(--field-line);
  color: var(--accent);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 1.3em;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.contact-trigger:hover,
.contact-trigger:focus-visible {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: var(--accent-soft);
}

.contact-trigger:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ---- Contact modal ---- */

dialog#contact-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: min(600px, 85vh);
}

dialog#contact-dialog::backdrop {
  background: rgba(4, 8, 6, 0.72);
}

.dialog-inner {
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.dialog-close {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--text);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.field label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.6em 0.75em;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  border-color: var(--accent-bright);
}

.field textarea {
  min-height: 100px;
}

/* Honeypot: off-screen, not display:none, so unsophisticated bots that skip
   hidden fields still fill it in. Never shown or reachable by a real user. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.submit-btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-bright);
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.7em 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  border-color: var(--accent-bright);
  background: #1b2f24;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  margin: 0;
}

.form-status[data-state='ok'] {
  color: var(--accent-bright);
}

.form-status[data-state='error'] {
  color: var(--danger);
}

@media (max-width: 480px) {
  .logo {
    width: min(220px, 65vw);
  }
}
