/* ═══════════════════════════════════════
   BLUE LOGIC — style.css
   Zander sits left on desktop,
   pinned bottom-left on mobile
   ═══════════════════════════════════════ */

:root {
  --bg: #eeecea;
  --surface: rgba(255,255,255,0.62);
  --surface-border: rgba(74,158,187,0.13);
  --blue: #4a9ebb;
  --blue-deep: #2d7a9a;
  --blue-glow: rgba(74,158,187,0.28);
  --blue-faint: rgba(74,158,187,0.07);
  --text: #232f3e;
  --text-muted: #7a90a8;
  --shadow-panel: 0 8px 48px rgba(35,47,62,0.07), 0 1px 0 rgba(255,255,255,0.85) inset;
  --radius: 22px;
  --zander-w: 280px;   /* desktop Zander image width */
  --gap: 2rem;
}

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ── Dot-grid background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(74,158,187,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ── Ambient glow ── */
.ambient {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,187,0.09) 0%, transparent 68%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  pointer-events: none;
  z-index: 0;
  animation: ambient-breathe 8s ease-in-out infinite;
}

@keyframes ambient-breathe {
  0%, 100% { transform: translate(-50%, -42%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -42%) scale(1.1); opacity: 0.65; }
}

/* ── Hidden SEO ── */
.seo-content {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ══════════════════════════════
   LOGO HEADER
══════════════════════════════ */
.site-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: center;
  animation: fade-down 0.8s ease both;
}

.logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(74,158,187,0.18));
}

/* ══════════════════════════════
   MAIN STAGE — desktop side-by-side
══════════════════════════════ */
.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 2rem 3rem;
  display: flex;
  align-items: flex-end;   /* bottom-align so Zander stands on same baseline */
  gap: var(--gap);
  animation: fade-up 0.9s ease 0.15s both;
}

/* ── Speech-bubble tail (desktop only) ── */
.stage::before {
  content: '';
  position: absolute;
  /* sits at left edge of chat panel */
  left: calc(2rem + var(--zander-w) + var(--gap) - 1px);
  bottom: calc(3rem + 80px);   /* roughly where the middle of the chat sits */
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 14px solid rgba(255,255,255,0.62);
  pointer-events: none;
  z-index: 3;
}

/* ══════════════════════════════
   ZANDER — desktop column
══════════════════════════════ */
.zander-col {
  flex-shrink: 0;
  width: var(--zander-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@keyframes zander-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.zander-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(74,158,187,0.22))
          drop-shadow(0 2px 6px rgba(35,47,62,0.12));
  cursor: pointer;
  transition: filter 0.2s;
}

/* Tap/click wave — adds a wiggle */
.zander-img.wave {
  animation: zander-wave 0.5s ease;
}

@keyframes zander-wave {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-6deg) scale(1.04); }
  75%  { transform: rotate(5deg) scale(1.04); }
  100% { transform: rotate(0deg); }
}

.zander-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--blue);
  text-transform: uppercase;
  opacity: 0.7;
}

/* ══════════════════════════════
   CHAT PANEL
══════════════════════════════ */
.chat-panel {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.75rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-panel);
}

/* ── Messages ── */
.messages {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74,158,187,0.2) transparent;
}

.message {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  animation: msg-in 0.3s ease both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user { flex-direction: row-reverse; }

.message-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 7px;
  flex-shrink: 0;
  opacity: 0.5;
}

.message.user .message-dot { background: var(--text-muted); }

.message-text {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--text);
  max-width: 90%;
}

.message.user .message-text {
  color: var(--text-muted);
  text-align: right;
  font-style: italic;
}

