/* SOL web styles — matches the REAL projectsol.ai brand exactly. Every
   value below (fonts, colors, gradients, radii, shadows) was pulled via
   getComputedStyle() directly from the live site on 2026-08-16, not
   approximated from screenshots. See notes inline for what changed from
   the previous pass and why. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Real brand tokens, pulled from projectsol.ai's :root custom properties */
  --sol-peach: #FFECD2;
  --sol-coral: #FF8A6C;
  --sol-rose: #E8638B;
  --sol-lavender: #B07CC6;
  --sol-sky: #7CB8D4;
  --sol-mint: #7CCFB0;
  --sol-deep: #2D1B3D;
  --sol-warm-white: #FFF9F5;
  --sol-text: #3D2A4A;
  --sol-text-light: #7A6688;
  --radius: 20px;

  /* Aliases so the class rules below (already wired to these names) don't
     all need renaming. Previously --sol-bg-coral/purple/green built a
     full-page 3-stop gradient background -- the real site never does
     this, the body is flat warm white and gradients are reserved for
     small accents (icons, buttons, one emphasis word). */
  --sol-text-muted: var(--sol-text-light);
  --sol-text-faint: var(--sol-text-light);
  --sol-border: rgba(45, 27, 61, 0.1);
  --sol-bot-bubble: rgba(176, 124, 198, 0.08);
  --sol-coral-soft: var(--sol-rose);
  --sol-purple: var(--sol-lavender);
  --sol-green: var(--sol-mint);
  --sol-teal: var(--sol-mint);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--sol-text);
}

.serif {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* ── Age gate / ineligible pages ───────────────────────────────────── */

.gate-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--sol-warm-white);
  /* Soft ambient color wash, replicating the real site's blurred
     ".blob" decorations (4 large blurred circles at ~35% opacity
     behind the hero) using layered radial-gradients instead of
     extra blurred DOM elements -- same effect, no HTML changes. */
  background-image:
    radial-gradient(circle at 85% 0%, rgba(255, 236, 210, 0.4) 0%, rgba(255, 236, 210, 0) 55%),
    radial-gradient(circle at 0% 65%, rgba(176, 124, 198, 0.35) 0%, rgba(176, 124, 198, 0) 55%),
    radial-gradient(circle at 90% 55%, rgba(124, 184, 212, 0.3) 0%, rgba(124, 184, 212, 0) 55%),
    radial-gradient(circle at 40% 90%, rgba(124, 207, 176, 0.3) 0%, rgba(124, 207, 176, 0) 55%);
  background-attachment: fixed;
}

.gate-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 28px;
  padding: 40px 32px;
  /* Matches the real site's card shadow exactly (two layered shadows). */
  box-shadow: 0 20px 60px rgba(45, 27, 61, 0.08), 0 1px 3px rgba(45, 27, 61, 0.04);
}

.gate-title {
  /* Real site's "Project SOL" wordmark is SOLID text, not gradient-filled
     -- the gradient lives on a separate small sun icon next to it, not
     the letters themselves. */
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--sol-deep);
  margin: 0 0 6px;
}

