/* VeloUp salon demo: additions on top of the veloup.in design system (tokens.css + style.css, copied unchanged).
   Only demo-specific pieces live here: the interactive phone, the dashboard card and the comparison lists. */

/* Hero: single column (the site hero is two columns because it holds the phone) */
.salon-hero { padding-bottom: var(--space-5); }
.salon-hero .container { display: block; }
.salon-hero h1 { max-width: 15ch; }
.salon-hero .lead { max-width: 720px; }
.say { color: var(--midnight); background: var(--lav-soft); padding: 1px 8px; border-radius: 6px; white-space: nowrap; }

.salon-demo { padding-top: 0; }
.salon-grid { display: grid; gap: var(--space-6); align-items: start; }

/* The site's hero phone, made interactive: same frame, header and bubbles, but taller and scrollable */
.salon .phone { position: relative; left: auto; top: auto; margin: 0 auto; width: 100%; max-width: 380px; height: min(720px, calc(100svh - var(--header-h) - 24px)); min-height: 520px; }
.salon .phone-screen { position: relative; }
.salon .phone-top { padding-top: 22px; }
.salon .phone-top small { display: block; }
.salon .demo-chat { overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; scroll-behavior: smooth; }
.salon .demo-chat > * { flex-shrink: 0; } /* cards have overflow:hidden, so without this they collapse to 0 height once the chat fills */
.salon .demo-chat > :first-child { margin-top: auto; }
.salon .dm { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 86%; }
.salon .dm b { font-weight: 500; }
.salon .dm-out time .tick { color: #34B7F1; }
.salon .dm-typing { align-self: flex-start; background: var(--white); }
.salon .dm-typing i { background: var(--text-muted); }
.salon .quote { display: block; background: rgba(18, 14, 38, 0.06); border-left: 3px solid var(--violet); border-radius: 6px; padding: 3px 8px; margin-bottom: 4px; font-size: 12px; color: var(--text-muted); }
.salon .quote strong { display: block; color: var(--violet); font-weight: 500; }
.day { align-self: center; background: var(--paper); color: var(--text-muted); font-size: 11.5px; padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--rule); }
.enc { align-self: center; text-align: center; background: var(--lav-soft); color: var(--text-muted); font-size: 11.5px; padding: 6px 10px; border-radius: 10px; margin: 0 12px; }

/* Bot message with reply buttons / options list */
.dm-card { align-self: flex-start; max-width: 86%; background: var(--white); border-radius: 12px; border-top-left-radius: 3px; overflow: hidden; }
.dm-card .dm { max-width: 100%; border-radius: 0; }
.btns button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px; padding: 8px; border: 0; border-top: 1px solid #EFEAF7; background: none; color: var(--violet); font: 500 14px var(--font-body); cursor: pointer; }
.btns button:hover:not(:disabled) { background: var(--tint); }
.btns button:disabled { color: #B5AFC8; cursor: default; }
.btns svg { flex: none; }

/* Message box */
.wa-input { display: flex; gap: 6px; padding: 8px; background: var(--paper); border-top: 1px solid var(--rule); }
.wa-input input { flex: 1; min-width: 0; min-height: 44px; padding: 0 15px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--white); color: var(--midnight); font: 16px var(--font-body); }
.wa-input input:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.35); }
.send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--violet); fill: var(--white); cursor: pointer; }
.send:hover { background: var(--violet-dark); }

