/* ============================================================
   Kampi guided demo: mock dashboard + tour engine
   Tokens (--blue, --cyan, --ink, --line ...) come from styles.css
   ============================================================ */

.demo-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(139, 108, 246, 0.30), transparent 62%),
    radial-gradient(900px 560px at 6% 4%, rgba(75, 31, 176, 0.20), transparent 60%),
    linear-gradient(180deg, #0f0a22 0%, #17102f 46%, #1d1338 100%);
  color: #fff;
  font-family: "Assistant", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- Page chrome ---------- */
.demo-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(15, 10, 34, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.demo-bar .demo-logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.demo-bar .demo-kicker {
  font-size: 13px; font-weight: 700; color: #cfc2fb;
  border-inline-start: 1px solid rgba(255, 255, 255, .18); padding-inline-start: 14px;
}
.demo-bar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.demo-ghost {
  /* also used as a <button>, which would otherwise inherit the UA's light
     buttonface background and system font and swallow the label */
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 14px; font-weight: 800; line-height: 1.25;
  color: #f1ecff; background: rgba(255, 255, 255, .07);
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.demo-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); color: #fff; }
.demo-ghost:focus-visible { outline: 2px solid #b9a6fb; outline-offset: 2px; }
.demo-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, #7c4dff, #b9a6fb);
  color: #17102f; font-weight: 800; font-size: 14px; line-height: 1.25; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  box-shadow: 0 12px 26px rgba(124, 77, 255, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}
.demo-solid:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(124, 77, 255, .5); }
.demo-solid svg { width: 17px; height: 17px; }
.demo-start-icon { display: inline-grid; place-items: center; width: 17px; height: 17px; font-size: 18px; line-height: 1; }

.demo-hero { text-align: center; padding: clamp(26px, 5vw, 46px) 20px 10px; }
.demo-hero span {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
  color: #cfc2fb; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 14px;
}
.demo-hero h1 {
  margin: 14px 0 8px; font-size: clamp(26px, 4.6vw, 44px); font-weight: 800;
  letter-spacing: -.6px; line-height: 1.15;
}
.demo-hero h1 b {
  background: linear-gradient(110deg, #b9a6fb, #7c4dff);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800;
}
.demo-hero p { color: #b9b0d4; font-size: clamp(14.5px, 1.6vw, 17px); max-width: 640px; margin: 0 auto; line-height: 1.65; }

/* ---------- The app window ---------- */
.appwrap { padding: 26px clamp(12px, 3vw, 40px) 60px; }
.appwin {
  max-width: 1240px; margin: 0 auto; background: #f7f5ff; color: var(--ink);
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 90px rgba(6, 2, 20, .55), 0 0 0 1px rgba(255, 255, 255, .05) inset;
  display: grid; grid-template-rows: auto 1fr; min-height: 660px;
}

.app-top {
  /* min-width:0 so this grid item may be narrower than its min-content: the
     nowrap .app-title s subtitle would otherwise widen the whole .appwin grid
     column past the window and get clipped by .appwin{overflow:hidden}. Longer
     English strings hit this at phone widths; Hebrew already fitted. */
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-width: 0;
  background: #fff; border-bottom: 1px solid var(--line);
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3dcf7; }
.app-dots i:first-child { background: #ffbdb1; }
.app-dots i:nth-child(2) { background: #ffe0a3; }
.app-dots i:nth-child(3) { background: #bfe9c9; }
.app-title { font-weight: 800; font-size: 14.5px; min-width: 0; }
.app-title s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-title s { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); text-decoration: none; }
.app-search {
  margin-inline-start: auto; display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 1;
  background: #f6f3ff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; color: var(--muted); min-width: 190px;
}
.app-search svg { width: 14px; height: 14px; }
.app-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px;
}

/* min-width:0 for the same reason as .app-top: the nowrap .nav-item labels give
   .app-nav a large min-content, and without this the sidebar column widens the
   window instead of letting .app-nav scroll inside it. */
.app-body { display: grid; grid-template-columns: 244px 1fr; min-height: 0; min-width: 0; }

/* ---------- Side navigation ---------- */
.app-nav {
  background: #fff; border-inline-end: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
}
.nav-label { font-size: 11px; font-weight: 800; color: var(--muted); padding: 6px 10px 2px; letter-spacing: .3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 0; cursor: pointer; text-align: start;
  padding: 10px 10px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700;
  color: #3a3057; transition: background .18s ease, color .18s ease;
}
.nav-item:hover { background: #f4efff; }
.nav-item.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(75, 31, 176, .28); }
.nav-item.is-active .nav-grip i { background: rgba(255, 255, 255, .75); }
.nav-item .nav-ico { width: 18px; height: 18px; flex: none; }
.nav-item .nav-txt { margin-inline-end: auto; }
.nav-grip { display: grid; grid-template-columns: repeat(3, 3px); gap: 3px; flex: none; opacity: .55; }
.nav-grip i { width: 3px; height: 3px; border-radius: 50%; background: #b5abd8; display: block; }

.app-main { padding: 20px clamp(14px, 2.4vw, 26px) 26px; overflow: hidden; position: relative; }

/* ---------- Screens ---------- */
.screen { display: none; animation: screenIn .42s cubic-bezier(.2, .8, .3, 1); }
.screen.is-active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }

.scr-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.scr-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.scr-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.scr-head .scr-side { margin-inline-start: auto; display: flex; gap: 8px; }
.chip {
  font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  background: #f0eaff; color: var(--blue); border: 1px solid var(--line); white-space: nowrap;
}
.chip.ok { background: #e7f8ee; color: #067a40; border-color: #c9edd8; }
.chip.warn { background: #fff3e0; color: #b4530a; border-color: #f6dfc0; }
.chip.live { background: #ffe9ec; color: #cc2b45; border-color: #f7ccd4; }
.chip.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #cc2b45; margin-inline-end: 5px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel + .panel { margin-top: 14px; }
.panel-title { font-size: 14px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel-title .chip { margin-inline-start: auto; }

/* KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset-inline-end: -18px; top: -18px; width: 60px; height: 60px; border-radius: 50%; background: var(--grad); opacity: .10; }
.kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #0a8a4a; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-dow { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cal-cell {
  min-height: 74px; border: 1px solid var(--line); border-radius: 11px; padding: 6px;
  background: #fdfcff; display: flex; flex-direction: column; gap: 4px;
}
.cal-cell.dim { opacity: .45; }
.cal-cell.today { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(75, 31, 176, .14); }
.cal-num { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.cal-chip {
  font-size: 9.5px; font-weight: 800; color: #fff; border-radius: 6px; padding: 3px 5px;
  background: var(--grad); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-chip.ig { background: linear-gradient(135deg, #d81b60, #8a2be2 60%, #4b1fb0); }
.cal-chip.fb { background: #1877f2; }
.cal-chip.wait { background: #efeafd; color: #5b4aa0; }

/* Creative cards */
.cre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.cre-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cre-media { height: 116px; background: var(--grad); position: relative; }
.cre-media.v2 { background: linear-gradient(140deg, #8b6cf6, #cfc2fb); }
.cre-media.v3 { background: linear-gradient(140deg, #35128a, #6b46d6); }
.cre-media.v4 { background: linear-gradient(140deg, #b9a6fb, #4b1fb0); }
.cre-media::after { content: ""; position: absolute; inset-inline-start: 12px; bottom: 12px; width: 46px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .8); }
.cre-media::before { content: ""; position: absolute; inset-inline-start: 12px; bottom: 24px; width: 74px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.cre-tag { position: absolute; top: 9px; inset-inline-end: 9px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .62); border-radius: 999px; padding: 3px 8px; backdrop-filter: blur(3px); }
.cre-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cre-body b { font-size: 13px; font-weight: 800; }
.cre-body p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cre-actions { display: flex; gap: 6px; padding: 0 12px 12px; }
.btn-mini {
  flex: 1; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  border-radius: 9px; padding: 7px 6px; border: 1px solid var(--line); background: #fff; color: #3a3057;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-mini:hover { background: #f4efff; }
.btn-mini.pri { background: var(--grad); color: #fff; border-color: transparent; }
.btn-mini.danger { color: #cc2b45; }

/* Create modes */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.mode-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fdfcff;
  display: flex; flex-direction: column; gap: 7px; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mode-card:hover, .mode-card.sel { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(75, 31, 176, .13); }
.mode-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.mode-ico svg { width: 18px; height: 18px; }
.mode-card b { font-size: 14px; font-weight: 800; }
.mode-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.gen-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.gen-bar { flex: 1; height: 7px; border-radius: 999px; background: #efeafd; overflow: hidden; }
.gen-bar b { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; animation: gen 2.6s ease-in-out infinite; }
@keyframes gen { 0% { width: 4%; } 70% { width: 96%; } 100% { width: 100%; } }

/* Media library */
.media-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.media-tab { font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; border-radius: 999px; padding: 7px 15px; border: 1px solid var(--line); background: #fff; color: #3a3057; }
.media-tab.sel { background: var(--grad); color: #fff; border-color: transparent; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
.media-item { aspect-ratio: 1; border-radius: 11px; background: linear-gradient(140deg, #b9a6fb, #4b1fb0); position: relative; }
.media-item:nth-child(3n) { background: linear-gradient(140deg, #35128a, #8b6cf6); }
.media-item:nth-child(4n) { background: linear-gradient(140deg, #cfc2fb, #6b46d6); }
.media-item.vid::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-inline-start: 13px solid rgba(255, 255, 255, .92);
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.qr-card { display: flex; align-items: center; gap: 14px; }
.qr-box { width: 92px; height: 92px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 2px; padding: 8px; flex: none; }
.qr-box i { background: #1b1233; border-radius: 1.5px; }
.qr-box i.off { background: transparent; }

/* Channels */
.chan-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.chan-row + .chan-row { margin-top: 9px; }
.chan-badge { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.chan-badge svg { width: 19px; height: 19px; }
.chan-meta b { display: block; font-size: 13.5px; font-weight: 800; }
.chan-meta span { font-size: 12px; color: var(--muted); }
.chan-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.on { background: #0a8a4a; box-shadow: 0 0 0 4px rgba(10, 138, 74, .14); }
.dot.off { background: #cc2b45; box-shadow: 0 0 0 4px rgba(204, 43, 69, .14); }

/* Live now */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.live-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.live-top { height: 96px; background: var(--grad); position: relative; }
.live-top.v2 { background: linear-gradient(140deg, #8b6cf6, #cfc2fb); }
.live-top.v3 { background: linear-gradient(140deg, #35128a, #6b46d6); }
.live-top .cre-tag { top: 8px; inset-inline-start: 8px; inset-inline-end: auto; }
.live-body { padding: 10px 12px 12px; }
.live-body b { display: block; font-size: 12.5px; font-weight: 800; }
.live-body span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.count { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: #b4530a; background: #fff4e2; border-radius: 999px; padding: 3px 9px; margin-top: 7px; }
.count-track { height: 4px; border-radius: 999px; background: #efeafd; margin-top: 8px; overflow: hidden; }
.count-track b { display: block; height: 100%; background: linear-gradient(90deg, #f0a02a, #cc2b45); border-radius: 999px; }

/* Ads + stats */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 132px; padding-top: 8px; }
.bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--grad); opacity: .88; display: block; }
.bars i:nth-child(even) { background: linear-gradient(180deg, #b9a6fb, #8b6cf6); }
.bars-x { display: flex; gap: 9px; margin-top: 7px; }
.bars-x span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.insight { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #f6f2ff; border: 1px solid var(--line); }
.insight + .insight { margin-top: 9px; }
.insight svg { width: 17px; height: 17px; color: var(--blue); flex: none; margin-top: 2px; }
.insight p { font-size: 12.5px; line-height: 1.55; color: #3a3057; }
.insight b { font-weight: 800; }

/* Brand kit */
.sw-row { display: flex; gap: 9px; flex-wrap: wrap; }
.sw { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .06); }
.tone-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tone { font-size: 12px; font-weight: 800; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #3a3057; }
.tone.sel { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Tour ---------- */
.tour-veil { display: none; }
.tour-veil.on {
  display: block; position: fixed; inset: 0; z-index: 90; pointer-events: auto;
  animation: veilIn .3s ease both;
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.tour-veil.on.solid { background: rgba(9, 5, 22, .74); }
.tour-hole {
  position: absolute; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(9, 5, 22, .74);
  transition: top .5s cubic-bezier(.2, .8, .3, 1), left .5s cubic-bezier(.2, .8, .3, 1),
              width .5s cubic-bezier(.2, .8, .3, 1), height .5s cubic-bezier(.2, .8, .3, 1);
  outline: 2px solid rgba(185, 166, 251, .9); outline-offset: 3px;
}
.tour-hole::after {
  content: ""; position: absolute; inset: -6px; border-radius: 20px;
  border: 2px solid rgba(185, 166, 251, .55); animation: ring 2.1s ease-in-out infinite;
  will-change: opacity;
}
@keyframes ring { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }

.tour-card {
  position: fixed; z-index: 95; width: min(384px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 20px 16px;
  box-shadow: 0 30px 70px rgba(6, 2, 20, .5);
  transition: top .5s cubic-bezier(.2, .8, .3, 1), left .5s cubic-bezier(.2, .8, .3, 1);
}
.tour-seg { display: flex; gap: 4px; margin-bottom: 13px; }
.tour-seg i { flex: 1; height: 3px; border-radius: 999px; background: #e9e3fa; overflow: hidden; }
.tour-seg i.done { background: var(--blue); }
.tour-seg i.now::after { content: ""; display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; }
.tour-seg i.now.run::after { animation: segFill var(--dur, 7s) linear forwards; }
.tour-seg i.now.is-paused::after { animation-play-state: paused; }
@keyframes segFill { to { width: 100%; } }
.tour-step { font-size: 11.5px; font-weight: 800; color: var(--blue); letter-spacing: .3px; }
.tour-card h3 { font-size: 19px; font-weight: 800; margin: 5px 0 7px; letter-spacing: -.3px; }
.tour-card p { font-size: 14px; line-height: 1.62; color: #4a4067; }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.tour-btn {
  font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; border-radius: 999px;
  padding: 9px 17px; border: 1px solid var(--line); background: #fff; color: #3a3057;
  transition: background .18s ease;
}
.tour-btn:hover { background: #f4efff; }
.tour-btn.pri { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(75, 31, 176, .28); }
.tour-btn.icon { padding: 9px 11px; line-height: 0; }
.tour-btn.icon svg { width: 15px; height: 15px; }
.tour-btn[disabled] { opacity: .4; cursor: default; }
.tour-skip { margin-inline-start: auto; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: underline; }
.tour-skip:hover { color: var(--ink); }

.tour-start {
  position: fixed; inset: 0; z-index: 96; display: grid; place-items: center;
  background: rgba(9, 5, 22, .88); padding: 20px;
}
.tour-start.off { display: none; }
.tour-start-card {
  max-width: 520px; background: #fff; color: var(--ink); border-radius: 24px; padding: 34px 32px 28px; text-align: center;
  box-shadow: 0 40px 90px rgba(6, 2, 20, .6);
}
.tour-start-card img { height: 40px; margin-bottom: 16px; }
.tour-start-card h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.5px; }
.tour-start-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-top: 10px; }
.tour-start-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* Final CTA */
.demo-end { padding: 0 clamp(12px, 3vw, 40px) 70px; }
.demo-end-card {
  max-width: 1240px; margin: 0 auto; text-align: center; border-radius: 24px; padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(120deg, rgba(124, 77, 255, .28), rgba(185, 166, 251, .18));
  border: 1px solid rgba(255, 255, 255, .16);
}
.demo-end-card h2 { font-size: clamp(23px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.5px; }
.demo-end-card p { color: #c9c0e4; font-size: clamp(14.5px, 1.7vw, 17px); margin: 12px auto 0; max-width: 620px; line-height: 1.65; }
.demo-end-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.demo-end-note { color: #9c93bb; font-size: 13px; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-nav {
    flex-direction: row; overflow-x: auto; gap: 6px;
    border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 10px;
  }
  .nav-label { display: none; }
  .nav-item { white-space: nowrap; padding: 9px 12px; }
  .nav-grip { display: none; }
  .appwin { min-height: 0; }
}
@media (max-width: 780px) {
  .app-search { display: none; }
  .app-title { font-size: 13px; }
}
@media (max-width: 640px) {
  /* keep all seven columns so dates stay under the right weekday */
  .cal { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cal-cell { min-height: 52px; padding: 4px; }
  .cal-chip { font-size: 8px; padding: 2px 3px; }
  .cal-num { font-size: 9px; }
  .tour-card { inset-inline: 12px; width: auto; }
  .demo-bar .demo-kicker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .tour-hole, .tour-card, .gen-bar b, .tour-seg i.now::after { animation: none !important; transition: none !important; }
}


/* Bare mode: just the app window, used to capture help centre screenshots */
.is-bare .demo-bar, .is-bare .demo-hero, .is-bare .demo-end { display: none; }
.is-bare .appwrap { padding: 22px; }
.is-bare .appwin { margin: 0 auto; }
