/* Kolokwa AI website. Colors from the blueprint, section 6. No red, gold or flag colors here: they live only in the logo. */
:root{
  --bg:#0B1B3A; --side:#0F2347; --card:#12274F; --blue:#2563EB; --text:#E8F0FF; --soft:#A9BCE0;
  --line:#1B3566; --edge:#2F5FD0; --link:#8DB4FF; --chip:#1E3A8A; --hover:#163066;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--text);font:16px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
[hidden]{display:none!important}
a{color:var(--link)}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--link);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.soft{color:var(--soft)} .small{font-size:14px}
.fine{color:#8FA6D1;font-size:13px;text-align:center;margin:0}
.note{min-height:1.5em;margin:8px 0 0;color:var(--link);font-size:15px;text-align:center}
.logo-big{display:block;height:auto;max-width:70%}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Buttons: at least 48 px tall */
.btn-blue,.btn-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;border-radius:12px;border:0;font-weight:600;text-decoration:none}
.btn-blue{background:var(--blue);color:#fff}
.btn-google{background:#fff;color:#1F1F1F}

/* Sign in */
.signin{min-height:100%;display:flex;flex-direction:column;align-items:center;padding:48px 24px max(24px,env(safe-area-inset-bottom));max-width:440px;margin:0 auto}
.signin h1{font-size:28px;font-weight:800;margin:18px 0 8px;color:#fff}
.signin>.soft{margin:0 0 28px;text-align:center}
.signin-box{width:100%;display:flex;flex-direction:column;gap:12px}
.signin-box form{display:flex;flex-direction:column;gap:12px}
.field{width:100%;min-height:52px;padding:0 16px;border-radius:12px;background:var(--card);border:1px solid var(--edge);color:#fff;font-size:16px}
.field::placeholder{color:#8FA6D1}
.or{display:flex;align-items:center;gap:12px;color:#8FA6D1;font-size:14px}
.or span{flex:1;height:1px;background:var(--line)}
.links{display:flex;justify-content:space-between;font-size:15px}
.links a{min-height:48px;display:inline-flex;align-items:center}
.signin .fine{margin-top:auto;padding-top:24px}

/* App layout: sidebar left, chat in the middle */
.app{display:flex;min-height:100%}
.side{width:264px;flex:none;background:var(--side);padding:20px 14px;display:flex;flex-direction:column;gap:4px;height:100vh;height:100dvh;position:sticky;top:0;overflow-y:auto}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;color:#fff;padding:0 10px 18px}
.brand img{height:34px;width:auto}
.side-item{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#CFE0FF;font-size:15px;text-align:left}
.side-item:hover{background:var(--hover)}
.side-item.active{background:var(--hover);color:#fff;font-weight:600}
.side-label{color:var(--soft);font-size:13px;padding:20px 12px 6px}
.past{list-style:none;margin:0;padding:0 12px}
.grow{flex:1}
.side-foot{border-top:1px solid var(--line);margin-top:8px;padding-top:14px}
.scrim{position:fixed;inset:0;background:rgba(3,10,25,.6);z-index:20}

.main{flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.top{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px}
.menu-btn{display:none;width:48px;height:48px;border-radius:12px;border:1px solid var(--line);background:var(--card);align-items:center;justify-content:center;margin-right:auto}
.tag{display:inline-block;padding:6px 12px;border-radius:999px;background:var(--chip);color:#CFE0FF;font-size:13px;font-weight:600}

.start{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 16px 12vh}
.start h1{font-size:30px;font-weight:600;margin:20px 0 24px;color:#fff;text-align:center;line-height:1.25}
.ask{width:100%;max-width:720px;background:var(--card);border:1px solid var(--edge);border-radius:24px;padding:12px 12px 8px}
.ask textarea{display:block;width:100%;min-height:48px;max-height:40vh;padding:12px 8px;background:transparent;border:0;outline:0;resize:none;color:#fff;font-size:18px;line-height:1.4}
.ask textarea::placeholder{color:#8FA6D1}
.ask-row{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.ask-right{display:flex;align-items:center;gap:6px}
.icon-btn{width:48px;height:48px;border-radius:50%;border:0;background:transparent;color:#CFE0FF;display:flex;align-items:center;justify-content:center}
.icon-btn:hover{background:var(--hover)}
.live-btn{width:48px;height:48px;border-radius:50%;border:0;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}
.live-btn svg{stroke-width:2.4}
.start .fine{margin-top:16px}

/* Conversation: once a question is sent, the logo and heading go away, the messages fill the screen and the box sits at the bottom */
.thread{width:100%;max-width:720px;flex:1;display:flex;flex-direction:column;gap:18px;padding:8px 4px 20px}
.msg{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:17px}
.msg.me{align-self:flex-end;max-width:85%;background:var(--card);border:1px solid var(--line);padding:10px 16px;border-radius:18px 18px 4px 18px;color:#fff}
.msg.ai{align-self:flex-start;color:var(--text);padding:2px 2px}
.msg.typing::after{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--soft);animation:blink 1s infinite}
@keyframes blink{50%{opacity:.25}}
.chatting .start{justify-content:flex-start;padding-bottom:12px}
.chatting .start>.logo-big,.chatting .start>h1{display:none}
.chatting .ask{position:sticky;bottom:12px;box-shadow:0 -12px 24px var(--bg)}
.live-btn:disabled{opacity:.5;cursor:default}

/* Legal pages */
.back{display:inline-flex;align-items:center;min-height:48px}

/* Phone: the sidebar folds away behind the menu button */
@media (max-width:860px){
  .side{position:fixed;left:0;top:0;z-index:30;transform:translateX(-100%);transition:transform .2s ease;box-shadow:none}
  .side.open{transform:none;box-shadow:0 0 40px rgba(0,0,0,.5)}
  .menu-btn{display:flex}
  .start h1{font-size:26px}
}
@media (prefers-reduced-motion:reduce){.side{transition:none}.msg.typing::after{animation:none}}
.agree{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4;margin:0 0 14px;text-align:left}
.agree input{width:20px;height:20px;flex:none;margin:1px 0 0}
.fine a{color:inherit}
.side-foot .danger{color:#ff8a80;font-size:14px}
#actionText{overflow-wrap:anywhere;text-align:center}
/* One slim row (Mark, 2026-11-27): + | words | mic/send; it grows only when there are more words */
.ask{display:grid;grid-template-columns:auto 1fr auto;align-items:end;gap:4px;max-width:680px;padding:6px 8px;border-radius:28px}
.ask textarea{grid-column:2;grid-row:1;min-height:44px;padding:11px 6px;font-size:17px}
.ask-row{display:contents}
.ask-row>.icon-btn{grid-column:1;grid-row:1}
.ask-right{grid-column:3;grid-row:1}