/* WhatsApp-style options list (bottom sheet) */
.sheet-bg { position: absolute; inset: 0; z-index: 5; display: none; background: rgba(18, 14, 38, 0.4); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; flex-direction: column; max-height: 78%; background: var(--paper); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform 0.25s var(--ease); }
.sheet.open { transform: none; }
.sheet-h { position: relative; padding: 16px; text-align: center; font: 800 1rem var(--font-heading); border-bottom: 1px solid var(--rule); }
.sheet-h button { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
.sheet-list { overflow-y: auto; padding: 4px 0 10px; }
.sheet-sec { padding: 12px 18px 4px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); }
.sheet-item { display: block; width: 100%; padding: 11px 18px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; font: 15px var(--font-body); color: var(--midnight); cursor: pointer; }
.sheet-item:hover { background: var(--tint); }
.sheet-item span { display: block; font-size: 12.5px; color: var(--text-muted); }
.sheet-foot { padding: 8px 0 14px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* Example messages: the site's industry chips */
.tries { margin-top: var(--space-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.tries .stage-cap { position: static; align-self: flex-start; color: var(--violet); }
.tries .scene-tabs { order: 0; justify-content: flex-start; }
.reset { padding: var(--space-2) 0; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; }

/* Salon dashboard: an .on-dark card */
.panel { border-radius: 28px; overflow: hidden; }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-5); border-bottom: var(--border-dark); }
.panel-h h2 { font-size: var(--fs-h3); margin: 0; }
.panel-h .sub { margin: 0; font-size: var(--fs-small); }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: var(--border-dark); border-radius: var(--radius-pill); font-size: 12.5px; color: var(--cyan); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(103, 232, 249, 0); } }
/* Six stats: 2 per row on phones, 3 per row from 640px; borders drawn with gap + background */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(196, 181, 253, 0.18); border-bottom: var(--border-dark); }
.stat { padding: var(--space-4) var(--space-5); background: var(--midnight); }
.stat .k { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted-dark); }
.stat .k abbr { text-decoration: none; text-transform: none; letter-spacing: 0; color: var(--lavender); }
.stat .v { margin-top: 2px; font: 800 1.625rem var(--font-heading); font-variant-numeric: tabular-nums; color: var(--white); }
.stat .v small { font: 400 12px var(--font-body); color: var(--text-muted-dark); }
.stat:nth-child(3) .v, .stat:nth-child(4) .v { color: var(--lavender); }
.cols { display: grid; border-top: var(--border-dark); }
.col { min-width: 0; padding: var(--space-4) var(--space-5) var(--space-5); }
.col + .col { border-top: var(--border-dark); }
.col h3, .plan-h h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 var(--space-3); font: 500 12px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted-dark); }
.plan-h h3 em { font-style: normal; color: var(--white); }
.feed { position: relative; display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; font-size: 13px; }
.tag { padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(196, 181, 253, 0.12); color: var(--lavender); font-size: 11px; white-space: nowrap; }
.tag.wa { background: rgba(103, 232, 249, 0.15); color: var(--cyan); }

