/* Website preview (/website): a stand-in for saynotoslow.nz with the coach bubble in the corner.
   Loaded after styles.css, which supplies the colours and the chat styles. */

body.site { background: #fff; color: #111; }

.demo-bar {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px clamp(16px, 4vw, 40px); background: var(--accent); color: #fff; font-size: 14px;
}
.demo-bar a { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- the stand-in website ---------- */
.s-nav { display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px); background: #000; color: #fff; }
.s-nav img { width: 40px; height: 40px; }
.s-nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.s-burger { display: none; margin-left: auto; font-size: 22px; }
.s-hero {
  min-height: min(78vh, 640px); padding: 64px clamp(16px, 5vw, 64px); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .15)), url(/assets/hero-poster.jpg) center 45% / cover;
}
.s-hero h1 { font-size: clamp(44px, 7vw, 92px); }
.s-hero h1 span { color: var(--accent); }
.s-hero p { max-width: 520px; color: #e4e4e4; font-size: 18px; margin: 18px 0 26px; }
.s-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.s-btn { background: var(--accent); color: #fff; padding: 12px 22px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.s-btn.ghost { background: transparent; border: 2px solid #fff; padding: 10px 20px; }
.s-wrap { max-width: 1200px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 40px); }
.s-wrap h2, .s-band h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 28px; }
.s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.s-cards img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.s-cards h3 { margin: 14px 0 6px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.s-cards p { margin: 0; color: #555; font-size: 15px; }
.s-band { display: flex; align-items: center; gap: 32px; padding: 56px clamp(16px, 5vw, 64px); background: #f2f2f0; }
.s-band img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); flex: none; }
.s-band h2 { margin-bottom: 10px; }
.s-band p { margin: 0; max-width: 620px; color: #444; font-size: 17px; }
.s-foot { display: flex; align-items: center; gap: 14px; padding: 28px clamp(16px, 4vw, 40px) 110px; background: #000; color: #aaa; font-size: 14px; }
.s-foot img { width: 32px; }

/* ---------- the coach bubble ---------- */
.wg-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 64px; height: 64px; padding: 0; border-radius: 50%;
  border: 3px solid var(--accent); background: #000; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .15s;
}
.wg-launch:hover { transform: scale(1.06); }
.wg-launch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wg-dot { position: absolute; right: 1px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--good); border: 2px solid #fff; }
.wg-teaser {
  position: fixed; right: 100px; bottom: 36px; z-index: 30; max-width: 250px; text-align: left; cursor: pointer;
  background: #fff; color: #111; border: 1px solid #ddd; border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: bob 5s ease-in-out infinite;
}
.wg-panel {
  position: fixed; right: 24px; bottom: 100px; z-index: 31; width: 390px; height: min(620px, calc(100vh - 124px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.wg-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #111; }
.wg-top div { flex: 1; min-width: 0; }
.wg-top strong { display: block; font-size: 15px; }
.wg-top span { color: var(--muted); font-size: 12px; }
.wg-top .avatar { width: 34px; height: 34px; }
.wg-panel .messages { min-height: 0; padding: 16px 14px; gap: 14px; font-size: 15px; }
.wg-panel .msg.bot { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
.wg-panel .msg.bot > img { width: 26px; height: 26px; }
.wg-panel .bubble { padding: 11px 14px; }
.wg-panel .msg.user { max-width: 85%; }
.wg-panel .src { flex-basis: 200px; }
.wg-panel .suggestions { padding: 0 14px 10px; gap: 6px; }
.wg-panel .chip { font-size: 13px; padding: 6px 11px; }
.wg-panel .composer { padding: 10px 12px; }
.wg-panel .disclaimer { padding: 0 14px 10px; }
.wg-who { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; font-size: 12.5px; color: var(--muted); background: #161616; border-bottom: 1px solid var(--line); }
.wg-who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-who .link { color: #ff8a73; font-weight: 600; white-space: nowrap; text-decoration: none; }
.wg-who .link:hover { text-decoration: underline; }
.wg-panel .member-gate { padding: 14px; }
.wg-panel .member-gate p { font-size: 13.5px; }

@media (max-width: 760px) {
  .demo-bar { font-size: 13px; }
  .demo-bar .more { display: none; }
  .s-nav nav { display: none; }
  .s-burger { display: block; }
  .s-hero { min-height: 460px; background-size: cover, 185% auto; background-position: center, 70% 50%; }
  .s-hero p { font-size: 16px; }
  .s-cards { grid-template-columns: 1fr; }
  .s-band { flex-direction: column; align-items: flex-start; gap: 18px; }
  .s-band img { width: 96px; height: 96px; }
  .wg-launch { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .wg-teaser { right: 84px; bottom: 24px; max-width: calc(100% - 104px); }
  /* on a phone the chat takes the whole screen, like most website chats */
  .wg-panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  body.wg-open { overflow: hidden; }
  body.wg-open .wg-launch, body.wg-open .wg-teaser { display: none; }
}
