/*
 * Brand tokens extracted from eono.space's own source (2026-09-04).
 * Font: 'Century Gothic' is the site's actual choice, but it's a licensed
 * Monotype font with no free web-embed — the source itself ships no
 * @font-face and just relies on it being installed (falling back to the
 * AppleGothic system font on Mac, generic sans elsewhere). For a real
 * webfont fallback here, Poppins is used as the closest freely-licensed
 * geometric sans. Swap for a licensed Century Gothic webfont file if one
 * is ever purchased.
 */

:root {
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --surface-muted: rgba(16, 24, 77, 0.04);
  --border: rgba(16, 24, 77, 0.1);

  --text-primary: #10184D;   /* headline navy */
  --text-body: #333333;
  --text-muted: #797791;

  --accent: #8EA53E;         /* olive green */
  --accent-light: #CBDD5E;   /* light lime */
  --accent-dark: #215126;    /* deep green */

  --danger: #B33A3A;         /* not brand-defined — added for form errors */

  --radius: 2px;              /* matches the site's own button radius */
  --radius-lg: 12px;          /* matches the site's own chat-bubble radius */

  --font: 'Century Gothic', 'Poppins', CenturyGothic, AppleGothic, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  line-height: 1.6;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

h1 {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

p.lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 15px;
}

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  margin-bottom: 1.1rem;
}

input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

button:hover:not(:disabled) {
  background: #1e2a6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 24, 77, 0.18);
}

button:disabled { opacity: 0.5; cursor: default; }

button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
button.secondary:hover:not(:disabled) {
  background: var(--surface-muted);
  box-shadow: none;
  transform: none;
}

.status {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 1rem;
}

.status.info { background: var(--surface-muted); color: var(--text-muted); }
.status.error { background: rgba(179, 58, 58, 0.08); color: var(--danger); }
.status.success { background: rgba(142, 165, 62, 0.1); color: var(--accent-dark); }

.hidden { display: none !important; }

.footer-note {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-note a { color: var(--accent); }

/* chat screen — mirrors eono.space's own chat easter-egg styling exactly */

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 0 1rem;
}

.bubble {
  align-self: flex-start;
  background: rgba(142, 165, 62, 0.08);
  color: #2D2D3D;
  border: 0.5px solid rgba(142, 165, 62, 0.2);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 88%;
}

.bubble.self {
  align-self: flex-end;
  background: rgba(16, 24, 77, 0.07);
  color: var(--text-primary);
  border: 0.5px solid rgba(16, 24, 77, 0.12);
  border-radius: var(--radius-lg) var(--radius-lg) 3px var(--radius-lg);
}

.activity {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.65rem;
  background: rgba(16, 24, 77, 0.06);
  border: 0.5px solid rgba(16, 24, 77, 0.08);
  border-radius: var(--radius-lg);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  width: fit-content;
}

.activity .tdots { display: flex; gap: 3px; }
.activity .tdots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: tdot 1.2s ease infinite;
}
.activity .tdots span:nth-child(2) { animation-delay: 0.2s; }
.activity .tdots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  margin-bottom: 0;
}

.chat-input-row button {
  width: auto;
  padding: 0 1.2rem;
}
