/* Palette mirrors packages/brand-tokens (Brand Guideline V1). */
:root {
  --teal-600: #02627b;   /* Teal-Green, the brand accent */
  --teal-500: #078bab;
  --teal-300: #53cbea;
  --off-white: #f7f7f5;

  --bg: #02142e;
  --surface: #06213f;
  --line: rgba(202, 238, 246, 0.1);
  --line-strong: rgba(202, 238, 246, 0.18);
  --fg: var(--off-white);
  --fg-soft: rgba(247, 247, 245, 0.8);
  --fg-muted: rgba(247, 247, 245, 0.48);
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden; /* placeholder: one screen, no scroll */
  background: var(--bg); /* flat navy; the heart watermark is the only texture */
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
.ic { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 3px; }

.watermark {
  position: fixed; right: -5vw; bottom: -9vh; width: min(36vw, 480px); height: auto;
  opacity: 0.055; pointer-events: none; user-select: none; z-index: 0;
}
.app { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; }

.top { display: flex; justify-content: flex-end; padding: 20px 24px; }
.top-link { font: 600 14px/1 var(--font-display); color: var(--fg-muted); text-decoration: none; }
.top-link:hover { color: var(--fg); }

/* Stage: greeting and composer sit just above center. */
.stage {
  flex: 1; min-height: 0; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px 10vh;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}

.greeting { display: flex; justify-content: center; }
.lockup { width: min(300px, 70vw); height: auto; }

.composer {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 14px 12px 18px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
  transition: border-color .2s;
}
.composer:focus-within { border-color: rgba(83, 203, 234, 0.4); }
textarea {
  resize: none; border: 0; outline: none; background: transparent; color: var(--fg);
  font: 400 16.5px/26px var(--font-body); padding: 0; min-height: 52px; max-height: 160px;
}
textarea:focus-visible { outline: none; } /* the composer border shows focus */
textarea::placeholder { color: var(--fg-muted); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; margin-left: -6px; }
.tools-right { display: flex; align-items: center; gap: 4px; }
.tool {
  display: inline-flex; align-items: center; gap: 2px; height: 34px; min-width: 34px; padding: 0 7px;
  border: 0; border-radius: 10px; background: transparent; color: var(--fg-soft); font-size: 20px; cursor: pointer;
}
.tool:hover { background: rgba(202, 238, 246, 0.07); color: var(--fg); }
.tool .chev { font-size: 13px; color: var(--fg-muted); }
.send {
  display: none; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 0; cursor: pointer; background: var(--teal-600); color: #fff; font-size: 17px;
}
.send:hover { background: var(--teal-500); }
/* Like Claude: the voice button gives way to send once there is text. */
.composer.has-text .tool-voice { display: none; }
.composer.has-text .send { display: grid; }

.under { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 0; }
.meta {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; font: 600 14px/1 var(--font-display); color: var(--fg-soft);
}
.meta:hover { background: rgba(202, 238, 246, 0.07); }
.meta b { color: var(--fg); font-weight: 700; }
.meta #mode-label { color: var(--fg-muted); }
.meta .chev { font-size: 13px; color: var(--fg-muted); }
.mode { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 300px; padding: 6px;
  border-radius: 14px; background: #082848; border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.menu[hidden] { display: none; }
.menu-item {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; text-align: left;
  border: 0; border-radius: 10px; background: transparent; color: var(--fg); cursor: pointer;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(202, 238, 246, 0.07); outline: none; }
.menu-text { display: grid; gap: 3px; flex: 1; }
.menu-text b { font: 700 14.5px/1.2 var(--font-display); }
.menu-text span { font-size: 13px; line-height: 1.45; color: var(--fg-muted); }
.check { font-size: 16px; color: var(--teal-300); margin-top: 2px; visibility: hidden; }
.menu-item[aria-checked="true"] .check { visibility: visible; }
.foot { text-align: center; font-size: 12px; color: var(--fg-muted); padding: 0 16px 16px; }

/* Sending: no chat yet, so the composer dims and a status line confirms the hand-off. */
.composer.leaving { opacity: .55; transition: opacity .3s; }
.status { min-height: 0; padding: 0 18px; font: 600 13px/1 var(--font-display); color: var(--teal-300); }
.status:not(:empty) { padding-top: 10px; }
.go {
  display: inline-flex; align-items: center;
  font: 700 15px/1 var(--font-display); color: #fff; text-decoration: none;
  padding: 12px 16px; border-radius: 12px; background: var(--teal-600);
}
.go:hover { background: var(--teal-500); }

@media (max-width: 600px) {
  .top { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 */
.lost { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.lost .lockup { margin-bottom: 18px; }
.lost-code { font: 800 13px/1 var(--font-display); letter-spacing: .16em; color: var(--teal-300); }
.lost h1 { font: 900 clamp(28px, 4.4vw, 40px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.lost-sub { color: var(--fg-soft); }
.lost .go { margin-top: 10px; }