.gate-subtitle {
  font-size: 14px;
  color: var(--sol-text-light);
  margin: 0 0 28px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-label {
  font-size: 13px;
  color: var(--sol-text-light);
  text-align: left;
}

.gate-input {
  font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--sol-border);
  border-radius: 14px;
  background-color: #FFFFFF;
  color: var(--sol-text);
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gate-input:focus {
  outline: none;
  border-color: var(--sol-coral);
}

.gate-error {
  font-size: 13px;
  color: var(--sol-rose);
  text-align: left;
  margin: 0;
}

.gate-button {
  font-size: 15px;
  font-weight: 600;
  padding: 13px 16px;
  border: none;
  border-radius: 50px;
  /* Real site's primary CTA gradient: 135deg, coral -> rose. */
  background: linear-gradient(135deg, var(--sol-coral) 0%, var(--sol-rose) 100%);
  color: #FFFFFF;
  cursor: pointer;
  min-height: 46px;
  box-shadow: 0 8px 30px rgba(232, 99, 139, 0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gate-button:hover {
  filter: brightness(0.96);
}

.gate-button:active {
  filter: brightness(0.9);
}

.gate-footnote {
  font-size: 12px;
  color: var(--sol-text-light);
  margin-top: 24px;
  line-height: 1.5;
}

.gate-message {
  font-size: 15px;
  color: var(--sol-text);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* ── Chat page ──────────────────────────────────────────────────────── */

.chat-body {
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--sol-warm-white);
  background-image:
    radial-gradient(circle at 85% 0%, rgba(255, 236, 210, 0.4) 0%, rgba(255, 236, 210, 0) 55%),
    radial-gradient(circle at 0% 65%, rgba(176, 124, 198, 0.35) 0%, rgba(176, 124, 198, 0) 55%),
    radial-gradient(circle at 90% 55%, rgba(124, 184, 212, 0.3) 0%, rgba(124, 184, 212, 0) 55%),
    radial-gradient(circle at 40% 90%, rgba(124, 207, 176, 0.3) 0%, rgba(124, 207, 176, 0) 55%);
  background-attachment: fixed;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chat-header-inner,
.chat-input-row-inner,
.chat-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.chat-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

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

.chat-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header {
  padding: 16px 20px;
  background-color: rgba(255, 249, 245, 0.8);
  border-bottom: 1px solid rgba(176, 124, 198, 0.08)
}

.chat-header-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 21.6px;
  color: var(--sol-text);
}

.chat-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sol-coral) 0%, var(--sol-rose) 50%, var(--sol-lavender) 100%);
  box-shadow: 0 4px 20px rgba(255, 138, 108, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-icon::after {
  content: "☀";
  font-size: 18px;
  color: #FFFFFF;
}

.chat-display {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 14px 0;
}

.msg-row-user {
  flex-direction: row;
  justify-content: flex-end;
}

.msg-row-bot {
  flex-direction: row;
  justify-content: flex-start;
}

/* When the same sender speaks again right after themselves, tighten the
   gap and hide the repeated avatar so the conversation reads as one
   continuous flow rather than a stack of separate isolated cards. */
.msg-row-grouped {
  margin-top: 4px;
}

.msg-row-grouped .msg-avatar {
  visibility: hidden;
}

.msg-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(45, 27, 61, 0.12);
}

.msg-avatar-bot {
  background: linear-gradient(135deg, var(--sol-coral) 0%, var(--sol-rose) 100%);
}

.msg-avatar-user {
  background: linear-gradient(135deg, var(--sol-sky) 0%, var(--sol-mint) 100%);
}

.msg {
  max-width: 74%;
  padding: 14px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  word-wrap: break-word;
  box-shadow: 0 4px 14px rgba(45, 27, 61, 0.10);
}

.msg-user {
  background: linear-gradient(135deg, var(--sol-coral) 0%, var(--sol-rose) 100%);
  color: #FFFFFF;
  border-radius: 18px 18px 6px 18px;
  text-align: right;
}

.msg-bot {
  background-color: var(--sol-bot-bubble);
  color: var(--sol-text);
  border-radius: 18px 18px 18px 6px;
  text-align: left;
}

.msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sol-rose);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-input-row {
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--sol-border);
}

.chat-input {
  flex: 1;
  font-size: 13.5px;
  padding: 12px 20px;
  border: 1.5px solid var(--sol-border);
  border-radius: 999px;
  background-color: #FFFFFF;
  color: var(--sol-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.chat-input:focus {
  outline: none;
  border-color: var(--sol-coral);
}

.chat-send-button {
  font-size: 12px;
  font-weight: 600;
  width: 84px;
  height: 46px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--sol-coral) 0%, var(--sol-rose) 100%);
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(232, 99, 139, 0.25);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.chat-send-button:hover {
  filter: brightness(0.96);
}

.chat-send-button:active {
  filter: brightness(0.9);
}

.chat-footer {
  padding: 6px 20px 14px;
  background-color: rgba(255, 249, 245, 0.8);
}

.chat-new-button {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 18px;
  border: 1.5px solid var(--sol-rose);
  border-radius: 999px;
  background-color: rgba(232, 99, 139, 0.08);
  color: var(--sol-rose);
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.chat-new-button:hover {
  background-color: rgba(232, 99, 139, 0.15);
}

.chat-privacy {
  font-size: 10px;
  color: var(--sol-text-light);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .typing-dot {
    animation: none;
    opacity: 0.8;
  }
}