/* WhatsApp demo phones and the short-guide layout — shared by the player and
   coach guides (wa-demo.js). Scoped to .wa-* so it cannot touch the app. */
:root {
  --wa-bg: #0b141a; --wa-head: #1f2c34; --wa-in: #202c33; --wa-out: #005c4b; --wa-bot: #1d2a30;
  --wa-btn: #2a3942; --wa-link: #53bdeb; --wa-meta: #8696a0; --wa-accent: #e4f91b;
}

/* Page layout */
.wa-guide { max-width: 980px; margin: 0 auto; padding: 0 16px 56px; }
.wa-guide h1 { font-size: clamp(24px, 4vw, 32px); margin: 8px 0 6px; }
.wa-lede { color: #9aa3b2; margin: 0 0 18px; max-width: 40em; }
.wa-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 14px 16px; margin: 0 0 24px; }
.wa-card h2 { font-size: 18px; margin: 0 0 6px; }
.wa-card ul { margin: 6px 0 0; padding-left: 20px; color: #c3cad5; }
.wa-card li { margin: 4px 0; }
.wa-card--principles { border-color: rgba(228,249,27,0.35); background: rgba(228,249,27,0.06); }
.wa-start { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.wa-start strong { font-size: 18px; }
.wa-open { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #052e16;
  font-weight: 700; border-radius: 999px; padding: 10px 16px; text-decoration: none; min-height: 44px; }
.wa-muted { color: #9aa3b2; font-size: 14px; }
.wa-key { font-family: 'SF Mono', Menlo, monospace; color: var(--wa-accent);
  background: rgba(228,249,27,0.10); padding: 1px 6px; border-radius: 4px; }

.wa-scenes { display: grid; gap: 30px; }
.wa-scene { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
@media (min-width: 760px) {
  .wa-scene { grid-template-columns: 1fr 340px; gap: 32px; }
  .wa-scene:nth-child(even) .wa-copy { order: 2; }
}
/* Phones held sideways: copy beside the phone, phone a little shorter. */
@media (orientation: landscape) and (max-height: 500px) {
  .wa-scene { grid-template-columns: 1fr 300px; }
  .wa-demo-chat { height: 300px; }
}
.wa-copy h2 { margin: 0 0 6px; font-size: 21px; }
.wa-copy p { margin: 0; color: #9aa3b2; }
.wa-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--wa-accent); color: #111; font-weight: 800; margin-bottom: 8px; }
.wa-demo-play { margin-top: 10px; background: none; border: 1px solid #3a414d; color: inherit;
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
details.wa-more { margin-top: 28px; }
details.wa-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Phone */
.wa-demo-phone { width: 100%; max-width: 340px; margin: 0 auto; background: var(--wa-bg); border-radius: 26px;
  border: 8px solid #222832; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.45); }
.wa-demo-head { display: flex; align-items: center; gap: 10px; background: var(--wa-head); padding: 10px 12px; color: #e9edef; }
.wa-demo-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--wa-accent); color: #111;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.wa-demo-who small { display: block; color: var(--wa-meta); font-size: 12px; }
.wa-demo-chat { height: 380px; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  justify-content: flex-end; color: #e9edef;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 14px 14px; }
.wa-demo-b { max-width: 82%; padding: 6px 9px 5px; border-radius: 9px; font-size: 14.5px; line-height: 1.4;
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.wa-demo-b.is-in, .wa-demo-btns.is-in, .wa-demo-hint.is-in { opacity: 1; transform: none; }
.wa-demo-b .t { display: block; text-align: right; color: var(--wa-meta); font-size: 11px; margin-top: 2px; }
.wa-demo-in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.wa-demo-out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.wa-demo-bot { align-self: flex-start; background: var(--wa-bot); border: 1px solid #2c3b44; }
.wa-demo-media { display: grid; place-items: center; height: 88px; width: 156px; border-radius: 6px; margin-bottom: 4px;
  background: linear-gradient(135deg, #2f4d3d, #1d3240); font-size: 30px; }
.wa-demo-quote { border-left: 3px solid #06cf9c; background: rgba(0,0,0,0.18); border-radius: 5px; padding: 3px 7px;
  margin-bottom: 4px; font-size: 12.5px; color: #c9d2d8; }
.wa-demo-btns { align-self: flex-start; display: grid; gap: 4px; width: 82%; opacity: 0; transition: opacity .25s; }
.wa-demo-btn { background: var(--wa-btn); color: var(--wa-link); border: 0; border-radius: 8px; padding: 9px 7px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px;
  transition: background .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.wa-demo-btn.is-target { animation: wa-pulse 1.1s ease-in-out infinite; }
.wa-demo-btn.is-tapped { background: #3d5a6a; transform: scale(.97); }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(83,189,235,0.0); } 50% { box-shadow: 0 0 0 4px rgba(83,189,235,0.45); } }
.wa-demo-typing { align-self: flex-start; background: var(--wa-in); border-radius: 9px; padding: 9px 11px; display: inline-flex; gap: 3px; }
.wa-demo-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--wa-meta); animation: wa-dot 1s infinite; }
.wa-demo-typing i:nth-child(2) { animation-delay: .15s; } .wa-demo-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.wa-demo-hint { align-self: center; font-size: 12px; color: var(--wa-accent); background: rgba(228,249,27,0.1);
  border-radius: 999px; padding: 3px 10px; opacity: 0; transition: opacity .25s; }
.wa-demo-start { align-self: center; margin: auto 0; background: var(--wa-accent); color: #111; border: 0;
  border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }

/* Reduce motion: steps still appear in order (wa-demo.js), but nothing slides or pulses. */
@media (prefers-reduced-motion: reduce) {
  .wa-demo-b, .wa-demo-btns, .wa-demo-hint, .wa-demo-btn { transition: none; transform: none; }
  .wa-demo-btn.is-target { animation: none; outline: 2px solid var(--wa-link); outline-offset: 1px; }
  .wa-demo-typing i { animation: none; opacity: .6; }
}
.wa-topbar { padding: 14px 0 4px; }
