/* Extra styling voor de klikbare demo-variant (bovenop mockup.css). */
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 70% 15%, #14304a, #0b1526);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: manipulation;
}
#stage {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone { user-select: none; -webkit-user-select: none; }
#root { position: absolute; inset: 0; }
#hint {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  pointer-events: none;
}

/* Scrollen en horizontale rijen echt scrollbaar maken */
.phone .scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.phone .scroll::-webkit-scrollbar { display: none; }
.alt-row, .chips, .plist-filters, .preset-chips { overflow-x: auto; scrollbar-width: none; }
.alt-row::-webkit-scrollbar, .chips::-webkit-scrollbar, .plist-filters::-webkit-scrollbar { display: none; }
.chips { padding-right: 22px; }

/* Tabbar flexibel zodat grotere tekst (A+) niet overlapt: tabs nemen de
   breedte van hun eigen label en de ruimte wordt ertussen verdeeld */
.tabbar { justify-content: space-between; padding-left: 14px; padding-right: 14px; }
.tabbar .tab { width: auto; flex: 0 1 auto; min-width: 0; padding: 2px 2px; }
.tabbar .tab span { white-space: nowrap; }
.tabbar .tab .badge { right: 0; }

/* Klik-affordance */
.tab, .chip, .preset, .opt2, .typebtn, .sbtn, .switch, .alt-add, .btn-blue,
.swap-btn, .search, .mega-banner, .pcard2, .acc-row, .icon-btn, .psel,
.banner-chevron, .no-thx, .head-icons > *, .sheet-backdrop, .tabbar .tab {
  cursor: pointer;
}
.btn-blue:active, .swap-btn:active, .alt-add:active, .chip:active,
.preset:active, .opt2:active, .typebtn:active, .pcard2:active, .sbtn:active { opacity: .82; }
.tab:active svg, .icon-btn:active { transform: scale(.92); }

/* Chat: entree-animaties (CSS-animatie wint van de inline eindwaarden) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.convo .bub-bot { animation: rise .35s ease-out both; }
.convo .bub-user { animation: rise .25s ease-out both; }
@keyframes tdot { 0%, 100% { opacity: .3; } 40% { opacity: .95; } }
.typing i { animation: tdot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }

/* App-switcher boven de telefoon */
#appswitch {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 4px;
  background: rgba(10, 20, 34, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
}
#appswitch button {
  border: none;
  background: none;
  color: rgba(255, 255, 255, .75);
  font: 600 13px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
#appswitch button.on { background: #fff; color: #0F1B33; }

/* Tekstgrootte-regelaar (A− / A+) */
#textsize {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(10, 20, 34, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
}
#textsize button {
  border: none;
  background: none;
  color: rgba(255, 255, 255, .85);
  font: 700 13px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 9px 10px;
  border-radius: 999px;
  cursor: pointer;
}
#textsize button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
#textsize button:disabled { opacity: .35; cursor: default; }
#ts-val {
  color: rgba(255, 255, 255, .7);
  font: 600 11px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
  min-width: 34px;
  text-align: center;
}
@media (max-width: 640px) {
  #textsize { top: auto; bottom: 14px; right: 14px; }
}

