main.demo {
  max-width: min(92rem, 100%);
}
.demo h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}
.tour {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: calc(100vh - 16rem);
  margin-top: 1.5rem;
}
.phone,
.copy {
  grid-area: 1 / 1;
  width: min(42rem, 100%);
  transition: opacity 0.7s ease;
}
.copy {
  max-width: 42rem;
  padding-top: 0.15rem;
}
.tour.is-phone .phone {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.tour.is-phone .copy {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tour.is-text .phone {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tour.is-text .copy {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.copy-title {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  line-height: 1.25;
  color: var(--text);
}
.copy-body {
  display: grid;
  gap: 1.15rem;
}
.copy-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.copy-body p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
}
.dots {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  margin: 1.4rem 0 0;
}
.dots.is-on {
  display: flex;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a342e;
}
.dot.on {
  background: var(--accent);
}
.hint {
  margin: 0 0 0.75rem;
  color: var(--hint);
  font-size: 0.95rem;
}
.bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  margin-top: 1.5rem;
  padding: 1rem 0 0.4rem;
  background: linear-gradient(transparent, var(--bg) 1.1rem);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.controls button {
  min-height: 48px;
  padding: 0 1.2rem;
  border: 1px solid #3a342e;
  border-radius: 12px;
  background: #221e1a;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.controls button:hover {
  border-color: var(--accent);
}
.controls #next {
  background: var(--accent);
  border-color: var(--accent);
  color: #1d1a16;
}

.phone {
  width: min(400px, 100%);
  max-width: 400px;
  justify-self: center;
  padding: 14px;
}
.bezel {
  position: relative;
  background:
    linear-gradient(#2a2520, #141210) padding-box,
    linear-gradient(
      140deg,
      #f4f1ea 0%,
      #e07a5f 28%,
      #c8c0b4 52%,
      #e07a5f 78%,
      #8f877c 100%
    ) border-box;
  border: 3px solid transparent;
  border-radius: 42px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(244, 241, 234, 0.18),
    0 0 18px rgba(224, 122, 95, 0.38),
    0 0 42px rgba(224, 122, 95, 0.2),
    0 16px 40px rgba(0, 0, 0, 0.55);
}
.bezel::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 34px;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(244, 241, 234, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.screen {
  position: relative;
  height: min(78vh, 760px);
  min-height: 620px;
  border-radius: 30px;
  overflow: hidden;
  background: #161411;
}
.status {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 0;
  font-size: 12px;
  font-weight: 700;
  color: #f4f1ea;
  pointer-events: none;
}
.status .pill {
  width: 86px;
  height: 10px;
  border-radius: 8px;
  background: #0c0b0a;
}
.status .signal {
  letter-spacing: -1px;
  font-size: 8px;
}
.home-bar {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 9px;
  width: 108px;
  height: 5px;
  margin-left: -54px;
  border-radius: 4px;
  background: #f4f1ea;
  opacity: 0.4;
}

.launcher {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.45s ease, transform 0.7s ease;
}
.screen.is-open .launcher {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}
.wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #4a3a32 0%, #1c1814 52%, #0c0b0a 100%);
}
.clock {
  position: relative;
  margin: 56px 0 0;
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f1ea;
}
.date {
  position: relative;
  margin: 0 0 28px;
  text-align: center;
  font-size: 14px;
  color: #c8c0b4;
}
.grid,
.dock {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
  padding: 0 18px;
  justify-items: center;
}
.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 26px;
  padding: 14px 10px 16px;
  border-radius: 24px;
  background: rgba(34, 30, 26, 0.78);
}
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  position: relative;
}
.app-icon span {
  position: absolute;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  width: 64px;
  text-align: center;
  font-size: 11px;
  color: #c8c0b4;
}
.app-icon[data-hue="klok"] { background: #4a433c; }
.app-icon[data-hue="weer"] { background: #5c6d7a; }
.app-icon[data-hue="notities"] { background: #c8b07a; }
.app-icon[data-hue="foto"] { background: #6f8f7a; }
.app-icon[data-hue="muziek"] { background: #8a5a6a; }
.app-icon[data-hue="mail"] { background: #6a7a8f; }
.app-icon[data-hue="agenda"] { background: #c07a5a; }
.app-icon[data-hue="kaart"] { background: #5a7a6a; }
.app-icon[data-hue="tel"] { background: #81b29a; }
.app-icon[data-hue="msg"] { background: #81b29a; }
.app-icon[data-hue="web"] { background: #6a7a8f; }
.is-audiation {
  background: #161411;
  border: 2px solid #e07a5f;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
}
.is-audiation .mark {
  position: static;
  transform: none;
  width: auto;
  font-size: 26px;
  font-weight: 700;
  color: #e07a5f;
  line-height: 1;
  top: auto;
}
.dock .is-audiation::after {
  content: 'Audiation';
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 72px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #f4f1ea;
}
.screen.is-press .is-audiation {
  transform: scale(0.86);
  transition: transform 0.16s ease;
}

.finger {
  position: absolute;
  z-index: 8;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(224, 122, 95, 0.28);
  border: 3px solid rgba(244, 241, 234, 0.9);
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, left 0.4s ease, top 0.4s ease;
}
.screen.is-finger .finger {
  opacity: 1;
  transform: scale(1);
}
.screen.is-press .finger {
  transform: scale(0.78);
  background: rgba(224, 122, 95, 0.4);
  border-color: #e07a5f;
}

.app {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.88);
  transform-origin: 82% 92%;
  pointer-events: none;
  background: #161411;
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.screen.is-open .app {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.splash {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161411;
  color: #f4f1ea;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.screen.is-splash .splash {
  opacity: 1;
}
.app-body {
  position: absolute;
  inset: 32px 0 20px;
  overflow: hidden;
}
.app-inner {
  padding: 10px 16px 32px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.app-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #f4f1ea;
  letter-spacing: 0.3px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.chip {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #3a342e;
  background: #221e1a;
  color: #f4f1ea;
  font-size: 11px;
  font-weight: 700;
}
.chip.on {
  background: #e07a5f;
  border-color: #e07a5f;
  color: #1d1a16;
}
.panel {
  background: #221e1a;
  border: 1px solid #3a342e;
  border-radius: 16px;
  padding: 14px 14px;
  margin-bottom: 14px;
  transition: border-color 0.4s ease, background 0.4s ease, opacity 0.4s ease;
}
.panel h3,
.practice-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f4f1ea;
}
.panel p {
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.4;
  color: #c8c0b4;
}
.panel p:last-child { margin-bottom: 0; }
.panel b { color: #f4f1ea; font-weight: 700; }
.practice-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #8f877c;
}
.card {
  background: #221e1a;
  border: 1px solid #3a342e;
  border-radius: 16px;
  padding: 14px 14px;
  margin-bottom: 10px;
  opacity: 1;
  transform: scale(1);
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    opacity 0.45s ease,
    transform 0.45s ease;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.step {
  font-size: 12px;
  font-weight: 700;
  color: #e07a5f;
}
.level {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6f6a64;
}
.level.easy { color: #81b29a; }
.level.next { color: #e07a5f; }
.card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #f4f1ea;
}
.card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #8f877c;
}
.screen.is-tour .card,
.screen.is-tour .panel {
  opacity: 0.38;
}
.screen.is-tour .card.on,
.screen.is-tour .panel.on {
  opacity: 1;
  background: #2c2620;
  border-color: #e07a5f;
  transform: scale(1.02);
}

@media (max-width: 640px) {
  .screen {
    min-height: 560px;
    height: min(70vh, 680px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone,
  .copy,
  .launcher,
  .app,
  .app-inner,
  .card,
  .panel,
  .finger,
  .is-audiation,
  .splash {
    transition: none;
  }
}


body[data-tour="exercise"] .tour {
  min-height: 0;
}
body[data-tour="exercise"] .bar {
  position: static;
  background: none;
}
.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(428px, 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.controls {
  justify-content: center;
}

.screen.is-exercise {
  background: #161411;
}
.ex-screen {
  position: absolute;
  inset: 32px 0 20px;
  overflow: auto;
  padding: 10px 16px 28px;
  scrollbar-width: none;
}
.ex-screen::-webkit-scrollbar { display: none; }
.ex-back {
  margin: 0 0 10px;
  color: #e07a5f;
  font-size: 12px;
  font-weight: 700;
}
.ex-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #f4f1ea;
}
.ex-sub, .ex-tag {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #8f877c;
}
.ex-tag { color: #c8c0b4; font-style: italic; }
.ex-opt-title {
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #f4f1ea;
}
.ex-chips, .ex-degrees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.ex-chip, .ex-degrees span {
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #3a342e;
  background: #221e1a;
  color: #f4f1ea;
  font-size: 11px;
  font-weight: 700;
}
.ex-chip.on, .ex-degrees span.on {
  background: #e07a5f;
  border-color: #e07a5f;
  color: #1d1a16;
}
.ex-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 0;
}
.ex-toggle {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #3a342e;
  position: relative;
  flex-shrink: 0;
}
.ex-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c8c0b4;
}
.ex-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 88px;
  margin: 12px 0;
}
.ex-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2c2620;
  border: 2px solid #e07a5f;
  box-shadow: 0 0 18px rgba(224, 122, 95, 0.35);
}
.ex-orb.sm { width: 28px; height: 28px; }
.ex-gap { width: 28px; height: 2px; background: #3a342e; }
.ex-letter {
  text-align: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #3a342e;
  border-radius: 16px;
  background: #221e1a;
}
.ex-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e07a5f;
}
.ex-letter-g {
  margin: 4px 0 0;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: #f4f1ea;
}
.ex-contour {
  display: grid;
  grid-template-rows: repeat(2, 28px);
  gap: 6px;
  margin: 12px 0;
}
.ex-contour.c2 { grid-template-columns: repeat(2, 1fr); }
.ex-contour.c3 { grid-template-columns: repeat(3, 1fr); }
.ex-contour i {
  display: block;
  border-radius: 8px;
  background: #221e1a;
  border: 1px solid #3a342e;
}
.ex-slider {
  position: relative;
  height: 14px;
  margin: 16px 0 8px;
  border-radius: 8px;
  background: #221e1a;
  border: 1px solid #3a342e;
}
.ex-thumb {
  position: absolute;
  top: -6px;
  left: 42%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e07a5f;
}
.ex-rhythm {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 12px 0;
}
.ex-rhythm span {
  height: 22px;
  border-radius: 5px;
  background: #221e1a;
  border: 1px solid #3a342e;
}
.ex-rhythm span.on { background: #e07a5f; border-color: #e07a5f; }
.ex-bpm {
  margin: -2px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.ex-tempo-beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.ex-tempo-beats span {
  height: 28px;
  border-radius: 6px;
  background: #221e1a;
  border: 1px solid #3a342e;
}
.ex-tempo-beats span.on {
  background: #e07a5f;
  border-color: #e07a5f;
}
.ex-tap {
  text-align: center;
  padding: 16px 12px;
  margin: 8px 0 0;
  border-radius: 12px;
  background: #221e1a;
  border: 1px solid #3a342e;
  font-weight: 700;
}
.ex-start-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.ex-lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #81b29a;
  flex-shrink: 0;
}
.ex-start {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e07a5f;
  color: #1d1a16;
  font-size: 14px;
  font-weight: 700;
}

body[data-tour="exercise"] .screen {
  min-height: 540px;
  height: min(64vh, 620px);
}