/* Day planner: stylists across, time down; the site's chips switch branch */
.plan { padding: var(--space-4) var(--space-5) var(--space-5); }
.plan-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.plan-h h3 { margin: 0; }
.br-tabs { order: 0; justify-content: flex-start; gap: 6px; }
.br-tabs .scene-tab { min-height: 32px; padding: 0 12px; font-size: 13px; color: var(--white); background: transparent; border-color: rgba(196, 181, 253, 0.4); }
.br-tabs .scene-tab[aria-pressed="true"] { background: var(--lavender); color: var(--midnight); border-color: var(--lavender); }
.br-tabs .scene-tab::after { display: none; }
.plan-wrap { position: relative; max-height: 420px; overflow-y: auto; border: var(--border-dark); border-radius: 14px; background: var(--midnight-raised); }
.planner { position: relative; display: grid; grid-auto-rows: 22px; grid-template-rows: 30px; column-gap: 6px; padding: 0 8px 8px 0; font-size: 12px; }
.pl-st { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; background: var(--midnight-raised); border-bottom: var(--border-dark); font-weight: 500; color: var(--white); }
.pl-hr { padding: 2px 0 0 8px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-muted-dark); white-space: nowrap; }
.pl-line { border-top: 1px dashed rgba(196, 181, 253, 0.14); }
.bk { z-index: 1; display: flex; flex-direction: column; min-width: 0; margin: 2px 0; padding: 3px 7px; overflow: hidden; border-radius: 8px; background: rgba(196, 181, 253, 0.1); border-left: 3px solid rgba(196, 181, 253, 0.45); line-height: 1.25; }
.bk b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; color: var(--white); }
.bk span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; color: var(--text-muted-dark); }
.bk.new { background: rgba(103, 232, 249, 0.18); border-left-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); animation: bk-drop 0.6s var(--ease), bk-glow 1.4s ease 0.6s 2; }
.bk.new b { color: var(--cyan); }
@keyframes bk-drop { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes bk-glow { 50% { box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.3); } }
.bk.cx { background: rgba(252, 165, 165, 0.08); border-left-color: #FCA5A5; }
.bk.cx b, .bk.cx span { color: #FCA5A5; text-decoration: line-through; }

/* Client card */
.cc-top { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: var(--space-3); }
.cc-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lavender); color: var(--midnight); font: 800 13px var(--font-heading); }
.cc-top b { display: block; font-weight: 500; }
.cc-top span:not(.tag):not(.cc-av) { font-size: 12px; color: var(--text-muted-dark); }
.cc-rows { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.cc-rows dt { color: var(--text-muted-dark); }
.cc-rows dd { margin: 0; min-width: 0; color: var(--white); }
.cc-x { text-decoration: line-through; color: #FCA5A5 !important; }
.cc-track { list-style: none; display: flex; gap: 6px; margin: var(--space-4) 0 0; padding: 0; font-size: 11.5px; }
.cc-track li { flex: 1; padding: 6px 4px; text-align: center; border: var(--border-dark); border-radius: 8px; color: var(--text-muted-dark); }
.cc-track li.is-done { border-color: var(--cyan); color: var(--cyan); }
.cc-track li.is-done::before { content: "\2713\00a0"; }
.panel-foot { margin: 0; padding: var(--space-3) var(--space-5); border-top: var(--border-dark); font-size: 12.5px; color: var(--text-muted-dark); max-width: none; }
.panel { scroll-margin-top: calc(var(--header-h) + var(--space-3)); }

/* Phones: headline events pop up above the message box (the dashboard is further down the page) */
.live-strip { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--midnight); color: var(--white); font-size: 12.5px; text-decoration: none; }
.live-strip[hidden] { display: none; }
.live-strip.is-in { animation: strip-up 0.35s var(--ease); }
.live-strip #liveText { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-go { flex: none; color: var(--cyan); font-weight: 500; }
@keyframes strip-up { from { opacity: 0; transform: translateY(100%); } }
.ev { display: grid; grid-template-columns: 24px 1fr; gap: 9px; animation: ev-in 0.3s var(--ease); }
@keyframes ev-in { from { opacity: 0; transform: translateY(4px); } }
.ev .ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--midnight-raised); border: var(--border-dark); font-size: 12px; }
.ev .tx span { display: block; font-size: 11.5px; color: var(--text-muted-dark); }
.empty { padding: 10px 0; font-size: 13px; color: var(--text-muted-dark); }

/* Comparison */
.compare .need-card h2 { margin-bottom: var(--space-4); }
.cmp-new { background: var(--lav-soft); }
.cmp-list { list-style: none; display: grid; gap: var(--space-3); margin: 0; padding: 0; color: var(--text-muted); }
.cmp-list li { position: relative; padding-left: 32px; }
.cmp-list li::before { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.cmp-old li::before { content: "\2715"; background: #F6E5E3; color: var(--error); }
.cmp-new li::before { content: "\2713"; background: var(--violet); color: var(--white); }

.demo-note { margin-block: var(--space-5); text-align: center; font-size: var(--fs-small); color: var(--text-muted); max-width: none; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .col + .col { border-top: 0; border-left: var(--border-dark); }
}
@media (min-width: 1024px) {
  .salon-grid { grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-7); }
  .live-strip { display: none !important; } /* the dashboard is right beside the phone */
}
/* Below 768px the site shows a fixed bottom bar; keep the message box above it */
@media (max-width: 767px) {
  .salon .phone { height: min(720px, calc(100svh - var(--header-h) - var(--action-bar-h) - 24px)); }
}
/* Phones: the demo phone fills the width, without the device frame eating space */
@media (max-width: 479px) {
  .salon .phone { max-width: none; border-radius: 28px; padding: 6px; height: calc(100svh - var(--header-h) - var(--action-bar-h) - 16px); }
  .salon .phone-screen { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .salon .demo-chat { scroll-behavior: auto; }
  .sheet { transition: none; }
  .live::before, .bk.new, .ev, .live-strip.is-in { animation: none; }
}
