/*
 * 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;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

* { 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); }

/* top bar — appears on every screen */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.brand-mark {
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Placeholder for the real eono.space logo asset — swap the glyph span for
   an <img> once the file is provided. */
.brand-glyph {
  color: var(--accent);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.topbar-actions button.linklike {
  width: auto;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font);
  cursor: pointer;
}
.topbar-actions button.linklike:hover { color: var(--text-primary); box-shadow: none; transform: none; }

.brand-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
}

/* --- chat screen: monospace, row-based, matches the reference screenshot -- */

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.chat-header-left img.brand-icon { width: 22px; height: 22px; }
.chat-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chat-header-right .neo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-body);
}
.chat-header-right img.avatar-sm { width: 20px; height: 20px; border-radius: 50%; }
.dot-online {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1a9c5c;
  display: inline-block;
}
.chat-header-right .sep { color: var(--border); }
.chat-header-right button.linklike {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chat-title-block {
  font-family: var(--font-mono);
  padding: 1.5rem 0 1rem;
}
.chat-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.chat-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 4px;
}
.chat-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
}

.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.msg-row:last-child { border-bottom: none; }
.msg-row img.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.msg-body { flex: 1; min-width: 0; }
.msg-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.msg-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.msg-time { font-size: 11px; color: var(--text-muted); }
.msg-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-top: 0.5rem;
  position: relative;
}
.chat-input-row img.input-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.chat-input-row input {
  flex: 1;
  border: none;
  margin-bottom: 0;
  background: transparent;
  font-family: var(--font-mono);
  padding: 6px 4px;
}
.chat-input-row input:focus { outline: none; }
.chat-input-row button {
  width: auto;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--text-primary);
  border-radius: var(--radius);
}

.chat-hint-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.input-spinner {
  display: none;
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  gap: 4px;
}
.input-spinner.active { display: flex; }
.input-spinner span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: tdot 1.2s ease infinite;
}
.input-spinner span:nth-child(2) { animation-delay: 0.2s; }
.input-spinner span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }

/* responsive: widen the chat surface on larger viewports, keep forms narrow */

@media (min-width: 860px) {
  .wrap.chat-wrap { max-width: 780px; }
}
@media (min-width: 1400px) {
  .wrap.chat-wrap { max-width: 920px; }
}
@media (max-width: 420px) {
  .chat-title { font-size: 24px; }
  .chat-header-right { gap: 8px; }
}