/* Typewriter cursor */
.cursor {
  display: inline-block;
  width: 2px;
  height: 0.92em;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.85s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Prompt chips ── */
.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.prompt-chip {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(74,158,187,0.26);
  border-radius: 20px;
  color: var(--blue);
  cursor: pointer;
  background: transparent;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}

.prompt-chip:hover {
  background: var(--blue-faint);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(74,158,187,0.1);
}

/* ── Input row ── */
.input-row {
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid rgba(74,158,187,0.1);
  padding-top: 1.1rem;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(74,158,187,0.2);
  padding: 0.38rem 0.2rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input::placeholder { color: var(--text-muted); font-style: italic; }
.chat-input:focus { border-bottom-color: var(--blue); }

.send-btn {
  background: none;
  border: 1px solid rgba(74,158,187,0.26);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all 0.18s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--blue-faint);
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,158,187,0.14);
}

/* ── Typing dots ── */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.4;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* ── Email link ── */
.email-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(74,158,187,0.3);
  transition: border-color 0.2s;
}
.email-link:hover { border-color: var(--blue); }

/* ── Wordmark ── */
.wordmark {
  position: relative;
  z-index: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 2rem;
  animation: fade-up 1.2s ease 0.8s both;
}

/* ── Animations ── */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════
   MOBILE  (≤ 640px)
   Zander shrinks to a pinned corner character.
   Chat takes full width of screen.
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  .site-header {
    padding: 1.25rem 1.25rem 0;
    justify-content: flex-start;
  }

  .logo-img { height: 36px; }

  /* Stage becomes a single full-width column (chat only) */
  .stage {
    flex-direction: column;
    padding: 1.25rem 1.25rem 7rem; /* bottom padding leaves room for pinned Zander */
    gap: 0;
    align-items: stretch;
  }

  /* Hide the speech-bubble tail on mobile */
  .stage::before { display: none; }

  /* Hide the normal Zander column on mobile */
  .zander-col { display: none; }

  /* ── Pinned mobile Zander ── */
  .zander-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: fixed;
    bottom: 1.25rem;
    left: 1rem;
    z-index: 10;
  }

  .zander-mobile .zander-img {
    width: 100px;
    filter: drop-shadow(0 4px 14px rgba(74,158,187,0.25))
            drop-shadow(0 1px 4px rgba(35,47,62,0.15));
  }

  .zander-mobile .zander-label {
    font-size: 0.52rem;
    letter-spacing: 0.22em;
  }

  .chat-panel {
    min-height: 0;
    border-radius: 16px;
  }

  .messages { max-height: 55vh; }

  .wordmark { padding-bottom: 1.25rem; text-align: center; }
}

/* Desktop: hide the mobile element */
@media (min-width: 641px) {
  .zander-mobile { display: none; }
}

/* ══════════════════════════════
   CONSENT BANNER
══════════════════════════════ */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(35,47,62,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(74,158,187,0.25);
  animation: consent-slide-up 0.4s ease both;
}

@keyframes consent-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.consent-text {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  flex: 1;
}

.consent-text a {
  color: var(--blue-light, #7ec8e3);
  text-decoration: none;
  border-bottom: 1px solid rgba(126,200,227,0.35);
  transition: border-color 0.2s;
}

.consent-text a:hover { border-color: #7ec8e3; }

.consent-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.consent-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
}

.consent-btn-accept {
  background: var(--blue, #4a9ebb);
  color: white;
  border-color: var(--blue, #4a9ebb);
}

.consent-btn-accept:hover {
  background: var(--blue-deep, #2d7a9a);
  border-color: var(--blue-deep, #2d7a9a);
  transform: translateY(-1px);
}

.consent-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.2);
}

.consent-btn-decline:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

/* Mobile consent adjustments */
@media (max-width: 640px) {
  .consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    /* sits above the pinned Zander */
    bottom: 0;
  }

  .consent-buttons { width: 100%; justify-content: flex-end; }
}

/* ══════════════════════════════
   CONTACT BUTTON (in-chat)
══════════════════════════════ */
.contact-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-start;
}

.contact-btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,158,187,0.3);
}

.contact-btn svg {
  flex-shrink: 0;
}

.contact-btn-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}