/* ============ SugarVita Coach (concept Niels & Sieb) ============ */
.cv-screen { background: #fff; }
.cv-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 17px 11px; border-bottom: 1px solid #e8eef0;
}
.cv-head img { width: 38px; height: 38px; object-fit: contain; }
.cv-title { flex: 1; }
.cv-title .t { font-size: 17.5px; font-weight: 800; color: #1f2a30; letter-spacing: -.3px; }
.cv-title .s { font-size: 12px; color: #93a1a9; }
.cv-score { min-width: 62px; padding: 7px 12px; border-radius: 13px; text-align: center; font-weight: 800; }
.cv-score .v { font-size: 20px; line-height: 1; }
.cv-score .l { font-size: 10px; opacity: .8; margin-top: 2px; }
.cv-score.ok { background: #e3f7ef; color: #0e9d6e; }
.cv-score.warn { background: #fdf1da; color: #b9720a; }
.cv-score.crit { background: #fde4e8; color: #d61b3c; }
.cv-meter { padding: 12px 17px 4px; }
.cv-meter .bar {
  position: relative; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #f5556e 0%, #ef9d1a 22%, #14b981 42%, #14b981 58%, #ef9d1a 78%, #f5556e 100%);
}
.cv-meter .mark {
  position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px;
  background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .16);
  transition: left .6s cubic-bezier(.3, .8, .3, 1);
}
.cv-meter .lbls { display: flex; justify-content: space-between; font-size: 9.5px; color: #93a1a9; font-weight: 600; margin-top: 5px; }
.cv-tabs { display: flex; gap: 8px; padding: 8px 17px 0; }
.cv-tab {
  flex: 1; border: 1.5px solid #d8e2e6; background: #fff; border-radius: 999px;
  padding: 8px 10px; font: 700 13px/1 inherit; color: #5d6b74; font-family: inherit; cursor: pointer;
}
.cv-tab.on { background: #e3f7ef; border-color: #14b981; color: #0e9d6e; }
.cv-note { text-align: center; font-size: 10.5px; color: #93a1a9; padding: 6px 0 2px; }
.cv-chat {
  flex: 1; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 15px 6px;
}
.cv-chat::-webkit-scrollbar { display: none; }
.cv-bub {
  max-width: 82%; padding: 11px 14px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.42; animation: rise .3s ease-out both;
}
.cv-bub.user { align-self: flex-end; background: #14b981; color: #fff; border-bottom-right-radius: 5px; }
.cv-bub.bot { align-self: flex-start; background: #f3f8f5; color: #1f2a30; border-bottom-left-radius: 5px; }
.cv-bullet { display: flex; gap: 7px; margin-bottom: 4px; }
.cv-bullet span:first-child { color: #14b981; font-weight: 800; }
.cv-card {
  align-self: flex-start; border-radius: 12px; padding: 9px 13px; font-size: 13px;
  animation: rise .3s ease-out .25s both;
}
.cv-card.rem { background: #fff; border: 1.5px solid #e8eef0; color: #1f2a30; }
.cv-card.cart { background: #ff8a00; color: #fff; font-weight: 800; max-width: 82%; }
.cv-typing {
  align-self: flex-start; background: #f3f8f5; border-radius: 16px;
  border-bottom-left-radius: 5px; padding: 13px 15px; display: flex; gap: 5px;
}
.cv-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #93a1a9; display: block;
  animation: tdot 1.1s ease-in-out infinite;
}
.cv-typing i:nth-child(2) { animation-delay: .18s; }
.cv-typing i:nth-child(3) { animation-delay: .36s; }
.cv-sug { padding: 4px 15px 6px; min-height: 10px; }
.cv-chip {
  width: 100%; text-align: left; background: #e3f7ef; border: 1.5px solid #14b981;
  color: #0e9d6e; border-radius: 16px; padding: 10px 14px;
  font: 600 13.5px/1.4 inherit; font-family: inherit; cursor: pointer;
  animation: rise .3s ease-out both;
}
.cv-chip.cv-restart { text-align: center; }
.cv-input {
  display: flex; gap: 9px; align-items: center;
  padding: 9px 15px 4px; border-top: 1px solid #e8eef0;
}
.cv-input .ph {
  flex: 1; background: #f3f8f5; border: 1.5px solid #e8eef0; border-radius: 999px;
  padding: 12px 16px; font-size: 14px; color: #93a1a9;
}
.cv-input .send {
  width: 42px; height: 42px; border-radius: 22px; border: none; background: #14b981;
  color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}

/* Hotspot-flash: klikbare plekken lichten op na een klik op dode ruimte */
@keyframes hotspot-flash {
  0% { outline-color: rgba(232, 17, 45, 0); box-shadow: 0 0 0 4px rgba(232, 17, 45, 0); }
  15%, 70% { outline-color: rgba(232, 17, 45, .9); box-shadow: 0 0 0 4px rgba(232, 17, 45, .15); }
  100% { outline-color: rgba(232, 17, 45, 0); box-shadow: 0 0 0 4px rgba(232, 17, 45, 0); }
}
.show-hotspots .hotspot {
  outline: 2px solid rgba(232, 17, 45, 0);
  outline-offset: 1px;
  animation: hotspot-flash .7s ease both;
}

/* Accordeons op de productpagina */
.acc2 { cursor: pointer; }
.acc2 .chev span { transition: rotate .3s ease; }
.acc-body { transition: max-height .35s ease, opacity .3s ease; }
.ing-text { padding: 2px 2px 14px; font-size: 15px; line-height: 1.5; color: #26354D; }
.nut-table { padding: 2px 2px 14px; }
.nut-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; padding: 13px 0; border-top: 1px solid #E7EBEF; font-size: 15.5px;
}
.nut-row:first-child { border-top: none; }
.nut-row .k { color: #26354D; }
.nut-row .k.sub { padding-left: 16px; font-size: 14.5px; }
.nut-row .v { text-align: right; font-weight: 600; color: #26354D; white-space: pre-line; }
.nut-row.header { font-weight: 800; font-size: 16px; }
.nut-row.header .k, .nut-row.header .v { font-weight: 800; color: var(--navy); }

/* Vervangers-sheet schuift in */
@keyframes sheet-in { from { transform: translateY(100%); } }
.vsheet { animation: sheet-in .3s cubic-bezier(.2, .8, .25, 1); }
@keyframes fade-in { from { opacity: 0; } }
.sheet-backdrop { animation: fade-in .3s ease-out; }

/* Mobiel: telefoon vult het scherm, zonder frame */
@media (max-width: 500px) {
  body { background: #fff; }
  #stage { align-items: stretch; justify-content: stretch; }
  .phone {
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #hint { display: none; }
}
