/* Try Oye (try.askoye.ng, www.askoye.ng/try): a sample shop to ask Oye about, full screen like an app. */
:root {
  --green: #0f3d3e;
  --green-2: #155859;
  --paper: #fff7e8;
  --white: #fffdf8;
  --line: #eadfca;
  --ink: #1f2a2a;
  --muted: #5e6b68;
  --tomato: #d4441c;
  --gold: #ffb82e;
  --leaf: #2e9e6b;
  --mint: #4ff0b4;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font: 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
.app { display: flex; flex-direction: column; height: 100dvh; }

/* top bar */
.top { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--green); color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 800 22px var(--display); }
.logo img { border-radius: 9px; }
.pill { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; color: #d8ece6; }
.cta { margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--tomato); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 #9c2f12; }
.cta:hover { filter: brightness(1.06); }

/* shop tabs */
.tabs { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; background: var(--white); border-bottom: 2px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--green); font-weight: 800; cursor: pointer; transition: transform .12s, border-color .2s; }
.tabs button span { font-size: 20px; line-height: 1; }
.tabs button:hover { border-color: var(--green); transform: translateY(-1px); }
.tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 3px 0 #0a2b2c; }

/* the shop and the chat */
.main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; }
.panel { overflow-y: auto; padding: 22px 20px; border-right: 2px solid var(--line); background: var(--white); }
.shop-head { display: flex; gap: 12px; align-items: center; }
.shop-emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gold); font-size: 28px; }
.shop-head h1 { margin: 0; font: 800 22px/1.15 var(--display); color: var(--green); }
.shop-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.today { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin: 18px 0 10px; }
.today div { padding: 10px 12px; border-radius: 14px; background: var(--paper); }
.today b { display: block; font: 800 20px var(--display); color: var(--green); }
.today span { font-size: 12.5px; color: var(--muted); }
.staff { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.panel h2 { margin: 0 0 10px; font: 800 16px var(--display); color: var(--green); }
.panel h2 span { margin-left: 6px; font: 600 12.5px var(--body); color: var(--muted); }
.noticed { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.noticed button { display: block; width: 100%; padding: 11px 12px 11px 40px; position: relative; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; color: var(--ink); font-size: 14.5px; line-height: 1.4; cursor: pointer; transition: border-color .2s, transform .12s; }
.noticed button::before { content: "!"; position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--tomato); color: #fff; font-size: 12px; font-weight: 800; }
.noticed button.good::before { content: "↑"; background: var(--leaf); }
.noticed button.warn::before { background: #e09a12; }
.noticed button.info::before { content: "i"; background: #2f7fae; }
.noticed button:hover { border-color: var(--green); transform: translateY(-1px); }
.noticed button.predict::before { content: "➚"; background: var(--green); }
.noticed .tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; }
.noticed button em { display: block; margin-top: 4px; font-style: normal; font-weight: 800; font-size: 13px; color: var(--tomato); }

.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.main > * { min-width: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 22px max(20px, calc((100% - 760px) / 2)); display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.bub { max-width: min(640px, 88%); padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; animation: pop .25s ease-out both; white-space: normal; }
.bub.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 6px; }
.bub.oye { align-self: flex-start; background: #fff; border: 2px solid var(--line); border-bottom-left-radius: 6px; }
.bub.typing { display: flex; gap: 5px; padding: 15px; }
.bub.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: bounce 1s infinite; }
.bub.typing i:nth-child(2) { animation-delay: .15s; }
.bub.typing i:nth-child(3) { animation-delay: .3s; }
.nudge { align-self: stretch; max-width: 640px; padding: 16px 18px; border-radius: 20px; background: var(--gold); border: 2px solid var(--green); box-shadow: 0 5px 0 var(--green); animation: pop .3s ease-out both; }
.nudge p { margin: 0 0 12px; color: var(--green); font-weight: 600; }
.nudge a { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--tomato); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #9c2f12; }

.ask-bar { padding: 10px max(16px, calc((100% - 760px) / 2)) 14px; border-top: 2px solid var(--line); background: var(--white); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 8px 14px; border: 2px solid var(--green); border-radius: 14px; background: #fff; color: var(--green); font-weight: 700; font-size: 14.5px; cursor: pointer; box-shadow: 0 3px 0 var(--green); transition: transform .12s, background .2s; }
.chips button:hover { background: #fff3d9; transform: translateY(-1px); }
.chips button.asked { background: #cdf0dd; }
.box { display: flex; gap: 8px; padding: 6px 6px 6px 16px; border: 2px solid var(--green); border-radius: 999px; background: #fff; }
.box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.box button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--tomato); color: #fff; font-size: 17px; cursor: pointer; }
.box input:disabled, .box button:disabled { cursor: not-allowed; opacity: .55; }
.left { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

/* phones: the shop folds into a strip above the chat */
@media (max-width: 820px) {
  .pill { display: none; }
  .top { padding: 8px 14px; }
  .cta { padding: 8px 13px; font-size: 14px; }
  .tabs { padding: 10px 14px; }
  .tabs button { padding: 7px 12px; font-size: 14.5px; }
  .main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .panel { max-height: 34dvh; padding: 12px 14px; border-right: 0; border-bottom: 2px solid var(--line); }
  .panel.folded { max-height: none; }
  .panel.folded .today, .panel.folded .staff, .panel.folded h2, .panel.folded .noticed { display: none; }
  .shop-head h1 { font-size: 18px; }
  .shop-emoji { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
  .today { margin: 10px 0 6px; }
  .today b { font-size: 16px; }
  .staff { margin-bottom: 10px; }
  .msgs { padding: 14px; }
  .ask-bar { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .bub, .nudge { animation: none; } .msgs { scroll-behavior: auto; } }
